@@ -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); |