syntaxe POO (visibilite) et maj indentation
[mw_sourceml] / app / helpers / mw_helper_sourceml_out.php
index a1f962b..8bb4636 100644 (file)
@@ -2,14 +2,14 @@
 
   class mw_helper_sourceml_out extends mw_helper{
 
-    function aff_date($date){
+    public function aff_date($date){
       if(preg_match("/([0-9]{2,4})-([0-9]{1,2})-([0-9]{1,2})/", $date, $regs)){
         $date = $regs[3]." ".$this->mois($regs[2])." ".$regs[1];
       }
       return $date;
     }
   
-    function mois($n){
+    public function mois($n){
       switch($n){
         case 1:  $mois = "jan"; break;
         case 2:  $mois = "fev"; break;
@@ -29,5 +29,3 @@
     }
 
   }
-
-?>
\ No newline at end of file