/**
  * Now we have the requests answered, add the DatabasePatcher as it needs the db object
  *
  * @return boolean
  */
 public function checkRegistryRequestsAnswers()
 {
     $this->escort = \GemsEscort::getInstance();
     //Load the dbaModel
     $model = new \Gems_Model_DbaModel($this->db, $this->escort->getDatabasePaths());
     if ($this->project->databaseFileEncoding) {
         $model->setFileEncoding($this->project->databaseFileEncoding);
     }
     $this->dbaModel = $model;
     return true;
 }
 /**
  * Creates a model for getModel(). Called only for each new $action.
  *
  * The parameters allow you to easily adapt the model to the current action. The $detailed
  * parameter was added, because the most common use of action is a split between detailed
  * and summarized actions.
  *
  * @param boolean $detailed True when the current action is not in $summarizedActions.
  * @param string $action The current action.
  * @return \MUtil_Model_ModelAbstract
  */
 public function createModel($detailed, $action)
 {
     $moreDetails = !in_array($action, array('run', 'deleted'));
     $model = new \Gems_Model_DbaModel($this->db, $this->escort->getDatabasePaths());
     if ($this->project->databaseFileEncoding) {
         $model->setFileEncoding($this->project->databaseFileEncoding);
     }
     $model->set('type', 'label', $this->_('Type'));
     $model->set('name', 'label', $this->_('Name'));
     if ($moreDetails) {
         $model->set('group', 'label', $this->_('Group'));
         $model->set('order', 'label', $this->_('Order'));
         $model->set('location', 'label', $this->_('Location'));
     }
     // $model->set('path',      'label', $this->_('Path'));
     $model->set('state', 'label', $this->_('Status'));
     if ($detailed) {
         $model->set('script', 'label', $this->_('Script'), 'itemDisplay', 'pre');
     } else {
         $model->set('lastChanged', 'label', $this->_('Changed on'), 'dateFormat', 'yyyy-MM-dd HH:mm:ss');
     }
     return $model;
 }