protected function show() { $this->showArgs = func_get_args(); Hook::runWithReferences('viewPreShow', $this->showArgs); $output = call_user_func_array(array($this, 'get'), $this->showArgs); Hook::runWithReferences('viewPostShow', $output, $this->showArgs); Hook::run('preHTTPMessageBody'); echo $output['combine']; }
function __construct() { //there is a chance these things will have been already created with another db instance, so check $this->CrudModel = new CrudModel($this); $this->DbModel = DbModel::init($this->db->name, $this->db); $columns = $this->CrudModel->columns($this->model['table']); $keys = array_keys($columns); $this->defaultConcernData = array(); foreach ($keys as $key) { $this->defaultConcernData[$key] = true; } krsort($this->crud); //reverse key sorted so specific rules outweight combined rules Hook::runWithReferences('newCrudPage', $this); }