/**
  * Adds columns from the model to the bridge that creates the browse table.
  *
  * Overrule this function to add different columns to the browse table, without
  * having to recode the core table building code.
  *
  * @param \MUtil_Model_Bridge_TableBridge $bridge
  * @param \MUtil_Model_ModelAbstract $model
  * @return void
  */
 protected function addBrowseTableColumns(\MUtil_Model_Bridge_TableBridge $bridge, \MUtil_Model_ModelAbstract $model)
 {
     if (!$this->columns) {
         $br = \MUtil_Html::create('br');
         $this->columns[10] = array('gla_created', $br, 'gls_name');
         $this->columns[20] = array('gla_message');
         $this->columns[30] = array('staff_name', $br, 'gla_role');
         $this->columns[40] = array('respondent_name', $br, 'gla_organization');
     }
     parent::addBrowseTableColumns($bridge, $model);
 }
 /**
  * Adds columns from the model to the bridge that creates the browse table.
  *
  * Overrule this function to add different columns to the browse table, without
  * having to recode the core table building code.
  *
  * @param \MUtil_Model_Bridge_TableBridge $bridge
  * @param \MUtil_Model_ModelAbstract $model
  * @return void
  */
 protected function addBrowseTableColumns(\MUtil_Model_Bridge_TableBridge $bridge, \MUtil_Model_ModelAbstract $model)
 {
     // Make sure these fields are loaded
     $model->get('gro_valid_after_field');
     $model->get('gro_valid_after_id');
     $model->get('gro_valid_after_length');
     $model->get('gro_valid_after_source');
     $model->get('gro_valid_after_unit');
     $model->get('gro_valid_for_field');
     $model->get('gro_valid_for_id');
     $model->get('gro_valid_for_length');
     $model->get('gro_valid_for_source');
     $model->get('gro_valid_for_unit');
     parent::addBrowseTableColumns($bridge, $model);
 }
 /**
  * Adds columns from the model to the bridge that creates the browse table.
  *
  * Overrule this function to add different columns to the browse table, without
  * having to recode the core table building code.
  *
  * @param \MUtil_Model_Bridge_TableBridge $bridge
  * @param \MUtil_Model_ModelAbstract $model
  * @return void
  */
 protected function addBrowseTableColumns(\MUtil_Model_Bridge_TableBridge $bridge, \MUtil_Model_ModelAbstract $model)
 {
     if ($this->columns) {
         parent::addBrowseTableColumns($bridge, $model);
         return;
     }
     if ($model->has('row_class')) {
         $bridge->getTable()->tbody()->getFirst(true)->appendAttrib('class', $bridge->row_class);
     }
     if ($this->showMenu) {
         $showMenuItems = $this->getShowMenuItems();
         foreach ($showMenuItems as $menuItem) {
             $bridge->addItemLink($menuItem->toActionLinkLower($this->request, $bridge));
         }
     }
     // make sure search results are highlighted
     $this->applyTextMarker();
     $this->addBrowseColumn1($bridge, $model);
     $this->addBrowseColumn2($bridge, $model);
     $this->addBrowseColumn3($bridge, $model);
     $this->addBrowseColumn4($bridge, $model);
     if ($this->showMenu) {
         $editMenuItems = $this->getEditMenuItems();
         foreach ($editMenuItems as $menuItem) {
             $bridge->addItemLink($menuItem->toActionLinkLower($this->request, $bridge));
         }
     }
 }
 /**
  * Adds columns from the model to the bridge that creates the browse table.
  *
  * Overrule this function to add different columns to the browse table, without
  * having to recode the core table building code.
  *
  * @param \MUtil_Model_Bridge_TableBridge $bridge
  * @param \MUtil_Model_ModelAbstract $model
  * @return void
  */
 protected function addBrowseTableColumns(\MUtil_Model_Bridge_TableBridge $bridge, \MUtil_Model_ModelAbstract $model)
 {
     $br = \MUtil_Html::create('br');
     $this->columns = array(10 => array('gsf_login', $br, 'gsf_id_primary_group'), 20 => array('name', $br, 'gsf_email'), 30 => array('gsf_id_organization'), 40 => array('gsf_gender', $br, 'gsf_active'));
     parent::addBrowseTableColumns($bridge, $model);
 }