public function __construct($args = array())
 {
     parent::__construct($args);
     $this->show_add_button = $args['show_add_button'];
     if (count($this->row_actions) > 2 && $ci->setting_model->get_value('Action icons grouped into menu') == 'Yes') {
         $this->group_action_icons = true;
     }
 }
Пример #2
0
 protected function setup_renderer()
 {
     $this->renderer = DatagridRenderer::get_instance($this->outputtype, array('jsdriver' => $this->jsdriver, 'structure' => $this->structure, 'columns' => $this->columns, 'filters' => $this->filters, 'row_actions' => $this->row_actions, 'row_action_capabilities' => $this->row_action_capabilities, 'row_action_conditions' => $this->row_action_conditions, 'datagrid_callbacks' => $this->datagrid_callbacks, 'available_export_types' => $this->available_export_types, 'num_rows' => $this->query_builder->get_num_rows(), 'total_records' => $this->query_builder->get_total_records(), 'per_page' => $this->per_page, 'feature_type' => $this->feature_type, 'module' => $this->module, 'title_icon' => $this->title_icon, 'uri_segment_1' => $this->uri_segment_1, 'uri_segment_2' => $this->uri_segment_2, 'url_param' => $this->url_param, 'show_add_button' => $this->show_add_button, 'custom_title' => $this->custom_title, 'show_pagination' => $this->paginate, 'wide_layout' => $this->wide_layout));
 }
Пример #3
0
 public function __construct(TwigRendererEngine $engine)
 {
     parent::__construct($engine);
 }