public function get_extend_link_list($mode = NULL) { $id_extend = $this->input->post('id_extend'); $parent = $this->input->post('parent'); $id_parent = $this->input->post('id_parent'); $lang = $this->input->post('lang') ? $this->input->post('lang') : NULL; $items = $this->extend_field_model->get_extend_link_list($id_extend, $parent, $id_parent, $lang); if ($mode === 'json') { $this->xhr_output($items); } }