--- FreeBSD/tinderbox/webui/core/PortsTree.php 2007/11/02 20:56:34 1.1 +++ FreeBSD/tinderbox/webui/core/PortsTree.php 2007/11/15 15:31:35 1.1.1.1.2.2 @@ -24,69 +24,70 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen: FreeBSD/tinderbox/webui/core/PortsTree.php,v 1.1.1.1.2.1 2007/11/09 22:56:45 as Exp $ # $MCom: portstools/tinderbox/webui/core/PortsTree.php,v 1.5 2005/11/15 19:42:56 oliver Exp $ # - require_once 'TinderObject.php'; +class PortsTree extends TinderObject { - class PortsTree extends TinderObject { - - function PortsTree($argv = array()) { - $object_hash = array( - 'ports_tree_id' => '', - 'ports_tree_name' => '', - 'ports_tree_description' => '', - 'ports_tree_last_built' => '', - 'ports_tree_update_cmd' => '', - 'ports_tree_cvsweb_url' => '', - 'ports_tree_ports_mount' => '' - ); - - $this->TinderObject($object_hash, $argv); + public function __construct($argv = array()) { + parent::__construct( + array( + 'ports_tree_id' => '', + 'ports_tree_name' => '', + 'ports_tree_description' => '', + 'ports_tree_last_built' => '', + 'ports_tree_update_cmd' => '', + 'ports_tree_cvsweb_url' => '', + 'ports_tree_ports_mount' => '' + ), + $argv + ); } - function getId() { + public function getId() { return $this->ports_tree_id; } - function getName() { + public function getName() { return $this->ports_tree_name; } - function getDescription() { + public function getDescription() { return $this->ports_tree_description; } - function getLastBuilt() { + public function getLastBuilt() { return $this->ports_tree_last_built; } - function getUpdateCmd() { + public function getUpdateCmd() { return $this->ports_tree_update_cmd; } - function getCVSwebURL() { - return $this->ports_tree_cvsweb_url; - } + public function getCVSwebURL() { + return $this->ports_tree_cvsweb_url; + } - function getPortsMount() { - return $this->ports_tree_ports_mount; - } + public function getPortsMount() { + return $this->ports_tree_ports_mount; + } - function setName($name) { + public function setName($name) { $this->ports_tree_name = $name; } - function setDescription($descr) { + public function setDescription($descr) { $this->ports_tree_description = $descr; } - function setLastBuilt($time) { + public function setLastBuilt($time) { $this->ports_tree_last_built = $time; } - function setUpdateCmd($cmd) { + public function setUpdateCmd($cmd) { $this->ports_tree_update_cmd = $cmd; } - } +} + ?>