--- FreeBSD/tinderbox/webui/module/moduleBuildPorts.php 2007/11/02 20:55:00 1.1.1.1 +++ FreeBSD/tinderbox/webui/module/moduleBuildPorts.php 2007/11/13 07:36:19 1.1.1.1.2.1 @@ -24,20 +24,19 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen$ # $MCom: portstools/tinderbox/webui/module/moduleBuildPorts.php,v 1.14 2007/10/07 00:58:56 ade Exp $ # -require_once 'module/module.php'; -require_once 'module/modulePorts.php'; - class moduleBuildPorts extends module { + private $modulePorts = null; - function moduleBuildPorts() { - $this->module(); - $this->modulePorts = new modulePorts(); + public function __construct() { + parent::__construct(); + $this->modulePorts = new modulePorts; } - function display_list_buildports( $build_name, $sort ) { + public function display_list_buildports( $build_name, $sort ) { $build = $this->TinderboxDS->getBuildByName( $build_name ); $ports = $this->TinderboxDS->getPortsForBuild( $build, $sort ); @@ -91,7 +90,7 @@ class moduleBuildPorts extends module { return $this->template_parse( 'list_buildports.tpl' ); } - function display_failed_buildports( $build_name, $maintainer, $all ) { + public function display_failed_buildports( $build_name, $maintainer, $all ) { if( $build_name ) { $build = $this->TinderboxDS->getBuildByName( $build_name ); @@ -138,7 +137,7 @@ class moduleBuildPorts extends module { return $this->template_parse( 'failed_buildports.tpl' ); } - function display_latest_buildports( $build_name ) { + public function display_latest_buildports( $build_name ) { $current_builds = $this->display_current_buildports( $build_name ); @@ -183,7 +182,7 @@ class moduleBuildPorts extends module { return $this->template_parse( 'latest_buildports.tpl' ); } - function display_current_buildports( $showbuild ) { + public function display_current_buildports( $showbuild ) { $activeBuilds = array(); $builds = $this->TinderboxDS->getBuilds(); if( $builds ) { @@ -231,4 +230,5 @@ class moduleBuildPorts extends module { return $this->template_parse( 'current_buildports.tpl' ); } } + ?>