]> _ Git - cubeextranet.git/commitdiff
fix #2373 @0:20
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 26 Nov 2018 13:18:06 +0000 (13:18 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 26 Nov 2018 13:18:06 +0000 (13:18 +0000)
inc/commons/DAO/class.common.dao.fichier.php

index 4c389f038bcf2ea36d3f9380bde20f5d1c0c3378..be9cc7313cc9faa9a3fff4e1084a89ff2064bafd 100644 (file)
@@ -1,10 +1,12 @@
 <?php\r
 \r
-class commonDAOFichier extends commonDAO {\r
+class commonDAOFichier extends commonDAO\r
+{\r
 \r
        public $entreprise_id;\r
 \r
-       public function singleton($infos) {\r
+       public function singleton($infos)\r
+       {\r
                $path = path::real($infos['path']);\r
                $rel_path = str_replace(FTPROOT, '', $path);\r
                $fichier = new commonFichier();\r
@@ -21,7 +23,8 @@ class commonDAOFichier extends commonDAO {
                return $fichier;\r
        }\r
 \r
-       public function getListe($orderby = null, $sens = null, $limit = null) {\r
+       public function getListe($orderby = null, $sens = null, $limit = null)\r
+       {\r
                $dao = new commonDAOEntreprise($this->con);\r
                $contacts = $dao->getContacts($this->entreprise_id);\r
                $daoEquipiers = new commonDAOEquipier($this->con);\r
@@ -68,7 +71,8 @@ class commonDAOFichier extends commonDAO {
                return $fichiers;\r
        }\r
 \r
-       public function count() {\r
+       public function count()\r
+       {\r
                $dao = new commonDAOEntreprise($this->con);\r
                $contacts = $dao->getContacts($this->entreprise_id);\r
                $res = 0;\r
@@ -80,11 +84,12 @@ class commonDAOFichier extends commonDAO {
                return $res;\r
        }\r
 \r
-       public function sort($a, $b) {\r
+       public function sort($a, $b)\r
+       {\r
                $a1 = $a->{\r
-                               $this->orderby};\r
+               $this->orderby};\r
                $b1 = $b->{\r
-                               $this->orderby};\r
+               $this->orderby};\r
 \r
                if (is_numeric($a1) && is_numeric($b1)) {\r
                        if ($a1 == $b1) {\r
@@ -104,26 +109,27 @@ class commonDAOFichier extends commonDAO {
                }\r
        }\r
 \r
-       protected function search($fichiers) {\r
+       protected function search($fichiers)\r
+       {\r
                $res = array();\r
                foreach ($fichiers as $k => $f) {\r
-                       if (stristr((string) $f, $this->q)) {\r
+                       if (stristr((string)$f, $this->q)) {\r
                                $res[$k] = $f;\r
                        }\r
                }\r
                return $res;\r
        }\r
 \r
-       public function supprime($path) {\r
+       public function supprime($path)\r
+       {\r
                if (file_exists(FTPROOT . $path)) {\r
                        unlink(FTPROOT . $path);\r
                }\r
        }\r
 \r
-       public function deleteOldFiles() {\r
+       public function deleteOldFiles()\r
+       {\r
                cubeFiles::deleteFilesOlderThan(FTPROOT, 60, array('*.ipa', '*.apk'));\r
        }\r
 \r
-}\r
-\r
-?>
\ No newline at end of file
+}
\ No newline at end of file