@@ -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); |
@@ -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 | { |
@@ -10,7 +10,8 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | namespace PH7; |
| 12 | 12 | |
| 13 | -use PH7\Framework\Config\Config, PH7\Framework\File as F; |
|
| 13 | +use PH7\Framework\Config\Config; |
|
| 14 | +use PH7\Framework\File as F; |
|
| 14 | 15 | |
| 15 | 16 | @set_time_limit(0); |
| 16 | 17 | @ini_set('memory_limit', '528M'); |
@@ -7,11 +7,10 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Session\Session, |
|
| 12 | -PH7\Framework\Mvc\Request\Http, |
|
| 13 | -PH7\Framework\Mvc\Router\Uri, |
|
| 14 | -PH7\Framework\Date\CDateTime; |
|
| 10 | +use PH7\Framework\Session\Session; |
|
| 11 | +use PH7\Framework\Mvc\Request\Http; |
|
| 12 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 13 | +use PH7\Framework\Date\CDateTime; |
|
| 15 | 14 | |
| 16 | 15 | class EditForm |
| 17 | 16 | { |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Security\Validate\Validate, PH7\Framework\Mvc\Model\DbConfig; |
|
| 10 | +use PH7\Framework\Security\Validate\Validate; |
|
| 11 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 11 | 12 | |
| 12 | 13 | class UserController extends MainController |
| 13 | 14 | { |
@@ -7,10 +7,9 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 12 | -PH7\Framework\Parse\SysVar, |
|
| 13 | -PH7\Framework\Url\Url; |
|
| 10 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 11 | +use PH7\Framework\Parse\SysVar; |
|
| 12 | +use PH7\Framework\Url\Url; |
|
| 14 | 13 | |
| 15 | 14 | class HomeController extends Controller |
| 16 | 15 | { |
@@ -7,11 +7,10 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Security\Ban\Ban, |
|
| 12 | -PH7\Framework\Http\Http, |
|
| 13 | -PH7\Framework\Navigation\Page, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Security\Ban\Ban; |
|
| 11 | +use PH7\Framework\Http\Http; |
|
| 12 | +use PH7\Framework\Navigation\Page; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 15 | 14 | |
| 16 | 15 | class CommentController extends Controller |
| 17 | 16 | { |
@@ -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); |