@@ -265,6 +265,9 @@ |
||
265 | 265 | return $resetHash; |
266 | 266 | } |
267 | 267 | |
268 | + /** |
|
269 | + * @param string $hash |
|
270 | + */ |
|
268 | 271 | public function sendResetMail($hash) |
269 | 272 | { |
270 | 273 | // @todo exception |
@@ -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'); |
@@ -5,6 +5,9 @@ discard block |
||
5 | 5 | const TYPE_EXTENSION = 'ext'; |
6 | 6 | const TYPE_MIMETYPE = 'mime'; |
7 | 7 | |
8 | + /** |
|
9 | + * @param string $filename |
|
10 | + */ |
|
8 | 11 | public static function getMimeType($filename) |
9 | 12 | { |
10 | 13 | $realpath = realpath($filename); |
@@ -27,6 +30,9 @@ discard block |
||
27 | 30 | return false; |
28 | 31 | } |
29 | 32 | |
33 | + /** |
|
34 | + * @param string|false $mimeType |
|
35 | + */ |
|
30 | 36 | public static function getExtensionFromMime($mimeType) |
31 | 37 | { |
32 | 38 | $mimes = self::_mimetypes(); |
@@ -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); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * |
117 | 117 | * @param string $url |
118 | 118 | * @param bool|string $toFile |
119 | - * @param bool|array $header |
|
119 | + * @param string[] $header |
|
120 | 120 | * @return string |
121 | 121 | * @throws Exception |
122 | 122 | */ |
@@ -222,6 +222,7 @@ discard block |
||
222 | 222 | |
223 | 223 | /** |
224 | 224 | * @source http://stackoverflow.com/a/5498992/938297 |
225 | + * @param resource $ch |
|
225 | 226 | */ |
226 | 227 | private static function _curl_exec_follow(&$ch, $redirects = 20, $curlopt_header = false) |
227 | 228 | { |