@@ -12,6 +12,11 @@ discard block |
||
12 | 12 | class PictureModel extends PictureCoreModel |
13 | 13 | { |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $iProfileId |
|
17 | + * @param string $sThumb |
|
18 | + * @param string $sCreatedDate |
|
19 | + */ |
|
15 | 20 | public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1) |
16 | 21 | { |
17 | 22 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('AlbumsPictures') . '(profileId, name, description, thumb, createdDate, approved) |
@@ -25,6 +30,12 @@ discard block |
||
25 | 30 | return $rStmt->execute(); |
26 | 31 | } |
27 | 32 | |
33 | + /** |
|
34 | + * @param string $iProfileId |
|
35 | + * @param integer $iAlbumId |
|
36 | + * @param string $sFile |
|
37 | + * @param string $sCreatedDate |
|
38 | + */ |
|
28 | 39 | public function addPhoto($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sCreatedDate, $iApproved = 1) |
29 | 40 | { |
30 | 41 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Pictures') . '(profileId, albumId, title, description, file, createdDate, approved) |
@@ -47,6 +58,9 @@ discard block |
||
47 | 58 | return $rStmt->execute(); |
48 | 59 | } |
49 | 60 | |
61 | + /** |
|
62 | + * @param string $iProfileId |
|
63 | + */ |
|
50 | 64 | public function getAlbumsName($iProfileId) |
51 | 65 | { |
52 | 66 | $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME); |
@@ -64,6 +78,13 @@ discard block |
||
64 | 78 | return $oData; |
65 | 79 | } |
66 | 80 | |
81 | + /** |
|
82 | + * @param string $iProfileId |
|
83 | + * @param string $iAlbumId |
|
84 | + * @param string $iPictureId |
|
85 | + * @param integer $iOffset |
|
86 | + * @param integer $iLimit |
|
87 | + */ |
|
67 | 88 | public function photo($iProfileId, $iAlbumId, $iPictureId = null, $iApproved = 1, $iOffset, $iLimit) |
68 | 89 | { |
69 | 90 | $this->cache->start(self::CACHE_GROUP, 'photo' . $iProfileId . $iAlbumId . $iPictureId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME); |
@@ -128,6 +149,11 @@ discard block |
||
128 | 149 | return $iData; |
129 | 150 | } |
130 | 151 | |
152 | + /** |
|
153 | + * @param string $iProfileId |
|
154 | + * @param integer $iAlbumId |
|
155 | + * @param string $sUpdatedDate |
|
156 | + */ |
|
131 | 157 | public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate) |
132 | 158 | { |
133 | 159 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('AlbumsPictures') . 'SET name =:name, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId'); |
@@ -139,6 +165,12 @@ discard block |
||
139 | 165 | return $rStmt->execute(); |
140 | 166 | } |
141 | 167 | |
168 | + /** |
|
169 | + * @param string $iProfileId |
|
170 | + * @param integer $iAlbumId |
|
171 | + * @param integer $iPictureId |
|
172 | + * @param string $sUpdatedDate |
|
173 | + */ |
|
142 | 174 | public function updatePhoto($iProfileId, $iAlbumId, $iPictureId, $sTitle, $sDescription, $sUpdatedDate) |
143 | 175 | { |
144 | 176 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Pictures') . 'SET title =:title, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId AND pictureId=:pictureId'); |
@@ -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 | { |
@@ -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,9 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use PH7\Framework\Navigation\Page, PH7\Framework\Mvc\Router\Uri, PH7\Framework\Url\Header; |
|
10 | +use PH7\Framework\Navigation\Page; |
|
11 | +use PH7\Framework\Mvc\Router\Uri; |
|
12 | +use PH7\Framework\Url\Header; |
|
11 | 13 | |
12 | 14 | class BrowseController extends Controller |
13 | 15 | { |
@@ -7,7 +7,8 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use PH7\Framework\Navigation\Page, PH7\Framework\Geo\Map\Map; |
|
10 | +use PH7\Framework\Navigation\Page; |
|
11 | +use PH7\Framework\Geo\Map\Map; |
|
11 | 12 | |
12 | 13 | class CountryController extends Controller |
13 | 14 | { |
@@ -7,7 +7,8 @@ |
||
7 | 7 | */ |
8 | 8 | namespace PH7; |
9 | 9 | |
10 | -use PH7\Framework\Mobile\MobApp, PH7\Framework\Mvc\Model\DbConfig; |
|
10 | +use PH7\Framework\Mobile\MobApp; |
|
11 | +use PH7\Framework\Mvc\Model\DbConfig; |
|
11 | 12 | |
12 | 13 | class MainController extends Controller |
13 | 14 | { |
@@ -10,16 +10,15 @@ |
||
10 | 10 | */ |
11 | 11 | namespace PH7; |
12 | 12 | |
13 | -use |
|
14 | -PH7\Framework\Mvc\Router\Uri, |
|
15 | -PH7\Framework\Analytics\Statistic, |
|
16 | -PH7\Framework\Parse\Emoticon, |
|
17 | -PH7\Framework\Security\Ban\Ban, |
|
18 | -PH7\Framework\Math\Measure\Year, |
|
19 | -PH7\Framework\Security\CSRF\Token, |
|
20 | -PH7\Framework\Url\Url, |
|
21 | -PH7\Framework\Geo\Map\Map, |
|
22 | -PH7\Framework\Date\Various as VDate; |
|
13 | +use PH7\Framework\Mvc\Router\Uri; |
|
14 | +use PH7\Framework\Analytics\Statistic; |
|
15 | +use PH7\Framework\Parse\Emoticon; |
|
16 | +use PH7\Framework\Security\Ban\Ban; |
|
17 | +use PH7\Framework\Math\Measure\Year; |
|
18 | +use PH7\Framework\Security\CSRF\Token; |
|
19 | +use PH7\Framework\Url\Url; |
|
20 | +use PH7\Framework\Geo\Map\Map; |
|
21 | +use PH7\Framework\Date\Various as VDate; |
|
23 | 22 | |
24 | 23 | class ProfileController extends Controller |
25 | 24 | { |
@@ -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 | { |