@@ -80,6 +80,11 @@ |
||
| 80 | 80 | unset($oDb); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param boolean $bCount |
|
| 85 | + * @param null|integer $iOffset |
|
| 86 | + * @param null|integer $iLimit |
|
| 87 | + */ |
|
| 83 | 88 | public function searchAdmin($mLooking, $bCount, $sOrderBy, $sSort, $iOffset, $iLimit) |
| 84 | 89 | { |
| 85 | 90 | $bCount = (bool) $bCount; |
@@ -12,6 +12,11 @@ discard block |
||
| 12 | 12 | class BlogModel extends BlogCoreModel |
| 13 | 13 | { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $iBlogId |
|
| 17 | + * @param integer $iOffset |
|
| 18 | + * @param integer $iLimit |
|
| 19 | + */ |
|
| 15 | 20 | public function getCategory($iBlogId = null, $iOffset, $iLimit, $bCount = false) |
| 16 | 21 | { |
| 17 | 22 | $this->cache->start(self::CACHE_GROUP, 'category' . $iBlogId . $iOffset . $iLimit . $bCount, static::CACHE_TIME); |
@@ -190,6 +195,9 @@ discard block |
||
| 190 | 195 | return $sData; |
| 191 | 196 | } |
| 192 | 197 | |
| 198 | + /** |
|
| 199 | + * @param string $sPostId |
|
| 200 | + */ |
|
| 193 | 201 | public function postIdExists($sPostId) |
| 194 | 202 | { |
| 195 | 203 | $this->cache->start(self::CACHE_GROUP, 'postIdExists' . $sPostId, static::CACHE_TIME); |
@@ -228,6 +236,9 @@ discard block |
||
| 228 | 236 | $rStmt->execute(); |
| 229 | 237 | } |
| 230 | 238 | |
| 239 | + /** |
|
| 240 | + * @param string $sSection |
|
| 241 | + */ |
|
| 231 | 242 | public function updatePost($sSection, $sValue, $iBlogId) |
| 232 | 243 | { |
| 233 | 244 | $this->orm->update('Blogs', $sSection, $sValue, 'blogId', $iBlogId); |
@@ -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 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * Add the fields in the database |
| 31 | 31 | * |
| 32 | 32 | * @param array $aData The data to add |
| 33 | - * @return object this |
|
| 33 | + * @return Report this |
|
| 34 | 34 | */ |
| 35 | 35 | public function add(array $aData) |
| 36 | 36 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Get status |
| 74 | 74 | * |
| 75 | - * @return mixed (string | boolean) Text of the statute or boolean |
|
| 75 | + * @return boolean (string | boolean) Text of the statute or boolean |
|
| 76 | 76 | */ |
| 77 | 77 | public function get() |
| 78 | 78 | { |
@@ -56,6 +56,9 @@ |
||
| 56 | 56 | return (!empty($iId)) ? $rStmt->fetch(\PDO::FETCH_OBJ) : $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param string $iReportId |
|
| 61 | + */ |
|
| 59 | 62 | public function delete($iReportId) |
| 60 | 63 | { |
| 61 | 64 | $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Report') . 'WHERE reportId = :reportId LIMIT 1'); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * Assignment of attributes. |
| 22 | 22 | * |
| 23 | 23 | * @param integer $iProfileId Profile ID. |
| 24 | - * @param integer $iVisitor ID User ID (visitor). Default NULL (this attribute is null only for the get method). |
|
| 24 | + * @param integer $iVisitorId ID User ID (visitor). Default NULL (this attribute is null only for the get method). |
|
| 25 | 25 | * @param string $sDateVisit The date of last visit. Default NULL (this attribute is null only for the get method). |
| 26 | 26 | */ |
| 27 | 27 | public function __construct($iProfileId, $iVisitorId = null, $sDateVisit = null) |