@@ -53,6 +53,9 @@ |
||
53 | 53 | return $url; |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @return string |
|
58 | + */ |
|
56 | 59 | public function getFilename() |
57 | 60 | { |
58 | 61 | return $this->get('filename'); |
@@ -53,6 +53,9 @@ |
||
53 | 53 | return $url; |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @return string |
|
58 | + */ |
|
56 | 59 | public function getFilename() |
57 | 60 | { |
58 | 61 | return $this->get('filename'); |
@@ -2,6 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | class Ajde_Fs_Find extends Ajde_Object_Static |
4 | 4 | { |
5 | + /** |
|
6 | + * @param string $pattern |
|
7 | + */ |
|
5 | 8 | public static function findFile($dir, $pattern) |
6 | 9 | { |
7 | 10 | $search = Config::get("local_root") . DIRECTORY_SEPARATOR . $dir . $pattern; |
@@ -28,6 +31,10 @@ discard block |
||
28 | 31 | return $return; |
29 | 32 | } |
30 | 33 | |
34 | + /** |
|
35 | + * @param string $dir |
|
36 | + * @param string $pattern |
|
37 | + */ |
|
31 | 38 | public static function findFilenames($dir, $pattern, $flags = 0) |
32 | 39 | { |
33 | 40 | $files = self::findFiles($dir, $pattern, $flags); |
@@ -30,6 +30,11 @@ |
||
30 | 30 | return true; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param string $className |
|
35 | + * |
|
36 | + * @return string |
|
37 | + */ |
|
33 | 38 | public static function getClassname($className) |
34 | 39 | { |
35 | 40 | $config = Config::getInstance(); |
@@ -79,6 +79,9 @@ |
||
79 | 79 | return $this->_originalRoute; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $route |
|
84 | + */ |
|
82 | 85 | public function setRoute($route) |
83 | 86 | { |
84 | 87 | $this->_route = $route; |
@@ -14,6 +14,9 @@ |
||
14 | 14 | } |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $dir |
|
19 | + */ |
|
17 | 20 | public static function truncate($dir) |
18 | 21 | { |
19 | 22 | self::delete($dir, true); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
179 | - * @return Ajde_Db_Adapter_Abstract |
|
179 | + * @return Ajde_Db_PDO |
|
180 | 180 | */ |
181 | 181 | public function getConnection() |
182 | 182 | { |
@@ -224,6 +224,9 @@ discard block |
||
224 | 224 | return $this->loadByFields([$pk => $value]); |
225 | 225 | } |
226 | 226 | |
227 | + /** |
|
228 | + * @param string $field |
|
229 | + */ |
|
227 | 230 | public function loadByField($field, $value) |
228 | 231 | { |
229 | 232 | return $this->loadByFields([$field => $value]); |
@@ -429,7 +432,7 @@ discard block |
||
429 | 432 | |
430 | 433 | /** |
431 | 434 | * |
432 | - * @param array $fields |
|
435 | + * @param string[] $fields |
|
433 | 436 | */ |
434 | 437 | public function setEncryptedFields($fields) |
435 | 438 | { |
@@ -734,6 +737,9 @@ discard block |
||
734 | 737 | return new $parentModelName(); |
735 | 738 | } |
736 | 739 | |
740 | + /** |
|
741 | + * @param string $column |
|
742 | + */ |
|
737 | 743 | public function getParentTable($column) |
738 | 744 | { |
739 | 745 | $fk = $this->getTable()->getFK($column); |
@@ -864,6 +870,9 @@ discard block |
||
864 | 870 | |
865 | 871 | // TREE SORT FUNCTIONS |
866 | 872 | |
873 | + /** |
|
874 | + * @param string $collectionName |
|
875 | + */ |
|
867 | 876 | public function sortTree($collectionName, $parentField = 'parent', $levelField = 'level', $sortField = 'sort') |
868 | 877 | { |
869 | 878 | $collection = new $collectionName(); |
@@ -874,6 +883,11 @@ discard block |
||
874 | 883 | $this->_recurseChildren($collection, $collectionName, $parentField, $levelField, $sortField); |
875 | 884 | } |
876 | 885 | |
886 | + /** |
|
887 | + * @param string $parentField |
|
888 | + * @param string $levelField |
|
889 | + * @param string $sortField |
|
890 | + */ |
|
877 | 891 | private function _recurseChildren( |
878 | 892 | $collection, |
879 | 893 | $collectionName, |
@@ -5,6 +5,9 @@ discard block |
||
5 | 5 | protected $_contents = null; |
6 | 6 | protected $_table = []; |
7 | 7 | |
8 | + /** |
|
9 | + * @param string $base |
|
10 | + */ |
|
8 | 11 | public function __construct($base, $action, $format = 'html') |
9 | 12 | { |
10 | 13 | $this->set('base', $base); |
@@ -34,6 +37,9 @@ discard block |
||
34 | 37 | $this->setFileinfo(); |
35 | 38 | } |
36 | 39 | |
40 | + /** |
|
41 | + * @param string $action |
|
42 | + */ |
|
37 | 43 | public function setAction($action) |
38 | 44 | { |
39 | 45 | $this->set('action', $action); |
@@ -113,6 +119,9 @@ discard block |
||
113 | 119 | return $this->get('parser'); |
114 | 120 | } |
115 | 121 | |
122 | + /** |
|
123 | + * @param string $base |
|
124 | + */ |
|
116 | 125 | public static function exist($base, $action, $format = 'html') |
117 | 126 | { |
118 | 127 | return self::_getFileInfo($base, $action, $format); |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | $this->_enabled = false; |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @return resource|null |
|
46 | + */ |
|
44 | 47 | public function getHashContext() |
45 | 48 | { |
46 | 49 | if (!isset($this->_hashContext)) { |
@@ -76,6 +79,9 @@ discard block |
||
76 | 79 | return $this->_hashFinal; |
77 | 80 | } |
78 | 81 | |
82 | + /** |
|
83 | + * @param integer $timestamp |
|
84 | + */ |
|
79 | 85 | public function addLastModified($timestamp) |
80 | 86 | { |
81 | 87 | $this->_lastModified[] = $timestamp; |
@@ -148,7 +154,7 @@ discard block |
||
148 | 154 | * Remember a cached value in the cache directory as a file |
149 | 155 | * |
150 | 156 | * @param string $key |
151 | - * @param callable $callback |
|
157 | + * @param Closure $callback |
|
152 | 158 | * @param int $ttl in seconds, defaults to 3600 (one hour) |
153 | 159 | * @return mixed |
154 | 160 | */ |