<?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
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
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
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
}\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