Example #1
0
 public function __construct($queue, $jail)
 {
     $this->_db = Config::getDatabaseHandle();
     if (in_array($queue, $this->_queues)) {
         $this->_queue = $queue;
     } else {
         $this->_queue = $this->_queues[0];
     }
     $jails = new Jails();
     if ($jails->exists($jail)) {
         $this->_jail = $jail;
     } else {
         trigger_error(E_USER_ERROR, 'Jail is unknown');
     }
 }
 public function __construct()
 {
     $this->_db = Config::getDatabaseHandle();
 }
Example #3
0
 public function __construct($jobid = null)
 {
     $this->_db = Config::getDatabaseHandle();
     $this->_jobid = $jobid;
     $this->_load();
 }
Example #4
0
 public function __construct($name)
 {
     $this->_db = Config::getDatabaseHandle();
     $this->_name = $name;
     $this->_load();
 }
Example #5
0
 public function __construct($groupid)
 {
     $this->_db = Config::getDatabaseHandle();
     $this->_groupid = $groupid;
 }