format_datas(); $rubrique = array(); $rubrique['type'] = 'section'; $rubrique['num_section'] = $rubrique_data->get_id(); $rubrique['title'] = $rubrique_data->get_title(); $rubrique['summary'] = $rubrique_data->get_resume(); $rubrique['content'] = $rubrique_data->get_resume(); $rubrique['logo_url'] = $rubrique_data->get_logo()['large']; $rubrique['url'] = $this->get_constructed_link("section", $rubrique_data->get_id()); if($rubrique_data->get_start_date() == ""){ $rubrique['publication_date'] = extraitdate($rubrique_data->get_create_date()); } else{ $rubrique['publication_date'] = $rubrique_data->get_start_date(); } if(count($rubrique_data->get_descriptors())){ $descriptors = array(); $rubrique_data_descriptors = $rubrique_data->get_descriptors(); for($i=0 ; $i $rubrique_data_descriptors[$i]['id']); } $rubrique['descriptors'] = $descriptors; } $rubriques_retour[] = $rubrique; } } return $rubriques_retour; } public function filter_datas($datas, $user=0){ return $this->filter_sections($datas, $user); } public function get_available_selectors(){ global $msg; return array( 'docwatch_selector_parent_sections' => $msg['docwatch_selector_parent_sections'], 'docwatch_selector_sections_type_section_generic' => $this->msg['docwatch_datasource_selector_sections_type_section_generic'], 'docwatch_selector_sections_type_section' => $this->msg['docwatch_datasource_selector_sections_type_section'] ); } public function get_form_content(){ global $msg,$charset; $form = parent::get_form_content(); $form .= "
 
".$this->get_constructor_link_form("section",get_class($this))."
"; return $form; } public function set_from_form() { $this->save_constructor_link_form("section",get_class($this)); parent::set_from_form(); } } // end of docwatch_datasource_sections