/**
  * Called after the check that all required registry values
  * have been set correctly has run.
  *
  * @return void
  */
 public function afterRegistry()
 {
     parent::afterRegistry();
     $orgId = $this->respondent->getOrganizationId();
     // These values are set for the generic table snippet and
     // should be reset for this snippet
     $this->browse = false;
     $this->extraFilter = array("gtr_organizations LIKE '%|{$orgId}|%'");
     $this->menuEditActions = 'view';
     $this->menuShowActions = 'create';
 }
 public function afterRegistry()
 {
     parent::afterRegistry();
     // If loaded inline by Ajax request, disable the buttons
     if ($this->request->isXmlHttpRequest()) {
         $this->showButtons = false;
     }
 }
 /**
  * Called after the check that all required registry values
  * have been set correctly has run.
  *
  * @return void
  */
 public function afterRegistry()
 {
     parent::afterRegistry();
     $this->onEmpty = $this->_('No appointments found.');
 }
 /**
  * Called after the check that all required registry values
  * have been set correctly has run.
  *
  * @return void
  */
 public function afterRegistry()
 {
     parent::afterRegistry();
     $model = $this->getModel();
     $br = \MUtil_Html::create('br');
     $sp = \MUtil_Html::raw(' ');
     $this->columns[10] = array('gro_id_order');
     $this->columns[20] = array('gro_id_survey');
     $this->columns[30] = array('gro_round_description');
     $this->columns[40] = array('gro_icon_file');
     $this->columns[45] = array('ggp_name');
     $this->columns[50] = array('gro_valid_after_field', $sp, 'gro_valid_after_source', $sp, 'gro_valid_after_id');
     $this->columns[60] = array('gro_valid_for_field', $sp, 'gro_valid_for_source', $sp, 'gro_valid_for_id');
     $this->columns[70] = array('gro_active');
     if ($label = $model->get('gro_changed_event', 'label')) {
         $this->columns[80] = array('gro_changed_event');
     }
     if ($label = $model->get('gro_changed_event', 'label')) {
         $this->columns[90] = array('gro_display_event');
     }
     $this->columns[100] = array('gro_code');
     $this->columns[110] = array('organizations');
 }