/** * Now we have the requests answered, add the DatabasePatcher as it needs the db object * * @return boolean */ public function checkRegistryRequestsAnswers() { $escort = \GemsEscort::getInstance(); //As an upgrade almost always includes executing db patches, make a DatabasePatcher object available $this->patcher = new \Gems_Util_DatabasePatcher($this->db, 'patches.sql', $escort->getDatabasePaths()); return parent::checkRegistryRequestsAnswers(); }
/** * Should be called after answering the request to allow the Target * to check if all required registry values have been set correctly. * * @return boolean False if required values are missing. */ public function checkRegistryRequestsAnswers() { return $this->targetModel instanceof \MUtil_Model_ModelAbstract && parent::checkRegistryRequestsAnswers(); }
/** * Should be called after answering the request to allow the Target * to check if all required registry values have been set correctly. * * @return boolean False if required values are missing. */ public function checkRegistryRequestsAnswers() { return $this->iterator instanceof \Iterator && parent::checkRegistryRequestsAnswers(); }
/** * Sets the batch this task belongs to * * This method will be called from the \Gems_Task_TaskRunnerBatch upon execution of the * task. It allows the task to communicate with the batch queue. * * @param \MUtil_Task_TaskBatch $batch * @return \MUtil_Task_TaskInterface (continuation pattern) */ public function setBatch(\MUtil_Task_TaskBatch $batch) { parent::setBatch($batch); $this->_file = $batch->getVariable('file'); return $this; }