public static function get_format_data_structure($get_children = true, $get_articles = true, $full = true, $get_parent = false) { global $msg; $format = cms_editorial::get_format_data_structure("section", $full); if ($get_parent) { $format[] = array('var' => "parent", 'desc' => $msg['cms_editorial_desc_parent_section'], 'children' => self::prefix_var_tree(cms_section::get_format_data_structure(false, false), "parent")); } if ($get_children) { $format[] = array('var' => 'children', 'desc' => $msg['cms_editorial_desc_children'], 'children' => self::prefix_var_tree(cms_section::get_format_data_structure(false, false), "children[i]")); } if ($get_articles) { $format[] = array('var' => 'articles', 'desc' => $msg['cms_editorial_desc_articles'], 'children' => self::prefix_var_tree(cms_article::get_format_data_structure(), "articles[i]")); } return $format; }
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'])))); }
public static function get_format_data_structure($type = "article", $full = true) { return cms_editorial::get_format_data_structure($type, $full); }