public function testGetDefaultModelOK()
 {
     $CI =& get_instance();
     $CI->default_model = $CI->user_model;
     $this->assertNotNull($CI->getDefaultModel());
     $method = get_controller_method();
     $CI->default_model = array($method => $CI->user_model);
     $this->assertNotNull($CI->getDefaultModel());
 }
 public function getCurrentAction()
 {
     $controller = get_controller_class();
     $method = get_controller_method();
     $action = $this->getActionByController($controller, $method);
     if ($this->validAction($action)) {
         return $action;
     }
     return null;
 }
function get_controller_meta()
{
    $action = new Action();
    $action->controller = get_controller_class();
    $action->method = get_controller_method();
    $action->args = get_controller_args();
    return $action;
}
 function datatableProcess()
 {
     $this->load->library('datatable');
     $p = $this->datatable->buildPagination($this->input->get());
     $this->log('page', $this->datatable->transport);
     $this->log('page', $p);
     $default_model = $this->getDefaultModel();
     if ($default_model) {
         $method = get_controller_method() . '_datatable_customize';
         if (method_exists($this, $method)) {
             $p = $this->{$method}($p);
         }
         $default_model->pagination($p);
         $this->log('Queries', $this->db->queries);
         return $this->jsonOut($this->datatable->prepareOutput($p));
     }
     return $this->jsonOut(array());
 }