@@ -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" module **/ |
| 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" module **/ |
| 18 | 17 | class DeleteUserCoreFormProcess extends Form |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | class ResendActivationCoreFormProcess extends Form |
| 15 | 15 | { |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $sTable |
|
| 19 | + */ |
|
| 17 | 20 | public function __construct($sTable) |
| 18 | 21 | { |
| 19 | 22 | parent::__construct(); |
@@ -8,7 +8,8 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or exit('Restricted access'); |
| 10 | 10 | |
| 11 | -use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Mail\Mail; |
|
| 11 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 12 | +use PH7\Framework\Mail\Mail; |
|
| 12 | 13 | |
| 13 | 14 | /** For "user" and "affiliate" module **/ |
| 14 | 15 | class ResendActivationCoreFormProcess extends Form |
@@ -13,6 +13,10 @@ discard block |
||
| 13 | 13 | class AdminCoreModel extends UserCoreModel |
| 14 | 14 | { |
| 15 | 15 | |
| 16 | + /** |
|
| 17 | + * @param integer $iOffset |
|
| 18 | + * @param integer $iLimit |
|
| 19 | + */ |
|
| 16 | 20 | public function browse($iOffset, $iLimit, $sTable = 'Members') |
| 17 | 21 | { |
| 18 | 22 | Various::checkModelTable($sTable); |
@@ -30,6 +34,11 @@ discard block |
||
| 30 | 34 | return $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 31 | 35 | } |
| 32 | 36 | |
| 37 | + /** |
|
| 38 | + * @param boolean $bCount |
|
| 39 | + * @param null|integer $iOffset |
|
| 40 | + * @param null|integer $iLimit |
|
| 41 | + */ |
|
| 33 | 42 | public function searchUser($mWhat, $sWhere, $iGroupId, $iBanned, $bCount, $sOrderBy, $sSort, $iOffset, $iLimit) |
| 34 | 43 | { |
| 35 | 44 | $bCount = (bool) $bCount; |
@@ -70,6 +79,9 @@ discard block |
||
| 70 | 79 | } |
| 71 | 80 | } |
| 72 | 81 | |
| 82 | + /** |
|
| 83 | + * @param integer $iBan |
|
| 84 | + */ |
|
| 73 | 85 | public function ban($iProfileId, $iBan, $sTable = 'Members') |
| 74 | 86 | { |
| 75 | 87 | Various::checkModelTable($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 AdminCoreModel extends UserCoreModel |
@@ -19,6 +19,8 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @param mixed (null or integer) $mActive 1 = active otherwise null. Default value is 1. |
| 21 | 21 | * @param string $sTable The table. Default value is Ads. |
| 22 | + * @param integer $iOffset |
|
| 23 | + * @param integer $iLimit |
|
| 22 | 24 | * @return object The advertisements data. |
| 23 | 25 | */ |
| 24 | 26 | public function get($mActive = 1, $iOffset, $iLimit, $sTable = 'Ads') |
@@ -50,6 +52,10 @@ discard block |
||
| 50 | 52 | return $rStmt->execute(); |
| 51 | 53 | } |
| 52 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $iId |
|
| 57 | + * @param integer $iStatus |
|
| 58 | + */ |
|
| 53 | 59 | public function setStatus($iId, $iStatus, $sTable = 'Ads') |
| 54 | 60 | { |
| 55 | 61 | AdsCore::checkTable($sTable); |
@@ -60,6 +66,9 @@ discard block |
||
| 60 | 66 | return $rStmt->execute(); |
| 61 | 67 | } |
| 62 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $iId |
|
| 71 | + */ |
|
| 63 | 72 | public function delete($iId, $sTable = 'Ads') |
| 64 | 73 | { |
| 65 | 74 | AdsCore::checkTable($sTable); |
@@ -7,9 +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\Util\Various; |
|
| 10 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
| 11 | +use PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
| 13 | 12 | |
| 14 | 13 | // Abstract Class |
| 15 | 14 | class AffiliateCoreModel extends AdminCoreModel |
@@ -10,7 +10,8 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | namespace PH7; |
| 12 | 12 | |
| 13 | -use PH7\Framework\Date\CDateTime, PH7\Framework\Mvc\Model\Engine\Db; |
|
| 13 | +use PH7\Framework\Date\CDateTime; |
|
| 14 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
| 14 | 15 | |
| 15 | 16 | class BirthdayCoreModel |
| 16 | 17 | { |
@@ -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); |
@@ -14,6 +14,11 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | const TB_PICTURE = 'Pictures', TB_VIDEO = 'Videos', MAX_ITEMS = 800; |
| 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; |