@@ -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\Mail\Mail; |
|
| 11 | +use PH7\Framework\Mvc\Request\Http; |
|
| 12 | +use PH7\Framework\Mail\Mail; |
|
| 12 | 13 | |
| 13 | 14 | /** Reset the time limit and increase the memory **/ |
| 14 | 15 | @set_time_limit(0); |
@@ -6,7 +6,8 @@ |
||
| 6 | 6 | * @package PH7 / App / System / Module / Note / Inc / Class |
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | -use PH7\Framework\Util\Various, PH7\Framework\Config\Config; |
|
| 9 | +use PH7\Framework\Util\Various; |
|
| 10 | +use PH7\Framework\Config\Config; |
|
| 10 | 11 | |
| 11 | 12 | class Note extends WriteCore |
| 12 | 13 | { |
@@ -9,7 +9,8 @@ |
||
| 9 | 9 | * @version 1.0 |
| 10 | 10 | */ |
| 11 | 11 | namespace PH7; |
| 12 | -use PH7\Framework\Url\Header, PH7\Framework\Mvc\Router\Uri; |
|
| 12 | +use PH7\Framework\Url\Header; |
|
| 13 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 13 | 14 | |
| 14 | 15 | class AdminController extends MainController |
| 15 | 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\Url\Header; |
|
| 11 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 12 | +use PH7\Framework\Url\Header; |
|
| 12 | 13 | |
| 13 | 14 | class EditAlbumFormProcess extends Form |
| 14 | 15 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * Add the fields in the database |
| 31 | 31 | * |
| 32 | 32 | * @param array $aData The data to add |
| 33 | - * @return object this |
|
| 33 | + * @return Report this |
|
| 34 | 34 | */ |
| 35 | 35 | public function add(array $aData) |
| 36 | 36 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Get status |
| 74 | 74 | * |
| 75 | - * @return mixed (string | boolean) Text of the statute or boolean |
|
| 75 | + * @return boolean (string | boolean) Text of the statute or boolean |
|
| 76 | 76 | */ |
| 77 | 77 | public function get() |
| 78 | 78 | { |
@@ -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\Date\CDateTime, |
|
| 14 | -PH7\Framework\Mvc\Model\DbConfig; |
|
| 10 | +use PH7\Framework\Mail\Mail; |
|
| 11 | +use PH7\Framework\Layout\Tpl\Engine\PH7Tpl\PH7Tpl; |
|
| 12 | +use PH7\Framework\Date\CDateTime; |
|
| 13 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 15 | 14 | |
| 16 | 15 | class Report |
| 17 | 16 | { |
@@ -56,6 +56,9 @@ |
||
| 56 | 56 | return (!empty($iId)) ? $rStmt->fetch(\PDO::FETCH_OBJ) : $rStmt->fetchAll(\PDO::FETCH_OBJ); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param string $iReportId |
|
| 61 | + */ |
|
| 59 | 62 | public function delete($iReportId) |
| 60 | 63 | { |
| 61 | 64 | $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Report') . 'WHERE reportId = :reportId LIMIT 1'); |
@@ -7,7 +7,8 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use PH7\Framework\Url\Header, PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Url\Header; |
|
| 11 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 11 | 12 | |
| 12 | 13 | class SettingController extends Controller |
| 13 | 14 | { |
@@ -8,16 +8,15 @@ |
||
| 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\Security\Security, |
|
| 14 | -PH7\Framework\Mvc\Request\Http, |
|
| 15 | -PH7\Framework\Util\Various, |
|
| 16 | -PH7\Framework\Cookie\Cookie, |
|
| 17 | -PH7\Framework\Ip\Ip, |
|
| 18 | -PH7\Framework\Date\CDateTime, |
|
| 19 | -PH7\Framework\Mvc\Router\Uri, |
|
| 20 | -PH7\Framework\Url\Header; |
|
| 11 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 12 | +use PH7\Framework\Security\Security; |
|
| 13 | +use PH7\Framework\Mvc\Request\Http; |
|
| 14 | +use PH7\Framework\Util\Various; |
|
| 15 | +use PH7\Framework\Cookie\Cookie; |
|
| 16 | +use PH7\Framework\Ip\Ip; |
|
| 17 | +use PH7\Framework\Date\CDateTime; |
|
| 18 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 19 | +use PH7\Framework\Url\Header; |
|
| 21 | 20 | |
| 22 | 21 | class JoinFormProcess extends Form |
| 23 | 22 | { |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * Assignment of attributes. |
| 22 | 22 | * |
| 23 | 23 | * @param integer $iProfileId Profile ID. |
| 24 | - * @param integer $iVisitor ID User ID (visitor). Default NULL (this attribute is null only for the get method). |
|
| 24 | + * @param integer $iVisitorId ID User ID (visitor). Default NULL (this attribute is null only for the get method). |
|
| 25 | 25 | * @param string $sDateVisit The date of last visit. Default NULL (this attribute is null only for the get method). |
| 26 | 26 | */ |
| 27 | 27 | public function __construct($iProfileId, $iVisitorId = null, $sDateVisit = null) |