Ejemplo n.º 1
0
 /**
  * Set the default model, get tables.
  */
 public function init()
 {
     $this->_helper->db->setDefaultModelName('NeatlineRecord');
     $this->_exhibits = $this->_helper->db->getTable('NeatlineExhibit');
     $this->_records = $this->_helper->db->getTable('NeatlineRecord');
     parent::init();
 }
Ejemplo n.º 2
0
 /**
  * Browse exhibits.
  */
 public function browseAction()
 {
     // By default, sort by added date.
     if (!$this->_getParam('sort_field')) {
         $this->_setParam('sort_field', 'added');
         $this->_setParam('sort_dir', 'd');
     }
     parent::browseAction();
 }
Ejemplo n.º 3
0
 /**
  * Set the controller model.
  */
 public function init()
 {
     $this->_helper->db->setDefaultModelName('Item');
     parent::init();
 }