@@ -8,12 +8,11 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or die('Restricted access'); |
| 10 | 10 | |
| 11 | -use |
|
| 12 | -PH7\Framework\Mvc\Model\DbConfig, |
|
| 13 | -PH7\Framework\Mail\Mail, |
|
| 14 | -PH7\Framework\Mvc\Request\Http, |
|
| 15 | -PH7\Framework\Mvc\Router\Uri, |
|
| 16 | -PH7\Framework\Url\Header; |
|
| 11 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
| 12 | +use PH7\Framework\Mail\Mail; |
|
| 13 | +use PH7\Framework\Mvc\Request\Http; |
|
| 14 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 15 | +use PH7\Framework\Url\Header; |
|
| 17 | 16 | |
| 18 | 17 | class MailFormProcess extends Form |
| 19 | 18 | { |
@@ -51,8 +51,8 @@ discard block |
||
| 51 | 51 | * @param integer $iRecipient |
| 52 | 52 | * @param string $sTitle |
| 53 | 53 | * @param string $sMessage |
| 54 | - * @param string $sCreateDate |
|
| 55 | - * @return mixed (boolean | integer) Returns the ID of the message on success or FALSE on failure. |
|
| 54 | + * @param string $sCreatedDate |
|
| 55 | + * @return string|null (boolean | integer) Returns the ID of the message on success or FALSE on failure. |
|
| 56 | 56 | */ |
| 57 | 57 | public function sendMsg($iSender, $iRecipient, $sTitle, $sMessage, $sCreatedDate) |
| 58 | 58 | { |
@@ -74,6 +74,9 @@ discard block |
||
| 74 | 74 | return $rStmt->execute(); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $iMessageId |
|
| 79 | + */ |
|
| 77 | 80 | public function adminDeleteMsg($iMessageId) |
| 78 | 81 | { |
| 79 | 82 | $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1'); |
@@ -89,6 +92,9 @@ discard block |
||
| 89 | 92 | Db::free($rStmt); |
| 90 | 93 | } |
| 91 | 94 | |
| 95 | + /** |
|
| 96 | + * @param integer $iMessageId |
|
| 97 | + */ |
|
| 92 | 98 | public function getMsg($iMessageId) |
| 93 | 99 | { |
| 94 | 100 | $rStmt = Db::getInstance()->prepare('SELECT * FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1'); |
@@ -8,7 +8,8 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or exit('Restricted access'); |
| 10 | 10 | |
| 11 | -use PH7\Framework\Url\Header, PH7\Framework\Mvc\Router\Uri; |
|
| 11 | +use PH7\Framework\Url\Header; |
|
| 12 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 12 | 13 | |
| 13 | 14 | class Permission extends PermissionCore |
| 14 | 15 | { |
@@ -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 AdminController extends Controller |
| 16 | 15 | { |
@@ -8,13 +8,12 @@ |
||
| 8 | 8 | namespace PH7; |
| 9 | 9 | defined('PH7') or exit('Restricted access'); |
| 10 | 10 | |
| 11 | -use |
|
| 12 | -PH7\Framework\Util\Various, |
|
| 13 | -PH7\Framework\Cookie\Cookie, |
|
| 14 | -PH7\Framework\Ip\Ip, |
|
| 15 | -PH7\Framework\Date\CDateTime, |
|
| 16 | -PH7\Framework\Mvc\Router\Uri, |
|
| 17 | -PH7\Framework\Mail\Mail; |
|
| 11 | +use PH7\Framework\Util\Various; |
|
| 12 | +use PH7\Framework\Cookie\Cookie; |
|
| 13 | +use PH7\Framework\Ip\Ip; |
|
| 14 | +use PH7\Framework\Date\CDateTime; |
|
| 15 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 16 | +use PH7\Framework\Mail\Mail; |
|
| 18 | 17 | |
| 19 | 18 | class SubscriptionFormProcess extends Form |
| 20 | 19 | { |
@@ -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 / Controller |
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | -use PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header; |
|
| 9 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Url\Header; |
|
| 10 | 11 | |
| 11 | 12 | class AdminController extends MainController |
| 12 | 13 | { |
@@ -7,11 +7,10 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Security\Ban\Ban, |
|
| 12 | -PH7\Framework\Navigation\Page, |
|
| 13 | -PH7\Framework\Mvc\Router\Uri, |
|
| 14 | -PH7\Framework\Url\Header; |
|
| 10 | +use PH7\Framework\Security\Ban\Ban; |
|
| 11 | +use PH7\Framework\Navigation\Page; |
|
| 12 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 13 | +use PH7\Framework\Url\Header; |
|
| 15 | 14 | |
| 16 | 15 | class MainController extends Controller |
| 17 | 16 | { |
@@ -7,12 +7,11 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | namespace PH7; |
| 9 | 9 | |
| 10 | -use |
|
| 11 | -PH7\Framework\Str\Str, |
|
| 12 | -PH7\Framework\Session\Session, |
|
| 13 | -PH7\Framework\Security\CSRF\Token, |
|
| 14 | -PH7\Framework\Mvc\Request\Http, |
|
| 15 | -PH7\Framework\Mvc\Router\Uri; |
|
| 10 | +use PH7\Framework\Str\Str; |
|
| 11 | +use PH7\Framework\Session\Session; |
|
| 12 | +use PH7\Framework\Security\CSRF\Token; |
|
| 13 | +use PH7\Framework\Mvc\Request\Http; |
|
| 14 | +use PH7\Framework\Mvc\Router\Uri; |
|
| 16 | 15 | |
| 17 | 16 | class EditNoteForm |
| 18 | 17 | { |