@@ -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); |
@@ -7,7 +7,8 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use PH7\Framework\Mvc\Model\Engine\Db, PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
10 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
11 | +use PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
11 | 12 | |
12 | 13 | // Abstract Class |
13 | 14 | class RatingCoreModel extends Framework\Mvc\Model\Engine\Model |
@@ -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); |
@@ -10,10 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | namespace PH7; |
12 | 12 | |
13 | -use |
|
14 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
15 | -PH7\Framework\Mvc\Model\Engine\Record, |
|
16 | -PH7\Framework\Cache\Cache; |
|
13 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
14 | +use PH7\Framework\Mvc\Model\Engine\Record; |
|
15 | +use PH7\Framework\Cache\Cache; |
|
17 | 16 | |
18 | 17 | class StatisticCoreModel extends Framework\Mvc\Model\Statistic |
19 | 18 | { |
@@ -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); |
@@ -8,7 +8,8 @@ |
||
8 | 8 | namespace PH7; |
9 | 9 | defined('PH7') or exit('Restricted access'); |
10 | 10 | |
11 | -use PH7\Framework\Mvc\Request\Http, PH7\Framework\Mvc\Model\Design; |
|
11 | +use PH7\Framework\Mvc\Request\Http; |
|
12 | +use PH7\Framework\Mvc\Model\Design; |
|
12 | 13 | |
13 | 14 | class AdsAjax |
14 | 15 | { |
@@ -9,10 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | namespace PH7; |
11 | 11 | |
12 | -use |
|
13 | -PH7\Framework\Navigation\Page, |
|
14 | -PH7\Framework\Url\Header, |
|
15 | -PH7\Framework\Mvc\Router\Uri; |
|
12 | +use PH7\Framework\Navigation\Page; |
|
13 | +use PH7\Framework\Url\Header; |
|
14 | +use PH7\Framework\Mvc\Router\Uri; |
|
16 | 15 | |
17 | 16 | class AdminController extends Controller |
18 | 17 | { |
@@ -10,10 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | namespace PH7; |
12 | 12 | |
13 | -use |
|
14 | -PH7\Framework\Mvc\Model\Engine as D, |
|
15 | -PH7\Framework\Url\Header, |
|
16 | -PH7\Framework\Mvc\Router\Uri; |
|
13 | +use PH7\Framework\Mvc\Model\Engine as D; |
|
14 | +use PH7\Framework\Url\Header; |
|
15 | +use PH7\Framework\Mvc\Router\Uri; |
|
17 | 16 | |
18 | 17 | class ToolController extends Controller |
19 | 18 | { |
@@ -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)) |
@@ -7,10 +7,9 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use |
|
11 | -PH7\Framework\Navigation\Page, |
|
12 | -PH7\Framework\Url\Header, |
|
13 | -PH7\Framework\Mvc\Router\Uri; |
|
10 | +use PH7\Framework\Navigation\Page; |
|
11 | +use PH7\Framework\Url\Header; |
|
12 | +use PH7\Framework\Mvc\Router\Uri; |
|
14 | 13 | |
15 | 14 | class UserController extends Controller |
16 | 15 | { |
@@ -11,10 +11,9 @@ |
||
11 | 11 | namespace PH7; |
12 | 12 | defined('PH7') or exit('Restricted access'); |
13 | 13 | |
14 | -use |
|
15 | -PH7\Framework\Util\Various, |
|
16 | -PH7\Framework\Security\Validate\Validate, |
|
17 | -PH7\Framework\Ip\Ip; |
|
14 | +use PH7\Framework\Util\Various; |
|
15 | +use PH7\Framework\Security\Validate\Validate; |
|
16 | +use PH7\Framework\Ip\Ip; |
|
18 | 17 | |
19 | 18 | /** Reset the time limit and increase the memory **/ |
20 | 19 | @set_time_limit(0); |