@@ -15,6 +15,10 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | const CACHE_GROUP = 'db/sys/core/rating', CACHE_TIME = 604800; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param integer $iId |
|
| 20 | + * @param string $sTable |
|
| 21 | + */ |
|
| 18 | 22 | public function getVote($iId, $sTable) |
| 19 | 23 | { |
| 20 | 24 | $this->cache->start(self::CACHE_GROUP, 'getVote' . $iId . $sTable, static:: |
@@ -38,6 +42,10 @@ discard block |
||
| 38 | 42 | return $iData; |
| 39 | 43 | } |
| 40 | 44 | |
| 45 | + /** |
|
| 46 | + * @param integer $iId |
|
| 47 | + * @param string $sTable |
|
| 48 | + */ |
|
| 41 | 49 | public function getScore($iId, $sTable) |
| 42 | 50 | { |
| 43 | 51 | $this->cache->start(self::CACHE_GROUP, 'getScore' . $iId . $sTable, static:: |
@@ -61,6 +69,10 @@ discard block |
||
| 61 | 69 | return $fData; |
| 62 | 70 | } |
| 63 | 71 | |
| 72 | + /** |
|
| 73 | + * @param integer $iId |
|
| 74 | + * @param string $sTable |
|
| 75 | + */ |
|
| 64 | 76 | public function updateVotes($iId, $sTable) |
| 65 | 77 | { |
| 66 | 78 | |
@@ -73,6 +85,10 @@ discard block |
||
| 73 | 85 | return $rStmt->execute(); |
| 74 | 86 | } |
| 75 | 87 | |
| 88 | + /** |
|
| 89 | + * @param integer $iId |
|
| 90 | + * @param string $sTable |
|
| 91 | + */ |
|
| 76 | 92 | public function updateScore($fScore, $iId, $sTable) |
| 77 | 93 | { |
| 78 | 94 | $sTable = Various::checkTable($sTable); |
@@ -142,6 +142,9 @@ |
||
| 142 | 142 | return $this->totalComments('Game', $iDay); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $sTable |
|
| 147 | + */ |
|
| 145 | 148 | protected function totalComments($sTable, $iDay = 0) |
| 146 | 149 | { |
| 147 | 150 | CommentCore::checkTable($sTable); |
@@ -18,6 +18,12 @@ |
||
| 18 | 18 | CREATED = 'createdDate', |
| 19 | 19 | UPDATED = 'updatedDate'; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $iProfileId |
|
| 23 | + * @param string $iAlbumId |
|
| 24 | + * @param integer $iOffset |
|
| 25 | + * @param integer $iLimit |
|
| 26 | + */ |
|
| 21 | 27 | public function album($iProfileId = null, $iAlbumId = null, $iApproved = 1, $iOffset, $iLimit, $sOrder = self::CREATED) |
| 22 | 28 | { |
| 23 | 29 | $this->cache->start(self::CACHE_GROUP, 'album' . $iProfileId . $iAlbumId . $iApproved . $iOffset . $iLimit .$sOrder, static::CACHE_TIME); |
@@ -347,6 +347,9 @@ |
||
| 347 | 347 | Header::redirect(Uri::get(PH7_ADMIN_MOD, 'user', 'browse'), $this->sMsg); |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | + /** |
|
| 351 | + * @param integer $iStatus |
|
| 352 | + */ |
|
| 350 | 353 | private function _moderateRegistration($iId, $iStatus) |
| 351 | 354 | { |
| 352 | 355 | if (isset($iId, $iStatus)) |
@@ -256,7 +256,7 @@ |
||
| 256 | 256 | * |
| 257 | 257 | * Note: This method is valid only for public methods, it is not necessary to check the private methods. |
| 258 | 258 | * @param string $sSwitch The check constant. |
| 259 | - * @return string Returns the constant if it is correct, otherwise an error message with exit() function. |
|
| 259 | + * @return integer|null Returns the constant if it is correct, otherwise an error message with exit() function. |
|
| 260 | 260 | */ |
| 261 | 261 | private function _checkParam($sSwitch) |
| 262 | 262 | { |
@@ -12,6 +12,9 @@ discard block |
||
| 12 | 12 | class CommentModel extends CommentCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param integer $iApproved |
|
| 17 | + */ |
|
| 15 | 18 | public function get($iCommentId, $iApproved, $sTable) |
| 16 | 19 | { |
| 17 | 20 | $this->cache->start(static::CACHE_GROUP, 'get' . $iCommentId . $iApproved . $sTable, static::CACHE_TIME); |
@@ -31,6 +34,11 @@ discard block |
||
| 31 | 34 | return $oData; |
| 32 | 35 | } |
| 33 | 36 | |
| 37 | + /** |
|
| 38 | + * @param integer $iSenderId |
|
| 39 | + * @param integer $iApproved |
|
| 40 | + * @param string $sCreatedDate |
|
| 41 | + */ |
|
| 34 | 42 | public function add($iCommentId, $iRecipientId, $iSenderId, $iApproved, $sCreatedDate, $sTable) |
| 35 | 43 | { |
| 36 | 44 | $sTable = CommentCore::checkTable($sTable); |
@@ -44,6 +52,10 @@ discard block |
||
| 44 | 52 | return $rStmt->execute(); |
| 45 | 53 | } |
| 46 | 54 | |
| 55 | + /** |
|
| 56 | + * @param integer $iApproved |
|
| 57 | + * @param string $sUpdatedDate |
|
| 58 | + */ |
|
| 47 | 59 | public function update($iCommentId, $iRecipientId, $iSenderId, $sComment, $iApproved, $sUpdatedDate, $sTable) |
| 48 | 60 | { |
| 49 | 61 | $sTable = CommentCore::checkTable($sTable); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Authenticate user with Twitter. |
| 117 | 117 | * |
| 118 | - * @return bool Authentication successful. |
|
| 118 | + * @return boolean|null Authentication successful. |
|
| 119 | 119 | */ |
| 120 | 120 | public function auth() |
| 121 | 121 | { |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | /** |
| 289 | 289 | * Obtain an access token from Twitter. |
| 290 | 290 | * |
| 291 | - * @return bool Returns FALSE if request failed. |
|
| 291 | + * @return null|false Returns FALSE if request failed. |
|
| 292 | 292 | */ |
| 293 | 293 | private function _getAccessToken() |
| 294 | 294 | { |
@@ -12,6 +12,10 @@ |
||
| 12 | 12 | class GameModel extends GameCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param integer $iOffset |
|
| 17 | + * @param integer $iLimit |
|
| 18 | + */ |
|
| 15 | 19 | public function getCategory($iCategoryId = null, $iOffset, $iLimit, $bCount = false) |
| 16 | 20 | { |
| 17 | 21 | $this->cache->start(static::CACHE_GROUP, 'category' . $iCategoryId . $iOffset . $iLimit . $bCount, static::CACHE_TIME); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * @param string $sName |
| 21 | 21 | * @param string $sSecondName |
| 22 | - * @return object this |
|
| 22 | + * @return Calculator this |
|
| 23 | 23 | */ |
| 24 | 24 | public function __construct($sName, $sSecondName) |
| 25 | 25 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @return integer Amount |
|
| 82 | + * @return string Amount |
|
| 83 | 83 | */ |
| 84 | 84 | public function get() |
| 85 | 85 | { |