--- FreeBSD/tinderbox/webui/module/modulePortFailureReasons.php 2007/11/02 20:55:00 1.1 +++ FreeBSD/tinderbox/webui/module/modulePortFailureReasons.php 2007/11/13 07:36:19 1.1.1.1.2.1 @@ -24,19 +24,14 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen$ # $MCom: portstools/tinderbox/webui/module/modulePortFailureReasons.php,v 1.4 2005/12/26 22:45:56 marcus Exp $ # -require_once 'module/module.php'; - class modulePortFailureReasons extends module { - function modulePortFailureReasons() { - $this->module(); - } + public function display_failure_reasons( $reason_tag ) { - function display_failure_reasons( $reason_tag ) { - foreach( $this->TinderboxDS->getAllPortFailReasons() as $reason ) { $port_fail_reasons[$reason->getTag()]['tag'] = htmlentities($reason->getTag()); $port_fail_reasons[$reason->getTag()]['descr'] = $reason->getDescr(); @@ -49,7 +44,6 @@ class modulePortFailureReasons extends module { return $this->template_parse( 'list_failure_reasons.tpl' ); } - - } + ?>