syntaxe POO (visibilite) et maj indentation
[mw_sourceml] / app / data / modules / share / sml_data_sources_xml_pathes.php
index f49d891..605d60e 100644 (file)
@@ -2,7 +2,7 @@
 
   class sml_data_sources_xml_pathes extends mw_data{
 
-    function init_source_xml_pathes(){
+    public function init_source_xml_pathes(){
       $env = $this->env();
       $sources_dir = $env->path("content")."sources/";
       if(!is_dir($sources_dir)){
       return true;
     }
 
-    function source_xml_path($id_source){
+    public function source_xml_path($id_source){
       if(!$this->init_source_xml_pathes()) return false;
       $env = $this->env();
       return $env->path("content")."sources/".$id_source.".xml";
     }
 
-    function reference_edit_xml_dir_path(){
+    public function reference_edit_xml_dir_path(){
       if(!$this->init_source_xml_pathes()) return false;
       $env = $this->env();
       return $env->path("content")."sources/references/";
     }
 
-    function reference_edit_xml_path($id_source){
+    public function reference_edit_xml_path($id_source){
       if(!$this->init_source_xml_pathes()) return false;
       $env = $this->env();
       return $this->reference_edit_xml_dir_path().$id_source.".xml";
     }
 
-    function derivations_edit_xml_dir_path($id_source = null){
+    public function derivations_edit_xml_dir_path($id_source = null){
       if(!$this->init_source_xml_pathes()) return false;
       $env = $this->env();
       return $env->path("content")."sources/derivations/".(isset($id_source) ? $id_source."/" : "");
     }
 
-    function derivation_edit_xml_path($id_source, $id_source_derivation){
+    public function derivation_edit_xml_path($id_source, $id_source_derivation){
       if(!$this->init_source_xml_pathes()) return false;
       $env = $this->env();
       return $this->derivations_edit_xml_dir_path($id_source).$id_source_derivation.".xml";
     }
 
-    function source_xml_url($id_source){
+    public function source_xml_url($id_source){
       if(!$this->init_source_xml_pathes()) return false;
       $env = $this->env();
       return "http://".$_SERVER["SERVER_NAME"].$env->path("web").$this->source_xml_path($id_source);
     }
 
   }
-
-?>
\ No newline at end of file