@@ -35,7 +35,7 @@ |
||
| 35 | 35 | * @see get() |
| 36 | 36 | * |
| 37 | 37 | * @param boolean $bPrint Default FALSE |
| 38 | - * @return void |
|
| 38 | + * @return null|string |
|
| 39 | 39 | */ |
| 40 | 40 | public function display($bPrint = false) |
| 41 | 41 | { |
@@ -78,6 +78,9 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param integer $bytes |
|
| 83 | + */ |
|
| 81 | 84 | function read($bytes) { |
| 82 | 85 | return $this->STREAM->read($bytes); |
| 83 | 86 | } |
@@ -86,6 +89,7 @@ discard block |
||
| 86 | 89 | * Reads an array of Integers from the Stream |
| 87 | 90 | * |
| 88 | 91 | * @param int count How many elements should be read |
| 92 | + * @param integer $count |
|
| 89 | 93 | * @return Array of Integers |
| 90 | 94 | */ |
| 91 | 95 | function readintarray($count) { |
@@ -103,6 +107,7 @@ discard block |
||
| 103 | 107 | * |
| 104 | 108 | * @param object Reader the StreamReader object |
| 105 | 109 | * @param boolean enable_cache Enable or disable caching of strings (default on) |
| 110 | + * @param FileReader|null $Reader |
|
| 106 | 111 | */ |
| 107 | 112 | public function __construct($Reader, $enable_cache = true) { |
| 108 | 113 | // If there isn't a StreamReader, turn on short circuit mode. |
@@ -177,6 +182,7 @@ discard block |
||
| 177 | 182 | * |
| 178 | 183 | * @access private |
| 179 | 184 | * @param int num Offset number of original string |
| 185 | + * @param integer $num |
|
| 180 | 186 | * @return string Requested string if found, otherwise '' |
| 181 | 187 | */ |
| 182 | 188 | function get_original_string($num) { |
@@ -194,6 +200,7 @@ discard block |
||
| 194 | 200 | * |
| 195 | 201 | * @access private |
| 196 | 202 | * @param int num Offset number of original string |
| 203 | + * @param integer $num |
|
| 197 | 204 | * @return string Requested string if found, otherwise '' |
| 198 | 205 | */ |
| 199 | 206 | function get_translation_string($num) { |
@@ -279,6 +286,7 @@ discard block |
||
| 279 | 286 | * Sanitize plural form expression for use in PHP eval call. |
| 280 | 287 | * |
| 281 | 288 | * @access private |
| 289 | + * @param string $expr |
|
| 282 | 290 | * @return string sanitized plural form expression |
| 283 | 291 | */ |
| 284 | 292 | function sanitize_plural_expression($expr) { |
@@ -380,7 +388,8 @@ discard block |
||
| 380 | 388 | * @param string single |
| 381 | 389 | * @param string plural |
| 382 | 390 | * @param string number |
| 383 | - * @return translated plural form |
|
| 391 | + * @param string $single |
|
| 392 | + * @return string plural form |
|
| 384 | 393 | */ |
| 385 | 394 | function ngettext($single, $plural, $number) { |
| 386 | 395 | if ($this->short_circuit) { |
@@ -92,6 +92,9 @@ |
||
| 92 | 92 | var $_fd; |
| 93 | 93 | var $_length; |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param string $filename |
|
| 97 | + */ |
|
| 95 | 98 | public function __construct($filename) { |
| 96 | 99 | if (file_exists($filename)) { |
| 97 | 100 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * Get image type if it is one of: .gif, .jpg or .png |
| 62 | 62 | * |
| 63 | 63 | * @param string $file Full path to file |
| 64 | - * @return string|boolean |
|
| 64 | + * @return string|false |
|
| 65 | 65 | */ |
| 66 | 66 | static public function type($file) { |
| 67 | 67 | $type = getimagesize($file); |
@@ -211,6 +211,9 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | /* Mailhide related code */ |
| 213 | 213 | |
| 214 | +/** |
|
| 215 | + * @param string $ky |
|
| 216 | + */ |
|
| 214 | 217 | function _recaptcha_aes_encrypt($val,$ky) { |
| 215 | 218 | if (! function_exists ("mcrypt_encrypt")) { |
| 216 | 219 | die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); |
@@ -222,6 +225,9 @@ discard block |
||
| 222 | 225 | } |
| 223 | 226 | |
| 224 | 227 | |
| 228 | +/** |
|
| 229 | + * @param null|string $x |
|
| 230 | + */ |
|
| 225 | 231 | function _recaptcha_mailhide_urlbase64($x) { |
| 226 | 232 | return strtr(base64_encode ($x), '+/', '-_'); |
| 227 | 233 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Set the default language name. |
| 49 | 49 | * |
| 50 | 50 | * @param string $sNewDefLang Prefix of the language. |
| 51 | - * @return object $this |
|
| 51 | + * @return Lang $this |
|
| 52 | 52 | */ |
| 53 | 53 | public function setDefaultLang($sNewDefLang) |
| 54 | 54 | { |
@@ -60,8 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Set the user language name. |
| 62 | 62 | * |
| 63 | - * @param string $sNewDefaultLang Prefix of the language. |
|
| 64 | - * @return object $this |
|
| 63 | + * @return Lang $this |
|
| 65 | 64 | */ |
| 66 | 65 | public function setUserLang($sNewUserLang) |
| 67 | 66 | { |
@@ -120,7 +119,7 @@ discard block |
||
| 120 | 119 | * |
| 121 | 120 | * @param string $sFileName The language filename (e.g., "global"). |
| 122 | 121 | * @param string $sPath If you want to change the default path (the path to the current module), you can specify the path. Default NULL |
| 123 | - * @return object $this |
|
| 122 | + * @return Lang $this |
|
| 124 | 123 | */ |
| 125 | 124 | public function load($sFileName, $sPath = null) |
| 126 | 125 | { |
@@ -134,7 +133,7 @@ discard block |
||
| 134 | 133 | /** |
| 135 | 134 | * Loading language files. |
| 136 | 135 | * |
| 137 | - * @return object $this |
|
| 136 | + * @return Lang $this |
|
| 138 | 137 | * @throws \PH7\Framework\Translate\Exception If the language file is not found. |
| 139 | 138 | */ |
| 140 | 139 | public function init() |
@@ -202,7 +201,6 @@ discard block |
||
| 202 | 201 | /** |
| 203 | 202 | * Language helper function. |
| 204 | 203 | * |
| 205 | - * @param string $sVar [, string $... ] |
|
| 206 | 204 | * @return string Returns the text with gettext function or language in an array (this depends on whether a key language was found in the language table). |
| 207 | 205 | */ |
| 208 | 206 | function t(...$aTokens) |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | } |
| 419 | 419 | |
| 420 | 420 | /** |
| 421 | - * @return string |
|
| 421 | + * @return resource |
|
| 422 | 422 | */ |
| 423 | 423 | public function getFileName() |
| 424 | 424 | { |
@@ -428,7 +428,7 @@ discard block |
||
| 428 | 428 | /** |
| 429 | 429 | * Determine and get the type of the image (even an unallowed image type) by reading the first bytes and checking its signature. |
| 430 | 430 | * |
| 431 | - * @return string|bool When a correct signature is found, returns the appropriate value, FALSE otherwise. |
|
| 431 | + * @return integer When a correct signature is found, returns the appropriate value, FALSE otherwise. |
|
| 432 | 432 | */ |
| 433 | 433 | public function getType() |
| 434 | 434 | { |
@@ -12,6 +12,10 @@ discard block |
||
| 12 | 12 | class ModeratorModel extends ModeratorCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param integer $iOffset |
|
| 17 | + * @param integer $iLimit |
|
| 18 | + */ |
|
| 15 | 19 | public function getAlbumsPicture($iOffset, $iLimit) |
| 16 | 20 | { |
| 17 | 21 | $iOffset = (int)$iOffset; |
@@ -25,6 +29,10 @@ discard block |
||
| 25 | 29 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 26 | 30 | } |
| 27 | 31 | |
| 32 | + /** |
|
| 33 | + * @param integer $iOffset |
|
| 34 | + * @param integer $iLimit |
|
| 35 | + */ |
|
| 28 | 36 | public function getPictures($iOffset, $iLimit) |
| 29 | 37 | { |
| 30 | 38 | $iOffset = (int)$iOffset; |
@@ -38,6 +46,10 @@ discard block |
||
| 38 | 46 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 39 | 47 | } |
| 40 | 48 | |
| 49 | + /** |
|
| 50 | + * @param integer $iOffset |
|
| 51 | + * @param integer $iLimit |
|
| 52 | + */ |
|
| 41 | 53 | public function getAlbumsVideo($iOffset, $iLimit) |
| 42 | 54 | { |
| 43 | 55 | $iOffset = (int)$iOffset; |
@@ -51,6 +63,10 @@ discard block |
||
| 51 | 63 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 52 | 64 | } |
| 53 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $iOffset |
|
| 68 | + * @param integer $iLimit |
|
| 69 | + */ |
|
| 54 | 70 | public function getVideos($iOffset, $iLimit) |
| 55 | 71 | { |
| 56 | 72 | $iOffset = (int)$iOffset; |
@@ -64,6 +80,10 @@ discard block |
||
| 64 | 80 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 65 | 81 | } |
| 66 | 82 | |
| 83 | + /** |
|
| 84 | + * @param integer $iOffset |
|
| 85 | + * @param integer $iLimit |
|
| 86 | + */ |
|
| 67 | 87 | public function getAvatars($iOffset, $iLimit) |
| 68 | 88 | { |
| 69 | 89 | $iOffset = (int)$iOffset; |
@@ -76,6 +96,10 @@ discard block |
||
| 76 | 96 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 77 | 97 | } |
| 78 | 98 | |
| 99 | + /** |
|
| 100 | + * @param integer $iOffset |
|
| 101 | + * @param integer $iLimit |
|
| 102 | + */ |
|
| 79 | 103 | public function getBackgrounds($iOffset, $iLimit) |
| 80 | 104 | { |
| 81 | 105 | $iOffset = (int)$iOffset; |
@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | const CACHE_GROUP = 'db/sys/core/like'; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param string $sKey |
|
| 20 | + */ |
|
| 18 | 21 | public function select($sKey) |
| 19 | 22 | { |
| 20 | 23 | $this->cache->start(self::CACHE_GROUP, 'select' . $sKey, 3600*168); |
@@ -32,6 +35,9 @@ discard block |
||
| 32 | 35 | return $oData; |
| 33 | 36 | } |
| 34 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $sKey |
|
| 40 | + */ |
|
| 35 | 41 | public function update($sKey, $fLastIp) |
| 36 | 42 | { |
| 37 | 43 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Likes') . 'SET votes = votes + 1 , lastVote = NOW() , lastIp =:lastIp WHERE keyId =:key'); |
@@ -40,6 +46,9 @@ discard block |
||
| 40 | 46 | return $rStmt->execute(); |
| 41 | 47 | } |
| 42 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $sKey |
|
| 51 | + */ |
|
| 43 | 52 | public function insert($sKey, $fLastIp) |
| 44 | 53 | { |
| 45 | 54 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Likes') . 'SET keyId =:key ,votes=1 , lastVote = NOW(), lastIp =:lastIp'); |