/** * Get Extend Definitions in the context of one parent * * @example Get the Extend available for the parent 'contact' and * linked to the context 'page with ID 3' * * @param null $mode. Return format. * * @receives context Parent Context. Ex : Page, Article, Company * id_context Parent Context ID * parent Extend Parent type. Ex : Page, Article, Contact * */ public function get_context_list($mode = NULL) { $context = $this->input->post('context'); $id_context = $this->input->post('id_context'); $parent = $this->input->post('parent'); $items = $this->extend_field_model->get_context_list($context, $id_context, $parent); if ($mode === 'json') { $this->xhr_output($items); } }