--- FreeBSD/tinderbox/webui/core/Jail.php 2007/11/02 20:56:34 1.1.1.1 +++ FreeBSD/tinderbox/webui/core/Jail.php 2007/11/09 22:56:45 1.1.1.1.2.1 @@ -24,82 +24,82 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen$ # $MCom: portstools/tinderbox/webui/core/Jail.php,v 1.5 2005/12/17 23:36:14 ade Exp $ # - require_once 'TinderObject.php'; +class Jail extends TinderObject { - class Jail extends TinderObject { - - function Jail($argv = array()) { - $object_hash = array( - 'jail_id' => '', - 'jail_name' => '', - 'jail_arch' => '', - 'jail_tag' => '', - 'jail_last_built' => '', - 'jail_update_cmd' => '', - 'jail_description' => '', - 'jail_src_mount' => '' + public function __construct($argv = array()) { + $object_hash = array( + 'jail_id' => '', + 'jail_name' => '', + 'jail_arch' => '', + 'jail_tag' => '', + 'jail_last_built' => '', + 'jail_update_cmd' => '', + 'jail_description' => '', + 'jail_src_mount' => '' ); - $this->TinderObject($object_hash, $argv); + parent::__construct($object_hash, $argv); } - function getId() { + public function getId() { return $this->jail_id; } - function getName() { + public function getName() { return $this->jail_name; } - function getArch() { + public function getArch() { return $this->jail_arch; } - function getTag() { + public function getTag() { return $this->jail_tag; } - function getLastBuilt() { + public function getLastBuilt() { return $this->jail_last_built; } - function getUpdateCmd() { + public function getUpdateCmd() { return $this->jail_update_cmd; } - function getDescription() { + public function getDescription() { return $this->jail_description; } - function getSrcMount() { + public function getSrcMount() { return $this->jail_src_mount; } - function setName($name) { + public function setName($name) { $this->jail_name = $name; } - function setArch($tag) { + public function setArch($tag) { $this->jail_arch = $tag; } - function setTag($tag) { + public function setTag($tag) { $this->jail_tag = $tag; } - function setLastBuilt($time) { + public function setLastBuilt($time) { $this->jail_last_built = $time; } - function setUpdateCmd($cmd) { + public function setUpdateCmd($cmd) { $this->jail_update_cmd = $cmd; } - function setDescription($descr) { + public function setDescription($descr) { $this->jail_description = $descr; } - } +} + ?>