Example #1
0
 /**
  * Constructor
  */
 public function __construct($userId = null)
 {
     parent::__construct();
     $app = \Cobalt\Container::fetch('app');
     $this->_view = $app->input->get('view');
     $this->_layout = str_replace('_filter', '', $app->input->get('layout'));
     if ($userId) {
         $this->load($userId);
     }
 }
Example #2
0
 /**
  * Method transforms items to the format jQuery dataTables needs.
  * Algorithm is available in parent method, just pass items array.
  *
  * @param   array of object of items from the database
  * @return  array in format dataTables requires
  */
 public function getDataTableItems($items = array())
 {
     if (!$items) {
         $items = $this->getEvents();
     }
     return parent::getDataTableItems($items);
 }
Example #3
0
 /**
  *
  *
  * @access  public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     /**Initialize Configurations**/
     $this->_getConfig();
 }