@@ -12,10 +12,9 @@ |
||
| 12 | 12 | namespace PH7; |
| 13 | 13 | defined('PH7') or exit('Restricted access'); |
| 14 | 14 | |
| 15 | -use |
|
| 16 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
| 17 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 18 | -PH7\Framework\Mvc\Model\Engine\Util\Backup; |
|
| 15 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
| 16 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 17 | +use PH7\Framework\Mvc\Model\Engine\Util\Backup; |
|
| 19 | 18 | |
| 20 | 19 | class DatabaseCoreCron extends Cron |
| 21 | 20 | { |
@@ -12,11 +12,10 @@ |
||
| 12 | 12 | namespace PH7; |
| 13 | 13 | defined('PH7') or exit('Restricted access'); |
| 14 | 14 | |
| 15 | -use |
|
| 16 | -PH7\Framework\Config\Config, |
|
| 17 | -PH7\Framework\Cache\Cache, |
|
| 18 | -PH7\Framework\Compress\Compress, |
|
| 19 | -PH7\Framework\Service\Suggestion; |
|
| 15 | +use PH7\Framework\Config\Config; |
|
| 16 | +use PH7\Framework\Cache\Cache; |
|
| 17 | +use PH7\Framework\Compress\Compress; |
|
| 18 | +use PH7\Framework\Service\Suggestion; |
|
| 20 | 19 | |
| 21 | 20 | $oCache = (new Cache)->start('str/js', 'mailcheck', 120*48*30); |
| 22 | 21 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * Check table. |
| 21 | 21 | * |
| 22 | 22 | * @param string $sTable |
| 23 | - * @return mixed (string or void) Returns the table if it is correct. |
|
| 23 | + * @return string|null (string or void) Returns the table if it is correct. |
|
| 24 | 24 | * @see \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() |
| 25 | 25 | * @throws \PH7\Framework\Mvc\Model\Engine\Util\Various::launchErr() If the table is not valid. |
| 26 | 26 | */ |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * @param string $sMod |
| 26 | 26 | * @param boolean $bPrint Print or Return the HTML code. Default TRUE |
| 27 | - * @return void |
|
| 27 | + * @return null|string |
|
| 28 | 28 | */ |
| 29 | 29 | public static function link($sMod, $bPrint = true) |
| 30 | 30 | { |
@@ -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 LostPwdDesignCore |
| 13 | 14 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * Gets the XML links. |
| 32 | 32 | * |
| 33 | - * @param integet $iNum Number of news to get. Default: 10 |
|
| 33 | + * @param integer $iNum Number of news to get. Default: 10 |
|
| 34 | 34 | * @return array The XML tree. |
| 35 | 35 | * @throws \PH7\Framework\Error\CException\PH7Exception If the Feed URL is not valid. |
| 36 | 36 | */ |
@@ -7,11 +7,10 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Mail\Mail, |
|
| 12 | -PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl, |
|
| 13 | -PH7\Framework\Mvc\Router\Uri, |
|
| 14 | -PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
| 10 | +use PH7\Framework\Mail\Mail; |
|
| 11 | +use PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl; |
|
| 12 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 13 | +use PH7\Framework\Mvc\Model\Engine\Util\Various; |
|
| 15 | 14 | |
| 16 | 15 | class Security |
| 17 | 16 | { |
@@ -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,9 @@ |
||
| 13 | 13 | /** For "user" and "affiliate" module **/ |
| 14 | 14 | class ResendActivationCoreFormProcess extends Form |
| 15 | 15 | { |
| 16 | + /** |
|
| 17 | + * @param string $sTable |
|
| 18 | + */ |
|
| 16 | 19 | public function __construct($sTable) |
| 17 | 20 | { |
| 18 | 21 | parent::__construct(); |
@@ -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 |