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