Esempio n. 1
0
 /**
  * @return array
  */
 protected function insertFields()
 {
     $dbw = wfGetDB(DB_MASTER);
     return array('job_id' => $dbw->nextSequenceValue('job_job_id_seq'), 'job_cmd' => $this->command, 'job_namespace' => $this->title->getNamespace(), 'job_title' => $this->title->getDBkey(), 'job_timestamp' => $dbw->timestamp(), 'job_params' => Job::makeBlob($this->params));
 }
Esempio n. 2
0
 protected function insertFields()
 {
     return array('job_cmd' => $this->command, 'job_namespace' => $this->title->getNamespace(), 'job_title' => $this->title->getDBkey(), 'job_params' => Job::makeBlob($this->params));
 }
Esempio n. 3
0
 /**
  * @return array
  */
 protected function insertFields()
 {
     /**
      * @author Piotr Molski (moli)
      * trap for BugId: 11897
      */
     if (!$this->title instanceof Title) {
         $log = "MOLI JOB@invalid title: " . $this->command . " . params: " . print_r($this->params, true) . "\n";
         error_log($log);
     } else {
         $dbw = wfGetDB(DB_MASTER);
         return array('job_id' => $dbw->nextSequenceValue('job_job_id_seq'), 'job_cmd' => $this->command, 'job_namespace' => $this->title->getNamespace(), 'job_title' => $this->title->getDBkey(), 'job_timestamp' => $dbw->timestamp(), 'job_params' => Job::makeBlob($this->params));
     }
 }