get_selected_selector(); if($selector){ $query = "select managed_module_box from cms_managed_modules join cms_cadres on id_cadre = ".$this->cadre_parent." and cadre_object = managed_module_name"; $result = mysql_query($query); if(mysql_num_rows($result)){ $box = mysql_result($result,0,0); $infos =unserialize($box); $menu = $infos['module']['menus'][$selector->get_value()]; } //les données sont passées par json_encode donc obligatoirement en utf-8 return $this->utf8_decode($menu); } return false; } public function get_format_data_structure(){ return array( array( 'var' => "items", 'desc'=> $this->msg['cms_module_menu_datasource_menu_items_desc'], 'children' => array( array( 'var' => "items[i].id", 'desc'=> $this->msg['cms_module_menu_datasource_menu_item_id_desc'] ), array( 'var' => "items[i].title", 'desc'=> $this->msg['cms_module_menu_datasource_menu_item_title_desc'] ), array( 'var' => "items[i].link", 'desc'=> $this->msg['cms_module_menu_datasource_menu_item_link_desc'] ), array( 'var' => "items[i].details", 'desc'=> $this->msg['cms_module_menu_datasource_menu_item_details_desc'], 'children' => cms_editorial::prefix_var_tree(cms_section::get_format_data_structure(false,false,false),"items[i].details") ), array( 'var' => "items[i].children", 'desc'=> $this->msg['cms_module_menu_datasource_menu_item_children_desc'] ) ) ) ); } }