--- FreeBSD/tinderbox/webui/core/BuildPortsQueue.php 2007/11/02 20:56:34 1.1 +++ FreeBSD/tinderbox/webui/core/BuildPortsQueue.php 2007/11/09 22:56:45 1.1.1.1.2.1 @@ -24,97 +24,101 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # +# $Paefchen$ # $MCom: portstools/tinderbox/webui/core/BuildPortsQueue.php,v 1.10 2007/10/13 02:28:47 ade Exp $ # - require_once 'TinderObject.php'; +class BuildPortsQueue extends TinderObject { - class BuildPortsQueue extends TinderObject { - - function BuildPortsQueue($argv = array()) { + public function __construct($argv = array()) { $object_hash = array( - 'build_ports_queue_id' => '', - 'enqueue_date' => '', - 'completion_date' => '', - 'build_id' => '', - 'build_name' => '', - 'user_id' => '', - 'user_name' => '', - 'port_directory' => '', - 'priority' => '', - 'email_on_completion' => '', - 'status' => '' + 'build_ports_queue_id' => '', + 'enqueue_date' => '', + 'completion_date' => '', + 'build_id' => '', + 'build_name' => '', + 'user_id' => '', + 'user_name' => '', + 'port_directory' => '', + 'priority' => '', + 'email_on_completion' => '', + 'status' => '' ); - $this->TinderObject($object_hash, $argv); + parent::__construct($object_hash, $argv); } - function getId() { + public function getId() { return $this->build_ports_queue_id; } - function getEnqueueDate() { + public function getEnqueueDate() { return $this->enqueue_date; } - function getCompletionDate() { + public function getCompletionDate() { return $this->completion_date; } - function getEmailOnCompletion() { + public function getEmailOnCompletion() { return $this->_truth_array[$this->email_on_completion]; } - function getStatus() { + public function getStatus() { return $this->status; } - function getPortDirectory() { + public function getPortDirectory() { return $this->port_directory; } - function getPriority() { + public function getPriority() { return $this->priority; } - function getBuildId() { + public function getBuildId() { return $this->build_id; } - function getBuildName() { + public function getBuildName() { return $this->build_name; } - function getUserId() { + public function getUserId() { return $this->user_id; } - function getUserName() { + public function getUserName() { return $this->user_name; } - function getBuildPortsQueueId() { + public function getBuildPortsQueueId() { return $this->build_ports_queue_id; } - function setBuildId( $build_id ) { + public function setBuildId( $build_id ) { return $this->build_id = $build_id; } - function setPriority( $priority ) { + public function setPriority( $priority ) { return $this->priority = $priority; } - function setEmailOnCompletion( $email_on_completion ) { - switch( $email_on_completion ) { - case '1': $email_on_completion = 1; break; - default: $email_on_completion = 0; break; - } + public function setEmailOnCompletion( $email_on_completion ) { + switch( $email_on_completion ) { + case '1': + $email_on_completion = 1; + break; + default: + $email_on_completion = 0; + } + return $this->email_on_completion = $email_on_completion; } - function resetStatus() { - return $this->status='ENQUEUED'; + public function resetStatus() { + return $this->status='ENQUEUED'; } - } +} + ?>