@@ -259,8 +259,8 @@ |
||
| 259 | 259 | * Runtime function to render sub-template |
| 260 | 260 | * |
| 261 | 261 | * @param string $template template name |
| 262 | - * @param mixed $cache_id cache id |
|
| 263 | - * @param mixed $compile_id compile id |
|
| 262 | + * @param string $cache_id cache id |
|
| 263 | + * @param string $compile_id compile id |
|
| 264 | 264 | * @param integer $caching cache mode |
| 265 | 265 | * @param integer $cache_lifetime life time of cache data |
| 266 | 266 | * @param array $data passed parameter template variables |
@@ -140,9 +140,9 @@ |
||
| 140 | 140 | * @api Smarty::isCached() |
| 141 | 141 | * @link http://www.smarty.net/docs/en/api.is.cached.tpl |
| 142 | 142 | * |
| 143 | - * @param null|string|\Smarty_Internal_Template $template the resource handle of the template file or template object |
|
| 144 | - * @param mixed $cache_id cache id to be used with this template |
|
| 145 | - * @param mixed $compile_id compile id to be used with this template |
|
| 143 | + * @param string $template the resource handle of the template file or template object |
|
| 144 | + * @param string|null $cache_id cache id to be used with this template |
|
| 145 | + * @param string|null $compile_id compile id to be used with this template |
|
| 146 | 146 | * @param object $parent next higher level of Smarty variables |
| 147 | 147 | * |
| 148 | 148 | * @return bool cache status |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | * @param bool $nocache true is shall be compiled in nocache mode |
| 318 | 318 | * @param null|Smarty_Internal_TemplateCompilerBase $parent_compiler |
| 319 | 319 | * |
| 320 | - * @return bool true if compiling succeeded, false if it failed |
|
| 320 | + * @return string true if compiling succeeded, false if it failed |
|
| 321 | 321 | * @throws \Exception |
| 322 | 322 | */ |
| 323 | 323 | public function compileTemplate(Smarty_Internal_Template $template, |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | * @param string $tag tag name |
| 655 | 655 | * @param array $args list of tag attributes |
| 656 | 656 | * @param mixed $param1 optional parameter |
| 657 | - * @param mixed $param2 optional parameter |
|
| 657 | + * @param string $param2 optional parameter |
|
| 658 | 658 | * @param mixed $param3 optional parameter |
| 659 | 659 | * |
| 660 | 660 | * @return bool|string compiled code or false |
@@ -676,7 +676,7 @@ discard block |
||
| 676 | 676 | * |
| 677 | 677 | * @param string $tag tag name |
| 678 | 678 | * |
| 679 | - * @return bool|\Smarty_Internal_CompileBase tag compiler object or false if not found |
|
| 679 | + * @return integer tag compiler object or false if not found |
|
| 680 | 680 | * @throws \SmartyCompilerException |
| 681 | 681 | */ |
| 682 | 682 | public function getTagCompiler($tag) |
@@ -701,7 +701,7 @@ discard block |
||
| 701 | 701 | /** |
| 702 | 702 | * Check for plugins and return function name |
| 703 | 703 | * |
| 704 | - * @param $plugin_name |
|
| 704 | + * @param null|string $plugin_name |
|
| 705 | 705 | * @param string $plugin_type type of plugin |
| 706 | 706 | * |
| 707 | 707 | * @return string call name of function |
@@ -883,7 +883,7 @@ discard block |
||
| 883 | 883 | * |
| 884 | 884 | * @param string $input |
| 885 | 885 | * |
| 886 | - * @return bool|string |
|
| 886 | + * @return string|false |
|
| 887 | 887 | */ |
| 888 | 888 | public function getId($input) |
| 889 | 889 | { |
@@ -898,7 +898,7 @@ discard block |
||
| 898 | 898 | * |
| 899 | 899 | * @param string $input |
| 900 | 900 | * |
| 901 | - * @return bool|string |
|
| 901 | + * @return string|false |
|
| 902 | 902 | */ |
| 903 | 903 | public function getVariableName($input) |
| 904 | 904 | { |
@@ -1075,7 +1075,7 @@ discard block |
||
| 1075 | 1075 | } |
| 1076 | 1076 | |
| 1077 | 1077 | /** |
| 1078 | - * @param $lexerPreg |
|
| 1078 | + * @param string $lexerPreg |
|
| 1079 | 1079 | * |
| 1080 | 1080 | * @return mixed |
| 1081 | 1081 | */ |
@@ -1268,7 +1268,7 @@ discard block |
||
| 1268 | 1268 | /** |
| 1269 | 1269 | * method to compile a Smarty template |
| 1270 | 1270 | * |
| 1271 | - * @param mixed $_content template source |
|
| 1271 | + * @param string $_content template source |
|
| 1272 | 1272 | * @param bool $isTemplateSource |
| 1273 | 1273 | * |
| 1274 | 1274 | * @return bool true if compiling succeeded, false if it failed |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * @param string $resource_name template_resource or config_resource to parse |
| 111 | 111 | * @param string $default_resource the default resource_type defined in $smarty |
| 112 | 112 | * |
| 113 | - * @return array with parsed resource name and type |
|
| 113 | + * @return string[] with parsed resource name and type |
|
| 114 | 114 | */ |
| 115 | 115 | public static function parseResourceName($resource_name, $default_resource) |
| 116 | 116 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | * Check if PHP function is trusted. |
| 267 | 267 | * |
| 268 | 268 | * @param string $function_name |
| 269 | - * @param object $compiler compiler object |
|
| 269 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 270 | 270 | * |
| 271 | 271 | * @return boolean true if function is trusted |
| 272 | 272 | * @throws SmartyCompilerException if php function is not trusted |
@@ -311,7 +311,7 @@ discard block |
||
| 311 | 311 | * |
| 312 | 312 | * @param string $class_name |
| 313 | 313 | * @param string $params |
| 314 | - * @param object $compiler compiler object |
|
| 314 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 315 | 315 | * |
| 316 | 316 | * @return boolean true if class method is trusted |
| 317 | 317 | * @throws SmartyCompilerException if static class method is not trusted |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | * Check if PHP modifier is trusted. |
| 350 | 350 | * |
| 351 | 351 | * @param string $modifier_name |
| 352 | - * @param object $compiler compiler object |
|
| 352 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 353 | 353 | * |
| 354 | 354 | * @return boolean true if modifier is trusted |
| 355 | 355 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | * Check if tag is trusted. |
| 372 | 372 | * |
| 373 | 373 | * @param string $tag_name |
| 374 | - * @param object $compiler compiler object |
|
| 374 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 375 | 375 | * |
| 376 | 376 | * @return boolean true if tag is trusted |
| 377 | 377 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | * Check if special $smarty variable is trusted. |
| 407 | 407 | * |
| 408 | 408 | * @param string $var_name |
| 409 | - * @param object $compiler compiler object |
|
| 409 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 410 | 410 | * |
| 411 | 411 | * @return boolean true if tag is trusted |
| 412 | 412 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | * Check if modifier plugin is trusted. |
| 428 | 428 | * |
| 429 | 429 | * @param string $modifier_name |
| 430 | - * @param object $compiler compiler object |
|
| 430 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 431 | 431 | * |
| 432 | 432 | * @return boolean true if tag is trusted |
| 433 | 433 | * @throws SmartyCompilerException if modifier is not trusted |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | * Check if constants are enabled or trusted |
| 463 | 463 | * |
| 464 | 464 | * @param string $const constant name |
| 465 | - * @param object $compiler compiler object |
|
| 465 | + * @param Smarty_Internal_TemplateCompilerBase $compiler compiler object |
|
| 466 | 466 | * |
| 467 | 467 | * @return bool |
| 468 | 468 | */ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | - * @return array |
|
| 138 | + * @return string[] |
|
| 139 | 139 | */ |
| 140 | 140 | private function getAdminAvatarDetails() |
| 141 | 141 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | - * @return array |
|
| 150 | + * @return string[] |
|
| 151 | 151 | */ |
| 152 | 152 | private function getGhostAvatarDetails() |
| 153 | 153 | { |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * @param int $iStatus The "code" for the HTTP status. |
| 87 | 87 | * |
| 88 | - * @return string|bool $iStatus Returns the "HTTP status code" if found otherwise returns "false" |
|
| 88 | + * @return integer $iStatus Returns the "HTTP status code" if found otherwise returns "false" |
|
| 89 | 89 | */ |
| 90 | 90 | public static function getStatusCodes($iStatus) |
| 91 | 91 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | /** |
| 123 | 123 | * Set one or multiple headers. |
| 124 | 124 | * |
| 125 | - * @param string|array $mHeaders Headers to send. |
|
| 125 | + * @param string $mHeaders Headers to send. |
|
| 126 | 126 | * |
| 127 | 127 | * @throws Exception |
| 128 | 128 | */ |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * @param string $sUsr |
| 186 | 186 | * @param string $sPwd |
| 187 | 187 | * |
| 188 | - * @return bool TRUE if the authentication is correct, otherwise FALSE. |
|
| 188 | + * @return null|boolean TRUE if the authentication is correct, otherwise FALSE. |
|
| 189 | 189 | */ |
| 190 | 190 | public static function requireAuth($sUsr, $sPwd) |
| 191 | 191 | { |
@@ -12,6 +12,13 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | class PictureModel extends PictureCoreModel |
| 14 | 14 | { |
| 15 | + /** |
|
| 16 | + * @param string $iProfileId |
|
| 17 | + * @param string $sTitle |
|
| 18 | + * @param string $sDescription |
|
| 19 | + * @param string $sThumb |
|
| 20 | + * @param string $sCreatedDate |
|
| 21 | + */ |
|
| 15 | 22 | public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1) |
| 16 | 23 | { |
| 17 | 24 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix(DbTableName::ALBUM_PICTURE) . '(profileId, name, description, thumb, createdDate, approved) |
@@ -27,6 +34,13 @@ discard block |
||
| 27 | 34 | return $rStmt->execute(); |
| 28 | 35 | } |
| 29 | 36 | |
| 37 | + /** |
|
| 38 | + * @param string $iProfileId |
|
| 39 | + * @param integer $iAlbumId |
|
| 40 | + * @param string $sTitle |
|
| 41 | + * @param string $sFile |
|
| 42 | + * @param string $sCreatedDate |
|
| 43 | + */ |
|
| 30 | 44 | public function addPhoto($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sCreatedDate, $iApproved = 1) |
| 31 | 45 | { |
| 32 | 46 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix(DbTableName::PICTURE) . '(profileId, albumId, title, description, file, createdDate, approved) |
@@ -52,6 +66,9 @@ discard block |
||
| 52 | 66 | return $rStmt->execute(); |
| 53 | 67 | } |
| 54 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $iProfileId |
|
| 71 | + */ |
|
| 55 | 72 | public function getAlbumsName($iProfileId) |
| 56 | 73 | { |
| 57 | 74 | $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME); |
@@ -69,6 +86,13 @@ discard block |
||
| 69 | 86 | return $oData; |
| 70 | 87 | } |
| 71 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $iProfileId |
|
| 91 | + * @param string $iAlbumId |
|
| 92 | + * @param string $iPictureId |
|
| 93 | + * @param integer $iOffset |
|
| 94 | + * @param integer $iLimit |
|
| 95 | + */ |
|
| 72 | 96 | public function photo($iProfileId, $iAlbumId, $iPictureId = null, $iApproved = 1, $iOffset, $iLimit) |
| 73 | 97 | { |
| 74 | 98 | $this->cache->start(self::CACHE_GROUP, 'photo' . $iProfileId . $iAlbumId . $iPictureId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME); |
@@ -135,6 +159,13 @@ discard block |
||
| 135 | 159 | return $iData; |
| 136 | 160 | } |
| 137 | 161 | |
| 162 | + /** |
|
| 163 | + * @param string $iProfileId |
|
| 164 | + * @param integer $iAlbumId |
|
| 165 | + * @param string $sTitle |
|
| 166 | + * @param string $sDescription |
|
| 167 | + * @param string $sUpdatedDate |
|
| 168 | + */ |
|
| 138 | 169 | public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate) |
| 139 | 170 | { |
| 140 | 171 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix(DbTableName::ALBUM_PICTURE) . |
@@ -149,6 +180,14 @@ discard block |
||
| 149 | 180 | return $rStmt->execute(); |
| 150 | 181 | } |
| 151 | 182 | |
| 183 | + /** |
|
| 184 | + * @param string $iProfileId |
|
| 185 | + * @param integer $iAlbumId |
|
| 186 | + * @param integer $iPictureId |
|
| 187 | + * @param string $sTitle |
|
| 188 | + * @param string $sDescription |
|
| 189 | + * @param string $sUpdatedDate |
|
| 190 | + */ |
|
| 152 | 191 | public function updatePhoto($iProfileId, $iAlbumId, $iPictureId, $sTitle, $sDescription, $sUpdatedDate) |
| 153 | 192 | { |
| 154 | 193 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix(DbTableName::PICTURE) . |
@@ -355,7 +355,7 @@ |
||
| 355 | 355 | * @param string $sToFind |
| 356 | 356 | * @param string $sContents |
| 357 | 357 | * |
| 358 | - * @return bool |
|
| 358 | + * @return integer |
|
| 359 | 359 | */ |
| 360 | 360 | private function find($sToFind, $sContents) |
| 361 | 361 | { |