/** * Get items which belongs to one item definition * */ public function get_list_from_definition($mode = NULL) { $id_item_definition = $this->input->post('id_item_definition'); // Items, with extend fields content $items = $this->item_model->get_list_from_definition($id_item_definition, Settings::get_lang('default')); if ($mode === 'json') { $this->xhr_output($items); } }