@@ -49,6 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * Assert that if some wierd reason this is called in file |
| 51 | 51 | * that we return false |
| 52 | + * @return boolean |
|
| 52 | 53 | */ |
| 53 | 54 | public function getLinkTarget(); |
| 54 | 55 | |
@@ -82,6 +83,7 @@ discard block |
||
| 82 | 83 | * No purpose |
| 83 | 84 | * inherited from iterator but useless |
| 84 | 85 | * An FileObject does not have children so this method returns allways NULL. |
| 86 | + * @return boolean |
|
| 85 | 87 | */ |
| 86 | 88 | public function getChildren(); |
| 87 | 89 | |
@@ -90,7 +92,7 @@ discard block |
||
| 90 | 92 | * |
| 91 | 93 | * Forces a write of all buffered output to the file. |
| 92 | 94 | * |
| 93 | - * @return Returns TRUE on success or FALSE on failure |
|
| 95 | + * @return boolean TRUE on success or FALSE on failure |
|
| 94 | 96 | */ |
| 95 | 97 | public function fflush(); |
| 96 | 98 | |
@@ -146,14 +148,8 @@ discard block |
||
| 146 | 148 | * |
| 147 | 149 | * @param array $fields |
| 148 | 150 | * An array of values. |
| 149 | - * @param string $delimiter |
|
| 150 | - * The optional delimiter parameter sets the field delimiter (one character only). |
|
| 151 | - * @param string $enclosure |
|
| 152 | - * The optional enclosure parameter sets the field enclosure (one character only). |
|
| 153 | - * @param string $escape |
|
| 154 | - * The optional escape parameter sets the escape character (one character only). |
|
| 155 | 151 | * |
| 156 | - * @return int|bool Returns the length of the written string or FALSE on failure. |
|
| 152 | + * @return integer Returns the length of the written string or FALSE on failure. |
|
| 157 | 153 | * returns FALSE, and does not write the CSV line to the file, if the delimiter |
| 158 | 154 | * or enclosure parameter is not a single character. |
| 159 | 155 | * |
@@ -313,7 +309,7 @@ discard block |
||
| 313 | 309 | * FileObject::setMaxLineLen() is used to read fixed lengths of the file. |
| 314 | 310 | * |
| 315 | 311 | * |
| 316 | - * @return Returns the current line number. |
|
| 312 | + * @return integer the current line number. |
|
| 317 | 313 | */ |
| 318 | 314 | public function key(); |
| 319 | 315 | |
@@ -37,6 +37,7 @@ |
||
| 37 | 37 | * Gets an InfoObject object for the file |
| 38 | 38 | * |
| 39 | 39 | * @param string $class_name |
| 40 | + * @return \SplFileInfo |
|
| 40 | 41 | */ |
| 41 | 42 | public function getFileInfo($class_name = '\HOWI3\libhowi\Filesystem\php5\Objects\InfoObject'); |
| 42 | 43 | } |
@@ -28,6 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * symlink — Creates a symbolic link |
| 31 | + * @return boolean |
|
| 31 | 32 | */ |
| 32 | 33 | public function symlink($target = false, $link = false); |
| 33 | 34 | |
@@ -43,6 +44,7 @@ discard block |
||
| 43 | 44 | |
| 44 | 45 | /** |
| 45 | 46 | * link — Create a hard link |
| 47 | + * @return boolean |
|
| 46 | 48 | */ |
| 47 | 49 | public function hardlink($target = false, $link = false); |
| 48 | 50 | |
@@ -68,6 +70,7 @@ discard block |
||
| 68 | 70 | |
| 69 | 71 | /** |
| 70 | 72 | * readlink — Returns the target of a symbolic link |
| 73 | + * @return false|string |
|
| 71 | 74 | */ |
| 72 | 75 | public function readlink($link = false); |
| 73 | 76 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | /** |
| 54 | 54 | * tmpfile — Creates a temporary file |
| 55 | 55 | * |
| 56 | - * @return filehandler |
|
| 56 | + * @return resource |
|
| 57 | 57 | */ |
| 58 | 58 | public function tmpfile(); |
| 59 | 59 | } |
@@ -72,21 +72,33 @@ discard block |
||
| 72 | 72 | private $level; |
| 73 | 73 | |
| 74 | 74 | |
| 75 | + /** |
|
| 76 | + * @param boolean $arg |
|
| 77 | + */ |
|
| 75 | 78 | public function setStatus($arg) |
| 76 | 79 | { |
| 77 | 80 | $this->status = is_bool($arg) ? $arg : false; |
| 78 | 81 | } |
| 79 | 82 | |
| 83 | + /** |
|
| 84 | + * @param integer $code |
|
| 85 | + */ |
|
| 80 | 86 | public function setCode($code) |
| 81 | 87 | { |
| 82 | 88 | $this->code = is_int($code) ? $code : 0; |
| 83 | 89 | } |
| 84 | 90 | |
| 91 | + /** |
|
| 92 | + * @param string $msg |
|
| 93 | + */ |
|
| 85 | 94 | public function setMsg($msg) |
| 86 | 95 | { |
| 87 | 96 | $this->message = is_string($msg) ? $msg : 'BUG'; |
| 88 | 97 | } |
| 89 | 98 | |
| 99 | + /** |
|
| 100 | + * @param integer $UID |
|
| 101 | + */ |
|
| 90 | 102 | public function setUID($UID) |
| 91 | 103 | { |
| 92 | 104 | $this->UID = is_int($UID) ? $UID : 'BUG'; |
@@ -102,6 +114,9 @@ discard block |
||
| 102 | 114 | $this->microtime = microtime(true); |
| 103 | 115 | } |
| 104 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $context |
|
| 119 | + */ |
|
| 105 | 120 | public function setContext($context) |
| 106 | 121 | { |
| 107 | 122 | $this->context = $context; |
@@ -46,7 +46,6 @@ discard block |
||
| 46 | 46 | * Gets last access time of file |
| 47 | 47 | * |
| 48 | 48 | * @param string $timeformat |
| 49 | - * @param string $filename |
|
| 50 | 49 | * @return int or formated output |
| 51 | 50 | */ |
| 52 | 51 | public function getATime($timeformat = false, $pathname = false); |
@@ -55,7 +54,6 @@ discard block |
||
| 55 | 54 | * Gets inode change time of file |
| 56 | 55 | * |
| 57 | 56 | * @param string $timeformat |
| 58 | - * @param string $filename |
|
| 59 | 57 | * @return int or formated output |
| 60 | 58 | */ |
| 61 | 59 | public function getCTime($timeformat = false, $pathname = false); |
@@ -64,7 +62,6 @@ discard block |
||
| 64 | 62 | * Gets file modification time |
| 65 | 63 | * |
| 66 | 64 | * @param string $timeformat |
| 67 | - * @param string $filename |
|
| 68 | 65 | * @return int or formated output |
| 69 | 66 | */ |
| 70 | 67 | public function getMTime($timeformat = false, $pathname = false); |
@@ -81,6 +78,7 @@ discard block |
||
| 81 | 78 | * ommit emty values? |
| 82 | 79 | * @param string $ago_single |
| 83 | 80 | * @param array $clocale |
| 81 | + * @return string |
|
| 84 | 82 | */ |
| 85 | 83 | public function ct_ago($timestamp, $date_format = 'y,m,d,h,i,s', $sfx = true, $ommit_zero = true, $ago_single = true, $clocale = []); |
| 86 | 84 | |
@@ -101,6 +99,7 @@ discard block |
||
| 101 | 99 | * Sets the class used with InfoObject::openFile() |
| 102 | 100 | * |
| 103 | 101 | * @param string $class_name |
| 102 | + * @return boolean |
|
| 104 | 103 | */ |
| 105 | 104 | public function setFileClass($class_name = "\HOWI3\libhowi\Filesystem\php5\Objects\FileObject"); |
| 106 | 105 | |
@@ -108,6 +107,7 @@ discard block |
||
| 108 | 107 | * Sets the class used with InfoObject::getFileInfo() and SplFileInfo::getPathInfo() |
| 109 | 108 | * |
| 110 | 109 | * @param string $class_name |
| 110 | + * @return boolean |
|
| 111 | 111 | */ |
| 112 | 112 | public function setInfoClass($class_name = "\HOWI3\libhowi\Filesystem\php5\Objects\InfoObject"); |
| 113 | 113 | |