@@ -21,6 +21,9 @@ discard block |
||
| 21 | 21 | CREATED = 'createdDate', |
| 22 | 22 | UPDATED = 'updatedDate'; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $sTable |
|
| 26 | + */ |
|
| 24 | 27 | public function gets($sTable, $iApproved = 1, $sOrder = self::UPDATED, $iOffset = 0, $iLimit = 500) |
| 25 | 28 | { |
| 26 | 29 | $sTable = CommentCore::checkTable($sTable); |
@@ -38,6 +41,9 @@ discard block |
||
| 38 | 41 | return $oData; |
| 39 | 42 | } |
| 40 | 43 | |
| 44 | + /** |
|
| 45 | + * @param integer $iApproved |
|
| 46 | + */ |
|
| 41 | 47 | public function read($iRecipientId, $iApproved, $iOffset, $iLimit, $sTable) |
| 42 | 48 | { |
| 43 | 49 | $sTable = CommentCore::checkTable($sTable); |
@@ -18,6 +18,11 @@ discard block |
||
| 18 | 18 | UPDATED = 'updatedDate DESC', |
| 19 | 19 | NAME = 'name ASC'; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $iForumId |
|
| 23 | + * @param integer $iOffset |
|
| 24 | + * @param integer $iLimit |
|
| 25 | + */ |
|
| 21 | 26 | public function getForum($iForumId = null, $iOffset = null, $iLimit = null, $sOrder = self::NAME) |
| 22 | 27 | { |
| 23 | 28 | $bIsLimit = isset($iOffset, $iLimit); |
@@ -36,6 +41,13 @@ discard block |
||
| 36 | 41 | return (!empty($iForumId)) ? $rStmt->fetch(\PDO::FETCH_OBJ) : $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 37 | 42 | } |
| 38 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $iMessageId |
|
| 46 | + * @param string $iProfileId |
|
| 47 | + * @param integer $iApproved |
|
| 48 | + * @param integer $iOffset |
|
| 49 | + * @param integer $iLimit |
|
| 50 | + */ |
|
| 39 | 51 | public function getMessage($iTopicId, $iMessageId = null, $iProfileId = null, $iApproved, $iOffset, $iLimit, $sSort = Db::ASC) |
| 40 | 52 | { |
| 41 | 53 | $iOffset = (int) $iOffset; |
@@ -14,6 +14,12 @@ |
||
| 14 | 14 | |
| 15 | 15 | const CACHE_GROUP = 'db/sys/mod/game', CACHE_TIME = 93312000; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $sTitle |
|
| 19 | + * @param string $iGameId |
|
| 20 | + * @param integer $iOffset |
|
| 21 | + * @param integer $iLimit |
|
| 22 | + */ |
|
| 17 | 23 | public function get($sTitle = null, $iGameId = null, $iOffset, $iLimit, $sOrder = SearchCoreModel::NAME) |
| 18 | 24 | { |
| 19 | 25 | $iOffset = (int) $iOffset; |
@@ -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); |
@@ -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 | { |