syntaxe POO (visibilite)
[mw_pages] / app / helpers / mw_helper_pages.php
index f6db62c..e4ee747 100644 (file)
@@ -2,7 +2,7 @@
 
   class mw_helper_pages extends mw_helper{
 
-    function datetime2timestamp($string){
+    public function datetime2timestamp($string){
       list($date, $time) = explode(" ", $string);
       list($year, $month, $day) = explode("-", $date);
       list($hour, $minute, $second) = explode(":", $time);
@@ -10,7 +10,7 @@
       return $timestamp;
     }
 
-    function pages_arbo_navig_lis($env, $arbo, $ariane = array()){
+    public function pages_arbo_navig_lis($env, $arbo, $ariane = array()){
       $content = "";
       if($arbo["subs"]){
         if($path_item = array_shift($ariane)){
@@ -35,7 +35,7 @@
       return $content;
     }
 
-    function pages_arbo_edit_select_options($arbo, $id_page, $id_parent, $indent_increment = "", $indent = ""){
+    public function pages_arbo_edit_select_options($arbo, $id_page, $id_parent, $indent_increment = "", $indent = ""){
       $arbo["id"] = $arbo["id"] ? $arbo["id"] : "";
       $content =
        "<option"
@@ -55,7 +55,7 @@
       return $content;
     }
 
-    function pages_arbo_list_select_options($env, $etat, $arbo, $current_page_id, $indent_increment = "", $indent = ""){
+    public function pages_arbo_list_select_options($env, $etat, $arbo, $current_page_id, $indent_increment = "", $indent = ""){
       $arbo["id"] = isset($arbo["id"]) ? $arbo["id"] : "";
       $content =
        "<option"
@@ -73,7 +73,7 @@
       return $content;
     }
 
-    function pages_arbo_start_select_options($env, $arbo, $current_start_action, $current_start_action_params, $indent_increment = "", $indent = ""){
+    public function pages_arbo_start_select_options($env, $arbo, $current_start_action, $current_start_action_params, $indent_increment = "", $indent = ""){
       $arbo["id"] = isset($arbo["id"]) ? $arbo["id"] : "";
       $content = "";
       if($arbo["id"]){
     }
 
   }
-
-?>
\ No newline at end of file