@@ -33,6 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Checks Ads Table. |
| 35 | 35 | * |
| 36 | + * @param string $sTable |
|
| 36 | 37 | * @return mixed (string or void if table is not valid) Returns the table if it is correct. |
| 37 | 38 | * @throws If the table is not valid, it throws an exception and displays an error message with the method \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() and exit(). |
| 38 | 39 | */ |
@@ -54,7 +55,7 @@ discard block |
||
| 54 | 55 | * Convert table to Ads's ID. |
| 55 | 56 | * |
| 56 | 57 | * @param string $sTable |
| 57 | - * @return mixed (string or void if table is not valid) Returns the table if it is correct. |
|
| 58 | + * @return string (string or void if table is not valid) Returns the table if it is correct. |
|
| 58 | 59 | * @throws If the table is not valid, it throws an exception and displays an error message with the method \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() and exit(). |
| 59 | 60 | */ |
| 60 | 61 | public static function convertTableToId($sTable) |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Mvc\Request\Http, PH7\Framework\Pattern\Statik; |
|
| 10 | +use PH7\Framework\Mvc\Request\Http; |
|
| 11 | +use PH7\Framework\Pattern\Statik; |
|
| 11 | 12 | |
| 12 | 13 | class AdsCore extends Framework\Ads\Ads |
| 13 | 14 | { |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Pattern\Statik, PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Pattern\Statik; |
|
| 11 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 11 | 12 | |
| 12 | 13 | class CommentDesignCore |
| 13 | 14 | { |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Layout\Html\Design, PH7\Framework\Pattern\Statik; |
|
| 10 | +use PH7\Framework\Layout\Html\Design; |
|
| 11 | +use PH7\Framework\Pattern\Statik; |
|
| 11 | 12 | |
| 12 | 13 | class RatingDesignCore |
| 13 | 14 | { |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Pattern\Statik, PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Pattern\Statik; |
|
| 11 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 11 | 12 | |
| 12 | 13 | class TwoFactorAuthDesignCore |
| 13 | 14 | { |
@@ -8,8 +8,6 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or exit('Restricted access'); |
| 10 | 10 | |
| 11 | -use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header; |
|
| 12 | - |
|
| 13 | 11 | /** For "user", "affiliate" and "admin" modules **/ |
| 14 | 12 | class ChangePasswordCoreFormProcess extends Form |
| 15 | 13 | { |
@@ -8,11 +8,10 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or exit('Restricted access'); |
| 10 | 10 | |
| 11 | -use |
|
| 12 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 13 | -PH7\Framework\Mail\Mail, |
|
| 14 | -PH7\Framework\Mvc\Router\Uri, |
|
| 15 | -PH7\Framework\Url\Header; |
|
| 11 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 12 | +use PH7\Framework\Mail\Mail; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 14 | +use PH7\Framework\Url\Header; |
|
| 16 | 15 | |
| 17 | 16 | /** For "user" and "affiliate" modules **/ |
| 18 | 17 | class DeleteUserCoreFormProcess extends Form |
@@ -17,6 +17,10 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | const CACHE_GROUP = 'db/sys/mod/admin'; |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param integer $iOffset |
|
| 22 | + * @param integer $iLimit |
|
| 23 | + */ |
|
| 20 | 24 | public function browse($iOffset, $iLimit, $sTable = 'Members') |
| 21 | 25 | { |
| 22 | 26 | Various::checkModelTable($sTable); |
@@ -34,6 +38,11 @@ discard block |
||
| 34 | 38 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 35 | 39 | } |
| 36 | 40 | |
| 41 | + /** |
|
| 42 | + * @param boolean $bCount |
|
| 43 | + * @param null|integer $iOffset |
|
| 44 | + * @param null|integer $iLimit |
|
| 45 | + */ |
|
| 37 | 46 | public function searchUser($mWhat, $sWhere, $iGroupId, $iBanned, $bCount, $sOrderBy, $sSort, $iOffset, $iLimit) |
| 38 | 47 | { |
| 39 | 48 | $bCount = (bool) $bCount; |
@@ -74,6 +83,9 @@ discard block |
||
| 74 | 83 | } |
| 75 | 84 | } |
| 76 | 85 | |
| 86 | + /** |
|
| 87 | + * @param integer $iBan |
|
| 88 | + */ |
|
| 77 | 89 | public function ban($iProfileId, $iBan, $sTable = 'Members') |
| 78 | 90 | { |
| 79 | 91 | Various::checkModelTable($sTable); |
@@ -7,10 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
| 12 | -PH7\Framework\Mvc\Model\Engine\Record, |
|
| 13 | -PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
| 10 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
| 11 | +use PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
| 14 | 12 | |
| 15 | 13 | // Abstract Class |
| 16 | 14 | class AdminCoreModel extends UserCoreModel |
@@ -14,6 +14,11 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | const TB_PICTURE = 'Pictures', TB_VIDEO = 'Videos', MAX_ITEMS = 1000; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $sTable |
|
| 19 | + * @param integer $iOffset |
|
| 20 | + * @param integer $iLimit |
|
| 21 | + */ |
|
| 17 | 22 | public function getPicsVids($sTable, $sOrder, $iOffset, $iLimit) |
| 18 | 23 | { |
| 19 | 24 | $iOffset = (int) $iOffset; |
@@ -29,6 +34,10 @@ discard block |
||
| 29 | 34 | return $oData; |
| 30 | 35 | } |
| 31 | 36 | |
| 37 | + /** |
|
| 38 | + * @param integer $iOffset |
|
| 39 | + * @param integer $iLimit |
|
| 40 | + */ |
|
| 32 | 41 | public function getForumsPosts($sOrder, $iOffset, $iLimit) |
| 33 | 42 | { |
| 34 | 43 | $iOffset = (int) $iOffset; |
@@ -13,6 +13,9 @@ |
||
| 13 | 13 | class MailCoreModel extends Framework\Mvc\Model\Engine\Model |
| 14 | 14 | { |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param string $iProfileId |
|
| 18 | + */ |
|
| 16 | 19 | public static function countUnreadMsg($iProfileId) |
| 17 | 20 | { |
| 18 | 21 | $rStmt = Db::getInstance()->prepare('SELECT COUNT(status) AS unread FROM' . Db::prefix('Messages') . |