Diff for /FreeBSD/tinderbox2/webui/module/Attic/modulePortFailureReasons.php between versions 1.1 and 1.1.2.1

version 1.1, 2007/10/21 23:45:00 version 1.1.2.1, 2007/10/21 23:45:00
Line 0 Line 1
   <?php
   #-
   # Copyright (c) 2005 Oliver Lehmann <oliver@FreeBSD.org>
   # All rights reserved.
   #
   # Redistribution and use in source and binary forms, with or without
   # modification, are permitted provided that the following conditions
   # are met:
   # 1. Redistributions of source code must retain the above copyright
   #    notice, this list of conditions and the following disclaimer
   # 2. Redistributions in binary form must reproduce the above copyright
   #    notice, this list of conditions and the following disclaimer in the
   #    documentation and/or other materials provided with the distribution.
   #
   # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   # ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   # SUCH DAMAGE.
   #
   # $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();
           }
   
           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();
                           $port_fail_reasons[$reason->getTag()]['type']  = $reason->getType();
                   }
   
                   $this->template_assign( 'port_fail_reasons',      $port_fail_reasons );
                   $this->template_assign( 'mark_reason',            $reason_tag );
                   $this->template_assign( 'local_time',             prettyDatetime( date( 'Y-m-d H:i:s' ) ) );
   
                   return $this->template_parse( 'list_failure_reasons.tpl' );
           }
   
   
   }
   ?>

Removed from v.1.1  
changed lines
  Added in v.1.1.2.1