syntaxe POO (visibilite)
[mw_thumbs] / app / data / modules / share / mw_data_thumbs.php
index c7cf3a4..e594a26 100644 (file)
@@ -2,11 +2,11 @@
 
   class mw_data_thumbs extends mw_data{
 
-    function mw_thumbs_activated(){
+    public function mw_thumbs_activated(){
       return true;
     }
 
-    function img_thumb($src, $max_width, $max_height, $thumbs_dir = "", $background_color = array(255, 255, 255), $CROP = false){
+    public function img_thumb($src, $max_width, $max_height, $thumbs_dir = "", $background_color = array(255, 255, 255), $CROP = false){
       if(strlen($thumbs_dir) > 0){
         if(!@is_dir($thumbs_dir)) @mkdir($thumbs_dir);
         if(!@is_dir($thumbs_dir)) return false;
@@ -91,7 +91,7 @@
       return $thumb;
     }
 
-    function make_thumb(
+    public function make_thumb(
       $src,
       $max_width,
       $max_height,
       return false;
     }
 
-    function new_thumb_file_name($dest, $file_name, $prefix = "img_"){
+    public function new_thumb_file_name($dest, $file_name, $prefix = "img_"){
       $dest .= strlen($dest) > 0 && substr($dest, -1) != "/" ? "/" : "";
       if(is_dir($dest)){
         $ext = "";
     }
 
   }
-
-?>
\ No newline at end of file