@@ -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 | { |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Sets the Note Thumbnail. |
17 | 17 | * |
18 | - * @param object $oPost |
|
18 | + * @param \stdClass $oPost |
|
19 | 19 | * @param \PH7\NoteModel $oNoteModel |
20 | 20 | * @param \PH7\Framework\File\File $oFile |
21 | 21 | * @return void |
@@ -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 | { |
@@ -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 | { |
@@ -15,6 +15,10 @@ discard block |
||
15 | 15 | class WallModel extends Framework\Mvc\Model\Engine\Model |
16 | 16 | { |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $iProfileId |
|
20 | + * @param string $sCreatedDate |
|
21 | + */ |
|
18 | 22 | public function add($iProfileId, $sPost, $sCreatedDate) |
19 | 23 | { |
20 | 24 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('MembersWall') . '(profileId, post, createdDate) VALUES (:profileId, :post, :createdDate)'); |
@@ -24,6 +28,10 @@ discard block |
||
24 | 28 | return $rStmt->execute(); |
25 | 29 | } |
26 | 30 | |
31 | + /** |
|
32 | + * @param string $iProfileId |
|
33 | + * @param string $sUpdatedDate |
|
34 | + */ |
|
27 | 35 | public function edit($iProfileId, $sPost, $sUpdatedDate) |
28 | 36 | { |
29 | 37 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('MembersWall') . 'SET post = :post, updatedDate = :updatedDate WHERE profileId = :profileId'); |
@@ -33,6 +41,9 @@ discard block |
||
33 | 41 | return $rStmt->execute(); |
34 | 42 | } |
35 | 43 | |
44 | + /** |
|
45 | + * @param string $iProfileId |
|
46 | + */ |
|
36 | 47 | public function delete($iProfileId, $iWallId) |
37 | 48 | { |
38 | 49 | $rStmt = Db::getInstance()->prepare('DELETE FROM'.Db::prefix('MembersWall') . 'WHERE :profileId=:profileId AND wallId=:wallId'); |
@@ -41,6 +52,12 @@ discard block |
||
41 | 52 | return $rStmt->execute(); |
42 | 53 | } |
43 | 54 | |
55 | + /** |
|
56 | + * @param string $iProfileId |
|
57 | + * @param string $iWallId |
|
58 | + * @param integer $iOffset |
|
59 | + * @param integer $iLimit |
|
60 | + */ |
|
44 | 61 | public function get($iProfileId, $iWallId = null, $iOffset, $iLimit) |
45 | 62 | { |
46 | 63 | $iOffset = (int) $iOffset; |
@@ -59,6 +76,10 @@ discard block |
||
59 | 76 | return $oRow; |
60 | 77 | } |
61 | 78 | |
79 | + /** |
|
80 | + * @param integer $iOffset |
|
81 | + * @param integer $iLimit |
|
82 | + */ |
|
62 | 83 | public function getCommentProfile($iProfileId, $iOffset, $iLimit) |
63 | 84 | { |
64 | 85 | return (new CommentCoreModel)->read($iProfileId, 1, $iOffset, $iLimit, 'profile'); |
@@ -15,13 +15,12 @@ |
||
15 | 15 | namespace PH7; |
16 | 16 | defined('PH7') or exit('Restricted access'); |
17 | 17 | |
18 | -use |
|
19 | -PH7\Framework\Util\Various, |
|
20 | -PH7\Framework\Mvc\Model\DbConfig, |
|
21 | -PH7\Framework\Mvc\Router\Uri, |
|
22 | -PH7\Framework\Url\Header, |
|
23 | -PH7\Framework\File as F, |
|
24 | -PH7\Framework\Video as V; |
|
18 | +use PH7\Framework\Util\Various; |
|
19 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
20 | +use PH7\Framework\Mvc\Router\Uri; |
|
21 | +use PH7\Framework\Url\Header; |
|
22 | +use PH7\Framework\File as F; |
|
23 | +use PH7\Framework\Video as V; |
|
25 | 24 | |
26 | 25 | class VideoFormProcess extends Form |
27 | 26 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * @param char $cFormat |
|
41 | + * @param string $cFormat |
|
42 | 42 | * @param string $sDate |
43 | 43 | * @return string |
44 | 44 | * @throws \PH7\Framework\Date\Exception If the date format is incorrect. |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * @desc Add a role |
32 | 32 | * @param string $sName |
33 | - * @return object Instance of Role |
|
33 | + * @return Role Instance of Role |
|
34 | 34 | */ |
35 | 35 | public function addRole($sName) |
36 | 36 | { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @desc Add a resource |
47 | 47 | * @param string $sName |
48 | 48 | * @param array $aAllowed |
49 | - * @return object Instance of Resource |
|
49 | + * @return Resource Instance of Resource |
|
50 | 50 | */ |
51 | 51 | public function addResource($sName, array $aAllowed) |
52 | 52 | { |