@@ -9,10 +9,9 @@ |
||
9 | 9 | |
10 | 10 | defined('PH7') or exit('Restricted access'); |
11 | 11 | |
12 | -use |
|
13 | -PH7\Framework\Layout\Html\Design, |
|
14 | -PH7\Framework\Mvc\Router\Uri, |
|
15 | -PH7\Framework\Url\Header; |
|
12 | +use PH7\Framework\Layout\Html\Design; |
|
13 | +use PH7\Framework\Mvc\Router\Uri; |
|
14 | +use PH7\Framework\Url\Header; |
|
16 | 15 | |
17 | 16 | class Permission extends PermissionCore |
18 | 17 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @param integer $iRecipient |
65 | 65 | * @param string $sTitle |
66 | 66 | * @param string $sMessage |
67 | - * @param string $sCreateDate |
|
67 | + * @param string $sCreatedDate |
|
68 | 68 | * @return mixed (boolean | integer) Returns the ID of the message on success or FALSE on failure. |
69 | 69 | */ |
70 | 70 | public function sendMsg($iSender, $iRecipient, $sTitle, $sMessage, $sCreatedDate) |
@@ -89,6 +89,9 @@ discard block |
||
89 | 89 | return $rStmt->execute(); |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $iMessageId |
|
94 | + */ |
|
92 | 95 | public function adminDeleteMsg($iMessageId) |
93 | 96 | { |
94 | 97 | $rStmt = Db::getInstance()->prepare('DELETE FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1'); |
@@ -104,6 +107,9 @@ discard block |
||
104 | 107 | Db::free($rStmt); |
105 | 108 | } |
106 | 109 | |
110 | + /** |
|
111 | + * @param integer $iMessageId |
|
112 | + */ |
|
107 | 113 | public function getMsg($iMessageId) |
108 | 114 | { |
109 | 115 | $rStmt = Db::getInstance()->prepare('SELECT * FROM' . Db::prefix('Messages') . 'WHERE messageId = :messageId LIMIT 1'); |
@@ -9,10 +9,9 @@ |
||
9 | 9 | */ |
10 | 10 | namespace PH7; |
11 | 11 | |
12 | -use |
|
13 | -PH7\Framework\Navigation\Page, |
|
14 | -PH7\Framework\Url\Header, |
|
15 | -PH7\Framework\Mvc\Router\Uri; |
|
12 | +use PH7\Framework\Navigation\Page; |
|
13 | +use PH7\Framework\Url\Header; |
|
14 | +use PH7\Framework\Mvc\Router\Uri; |
|
16 | 15 | |
17 | 16 | class AdminController extends Controller |
18 | 17 | { |
@@ -7,13 +7,12 @@ |
||
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, |
|
16 | -PH7\Framework\Url\Header; |
|
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; |
|
15 | +use PH7\Framework\Url\Header; |
|
17 | 16 | |
18 | 17 | class EditNoteForm |
19 | 18 | { |
@@ -9,12 +9,11 @@ |
||
9 | 9 | |
10 | 10 | defined('PH7') or die('Restricted access'); |
11 | 11 | |
12 | -use |
|
13 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
14 | -PH7\Framework\Mvc\Model\DbConfig, |
|
15 | -PH7\Framework\Mvc\Request\Http, |
|
16 | -PH7\Framework\Url\Header, |
|
17 | -PH7\Framework\Mvc\Router\Uri; |
|
12 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
13 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
14 | +use PH7\Framework\Mvc\Request\Http; |
|
15 | +use PH7\Framework\Url\Header; |
|
16 | +use PH7\Framework\Mvc\Router\Uri; |
|
18 | 17 | |
19 | 18 | class NoteFormProcess extends Form |
20 | 19 | { |
@@ -12,6 +12,11 @@ discard block |
||
12 | 12 | class NoteModel extends NoteCoreModel |
13 | 13 | { |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $iNoteId |
|
17 | + * @param integer $iOffset |
|
18 | + * @param integer $iLimit |
|
19 | + */ |
|
15 | 20 | public function getCategory($iNoteId = null, $iOffset, $iLimit, $bCount = false) |
16 | 21 | { |
17 | 22 | $this->cache->start(self::CACHE_GROUP, 'category' . $iNoteId . $iOffset . $iLimit . $bCount, static::CACHE_TIME); |
@@ -67,6 +72,9 @@ discard block |
||
67 | 72 | return $oData; |
68 | 73 | } |
69 | 74 | |
75 | + /** |
|
76 | + * @param integer $iProfileId |
|
77 | + */ |
|
70 | 78 | public function addCategory($iCategoryId, $iNoteId, $iProfileId) |
71 | 79 | { |
72 | 80 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('NotesCategories') . '(categoryId, noteId, profileId) VALUES(:categoryId, :noteId, :profileId)'); |
@@ -77,6 +85,9 @@ discard block |
||
77 | 85 | Db::free($rStmt); |
78 | 86 | } |
79 | 87 | |
88 | + /** |
|
89 | + * @param string $iProfileId |
|
90 | + */ |
|
80 | 91 | public function readPost($sPostId, $iProfileId, $iApproved = 1) |
81 | 92 | { |
82 | 93 | $this->cache->start(self::CACHE_GROUP, 'readPost' . $sPostId . $iProfileId . $iApproved, static::CACHE_TIME); |
@@ -279,6 +290,10 @@ discard block |
||
279 | 290 | return $sData; |
280 | 291 | } |
281 | 292 | |
293 | + /** |
|
294 | + * @param string $sPostId |
|
295 | + * @param integer $iProfileId |
|
296 | + */ |
|
282 | 297 | public function postIdExists($sPostId, $iProfileId) |
283 | 298 | { |
284 | 299 | $this->cache->start(self::CACHE_GROUP, 'postIdExists' . $sPostId . $iProfileId, static::CACHE_TIME); |
@@ -329,6 +344,9 @@ discard block |
||
329 | 344 | $this->updatePost('thumb', null, $iNoteId, $iProfileId); |
330 | 345 | } |
331 | 346 | |
347 | + /** |
|
348 | + * @param string $sSection |
|
349 | + */ |
|
332 | 350 | public function updatePost($sSection, $sValue, $iNoteId, $iProfileId) |
333 | 351 | { |
334 | 352 | $rStmt = Db::getInstance()->prepare('UPDATE'.Db::prefix('Notes').'SET ' . $sSection . ' = :value WHERE noteId = :noteId AND profileId = :profileId'); |
@@ -7,11 +7,10 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use |
|
11 | -PH7\Framework\Config\Config, |
|
12 | -PH7\Framework\Session\Session, |
|
13 | -PH7\Framework\Mvc\Request\Http, |
|
14 | -PH7\Framework\Mvc\Router\Uri; |
|
10 | +use PH7\Framework\Config\Config; |
|
11 | +use PH7\Framework\Session\Session; |
|
12 | +use PH7\Framework\Mvc\Request\Http; |
|
13 | +use PH7\Framework\Mvc\Router\Uri; |
|
15 | 14 | |
16 | 15 | class PictureForm |
17 | 16 | { |
@@ -8,14 +8,13 @@ |
||
8 | 8 | namespace PH7; |
9 | 9 | defined('PH7') or exit('Restricted access'); |
10 | 10 | |
11 | -use |
|
12 | -PH7\Framework\Mvc\Model\Engine\Db, |
|
13 | -PH7\Framework\Image\Image, |
|
14 | -PH7\Framework\Security\Moderation\Filter, |
|
15 | -PH7\Framework\Util\Various, |
|
16 | -PH7\Framework\Mvc\Model\DbConfig, |
|
17 | -PH7\Framework\Mvc\Router\Uri, |
|
18 | -PH7\Framework\Url\Header; |
|
11 | +use PH7\Framework\Mvc\Model\Engine\Db; |
|
12 | +use PH7\Framework\Image\Image; |
|
13 | +use PH7\Framework\Security\Moderation\Filter; |
|
14 | +use PH7\Framework\Util\Various; |
|
15 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
16 | +use PH7\Framework\Mvc\Router\Uri; |
|
17 | +use PH7\Framework\Url\Header; |
|
19 | 18 | |
20 | 19 | class AlbumFormProcess extends Form |
21 | 20 | { |
@@ -11,13 +11,12 @@ |
||
11 | 11 | namespace PH7; |
12 | 12 | defined('PH7') or exit('Restricted access'); |
13 | 13 | |
14 | -use |
|
15 | -PH7\Framework\Image\Image, |
|
16 | -PH7\Framework\Security\Moderation\Filter, |
|
17 | -PH7\Framework\Util\Various, |
|
18 | -PH7\Framework\Mvc\Model\DbConfig, |
|
19 | -PH7\Framework\Mvc\Router\Uri, |
|
20 | -PH7\Framework\Url\Header; |
|
14 | +use PH7\Framework\Image\Image; |
|
15 | +use PH7\Framework\Security\Moderation\Filter; |
|
16 | +use PH7\Framework\Util\Various; |
|
17 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
18 | +use PH7\Framework\Mvc\Router\Uri; |
|
19 | +use PH7\Framework\Url\Header; |
|
21 | 20 | |
22 | 21 | class PictureFormProcess extends Form |
23 | 22 | { |