format_datas(); $article = array(); $article['type'] = 'article'; $article['num_article'] = $article_data->get_id(); $article['title'] = $article_data->get_title(); $article['summary'] = $article_data->get_resume(); $article['content'] = $article_data->get_content(); if($article_data->get_start_date() == ""){ $article['publication_date'] = extraitdate($article_data->get_create_date()); } else{ $article['publication_date'] = extraitdate($article_data->get_start_date()); } $article['logo_url'] = $article_data->get_logo()['large']; $article['url'] = $this->get_constructed_link("article", $article_data->get_id()); if(count($article_data->get_descriptors())){ $descriptors = array(); $article_data_descriptors = $article_data->get_descriptors(); for($i=0 ; $i $article_data_descriptors[$i]['id']); } $article['descriptors'] = $descriptors; } $articles_retour[] = $article; } } return $articles_retour; } public function filter_datas($datas, $user=0){ return $this->filter_articles($datas, $user); } public function get_available_selectors(){ global $msg; return array( 'docwatch_selector_articles_by_sections' => $msg['docwatch_selector_articles_by_sections'], 'docwatch_selector_articles_type_article_generic' => $this->msg['docwatch_datasource_selector_articles_type_article_generic'], 'docwatch_selector_articles_type_article' => $this->msg['docwatch_datasource_selector_articles_type_article'] ); } public function get_form_content(){ global $msg,$charset; $form = parent::get_form_content(); $form .= "
 
".$this->get_constructor_link_form("article",get_class($this))."
"; return $form; } public function set_from_form() { $this->save_constructor_link_form("article",get_class($this)); parent::set_from_form(); } } // end of docwatch_datasource_articles