--- FreeBSD/tinderbox/webui/core/Build.php 2007/11/02 20:56:34 1.1 +++ FreeBSD/tinderbox/webui/core/Build.php 2007/11/09 22:56:45 1.1.1.1.2.1 @@ -24,83 +24,84 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen$ # $MCom: portstools/tinderbox/webui/core/Build.php,v 1.4 2005/12/26 23:59:28 marcus Exp $ # - require_once 'TinderObject.php'; - class Build extends TinderObject { +class Build extends TinderObject { - function Build($argv = array()) { - $object_hash = array( - 'build_id' => '', - 'build_name' => '', - 'jail_id' => '', - 'ports_tree_id' => '', - 'build_description' => '', - 'build_status' => '', - 'build_current_port' => '', - 'build_last_updated' => '' + public function __construct($argv = array()) { + $object_hash = array( + 'build_id' => '', + 'build_name' => '', + 'jail_id' => '', + 'ports_tree_id' => '', + 'build_description' => '', + 'build_status' => '', + 'build_current_port' => '', + 'build_last_updated' => '' ); - $this->TinderObject($object_hash, $argv); + parent::__construct($object_hash, $argv); } - function getId() { + public function getId() { return $this->build_id; } - function getName() { + public function getName() { return $this->build_name; } - function getJailId() { + public function getJailId() { return $this->jail_id; } - function getPortsTreeId() { + public function getPortsTreeId() { return $this->ports_tree_id; } - function getDescription() { + public function getDescription() { return $this->build_description; } - function getBuildStatus() { + public function getBuildStatus() { return $this->build_status; } - function getBuildCurrentPort() { + public function getBuildCurrentPort() { return $this->build_current_port; } - function getBuildLastUpdated() { + public function getBuildLastUpdated() { return $this->build_last_updated; } - function setName($name) { + public function setName($name) { $this->build_name = $name; } - function setJailId($id) { + public function setJailId($id) { $this->jail_id = $id; } - function setPortsTreeId($id) { + public function setPortsTreeId($id) { $this->ports_tree_id = $id; } - function setDescription($descr) { + public function setDescription($descr) { $this->build_description = $descr; } - function setBuildStatus($status) { + public function setBuildStatus($status) { $this->build_status = $status; } - function setBuildCurrentPort($port) { + public function setBuildCurrentPort($port) { $this->build_current_port = $port; } - } +} + ?>