@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * Constructor |
| 30 | 30 | * |
| 31 | - * @param object $file_handler |
|
| 31 | + * @param FileHandler $file_handler |
|
| 32 | 32 | * |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
@@ -143,8 +143,8 @@ discard block |
||
| 143 | 143 | * |
| 144 | 144 | * @param float $width Width |
| 145 | 145 | * @param float $height Height |
| 146 | - * @param float $offset_x offset x |
|
| 147 | - * @param float $offset_y offset y |
|
| 146 | + * @param integer $offset_x offset x |
|
| 147 | + * @param integer $offset_y offset y |
|
| 148 | 148 | * |
| 149 | 149 | * @return string new file name |
| 150 | 150 | */ |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | /** |
| 87 | 87 | * return an file object with random image |
| 88 | 88 | * |
| 89 | - * @return object file_manager with random image loaded |
|
| 89 | + * @return FileHandler file_manager with random image loaded |
|
| 90 | 90 | */ |
| 91 | 91 | public function getRandomImage() |
| 92 | 92 | { |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @param object $file_handler File handler object |
| 35 | 35 | * @param integer $id Optional id |
| 36 | 36 | * |
| 37 | - * @return void |
|
| 37 | + * @return string |
|
| 38 | 38 | */ |
| 39 | 39 | function __construct($file_handler, $id = 0) |
| 40 | 40 | {
|
@@ -65,11 +65,11 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Factory |
| 67 | 67 | * |
| 68 | - * @param object $file_handler File handler |
|
| 69 | - * @param string $type the instance type |
|
| 68 | + * @param FileHandler $file_handler File handler |
|
| 70 | 69 | * @param array $param one or more of crop_width, crop_height, crop_offset_x, crop_offset_y |
| 70 | + * @param string $type_name |
|
| 71 | 71 | * |
| 72 | - * @return object |
|
| 72 | + * @return InstanceHandler |
|
| 73 | 73 | */ |
| 74 | 74 | function factory($file_handler, $type_name, $param = array()) |
| 75 | 75 | {
|
@@ -225,7 +225,6 @@ discard block |
||
| 225 | 225 | * Checks whether a name is free to use |
| 226 | 226 | * |
| 227 | 227 | * @param string $name |
| 228 | - * @param integer $id integer which should not be checked |
|
| 229 | 228 | * @return boolean true or false |
| 230 | 229 | */ |
| 231 | 230 | private function isNameFree($name, $type_key = 0) |
@@ -367,7 +366,7 @@ discard block |
||
| 367 | 366 | /** |
| 368 | 367 | * returns the resize types |
| 369 | 368 | * |
| 370 | - * @return array resize types |
|
| 369 | + * @return string[] resize types |
|
| 371 | 370 | */ |
| 372 | 371 | public function getResizeTypes() { |
| 373 | 372 | return array(0 => 'relative', 1 => 'strict'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | /** |
| 34 | 34 | * Constructor |
| 35 | 35 | * |
| 36 | - * @param object $file_handler |
|
| 36 | + * @param FileHandler $filehandler |
|
| 37 | 37 | * @param string $file_name the name of the temporary file. |
| 38 | 38 | */ |
| 39 | 39 | public function __construct($filehandler, $file_name = NULL) |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * then the filehandler->save method should rather accept some kind of file object which this |
| 71 | 71 | * object could generate? |
| 72 | 72 | * |
| 73 | - * @param object $file_handler A filehandler |
|
| 73 | + * @param FileHandler $file_handler A filehandler |
|
| 74 | 74 | * |
| 75 | 75 | * @return void |
| 76 | 76 | */ |
@@ -207,6 +207,9 @@ |
||
| 207 | 207 | $this->removeDir('/home/intraface/upload/' . $intranet_id . '/');
|
| 208 | 208 | } |
| 209 | 209 | |
| 210 | + /** |
|
| 211 | + * @param string $path |
|
| 212 | + */ |
|
| 210 | 213 | protected function removeDir($path) |
| 211 | 214 | {
|
| 212 | 215 | // Add trailing slash to $path if one is not there |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * Removes the intranets access to a module |
| 117 | 117 | * |
| 118 | 118 | * @param mixed module_id either name or id on module |
| 119 | - * @return boolean true on success |
|
| 119 | + * @return null|boolean true on success |
|
| 120 | 120 | */ |
| 121 | 121 | public function removeModuleAccess($module_id) |
| 122 | 122 | { |
@@ -323,7 +323,6 @@ discard block |
||
| 323 | 323 | /** |
| 324 | 324 | * returns the RandomKeyGenerator |
| 325 | 325 | * |
| 326 | - * @param integer $length the length of the generated key |
|
| 327 | 326 | * @return object RandomKeyGenerator |
| 328 | 327 | */ |
| 329 | 328 | private function getRandomKeyGenerator() |
@@ -193,7 +193,7 @@ |
||
| 193 | 193 | * @param mixed sub_access_id either id or name of sub_access |
| 194 | 194 | * @param integer intranet_id id of intranet to give access |
| 195 | 195 | * |
| 196 | - * @return void |
|
| 196 | + * @return boolean |
|
| 197 | 197 | */ |
| 198 | 198 | function setSubAccess($module_id, $sub_access_id, $intranet_id = 0) |
| 199 | 199 | {
|