@@ -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'); |
@@ -12,6 +12,9 @@ discard block |
||
12 | 12 | class VideoModel extends VideoCoreModel |
13 | 13 | { |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $sThumb |
|
17 | + */ |
|
15 | 18 | public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1) |
16 | 19 | { |
17 | 20 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('AlbumsVideos') . '(profileId, name, description, thumb, createdDate, approved) |
@@ -25,6 +28,13 @@ discard block |
||
25 | 28 | return $rStmt->execute(); |
26 | 29 | } |
27 | 30 | |
31 | + /** |
|
32 | + * @param string $iProfileId |
|
33 | + * @param integer $iAlbumId |
|
34 | + * @param string $sFile |
|
35 | + * @param string $sThumb |
|
36 | + * @param string $sCreatedDate |
|
37 | + */ |
|
28 | 38 | public function addVideo($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sThumb, $sDuration, $sCreatedDate, $iApproved = 1) |
29 | 39 | { |
30 | 40 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix('Videos') . '(profileId, albumId, title, description, file, thumb, duration, createdDate, approved) |
@@ -49,6 +59,9 @@ discard block |
||
49 | 59 | return $rStmt->execute(); |
50 | 60 | } |
51 | 61 | |
62 | + /** |
|
63 | + * @param string $iProfileId |
|
64 | + */ |
|
52 | 65 | public function getAlbumsName($iProfileId) |
53 | 66 | { |
54 | 67 | $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME); |
@@ -66,6 +79,13 @@ discard block |
||
66 | 79 | return $oData; |
67 | 80 | } |
68 | 81 | |
82 | + /** |
|
83 | + * @param string $iProfileId |
|
84 | + * @param string $iAlbumId |
|
85 | + * @param string $iVideoId |
|
86 | + * @param integer $iOffset |
|
87 | + * @param integer $iLimit |
|
88 | + */ |
|
69 | 89 | public function video($iProfileId, $iAlbumId, $iVideoId = null, $iApproved = 1, $iOffset, $iLimit) |
70 | 90 | { |
71 | 91 | $this->cache->start(self::CACHE_GROUP, 'video' . $iProfileId . $iAlbumId . $iVideoId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME); |
@@ -130,6 +150,9 @@ discard block |
||
130 | 150 | return $iData; |
131 | 151 | } |
132 | 152 | |
153 | + /** |
|
154 | + * @param integer $iAlbumId |
|
155 | + */ |
|
133 | 156 | public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate) |
134 | 157 | { |
135 | 158 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('AlbumsVideos') . 'SET name =:name, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId'); |
@@ -141,6 +164,12 @@ discard block |
||
141 | 164 | return $rStmt->execute(); |
142 | 165 | } |
143 | 166 | |
167 | + /** |
|
168 | + * @param string $iProfileId |
|
169 | + * @param integer $iAlbumId |
|
170 | + * @param integer $iVideoId |
|
171 | + * @param string $sUpdatedDate |
|
172 | + */ |
|
144 | 173 | public function updateVideo($iProfileId, $iAlbumId, $iVideoId, $sTitle, $sDescription, $sUpdatedDate) |
145 | 174 | { |
146 | 175 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix('Videos') . 'SET title =:title, description =:description, updatedDate =:updatedDate WHERE profileId=:profileId AND albumId=:albumId AND videoId=:videoId'); |
@@ -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 | { |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | } |
255 | 255 | |
256 | 256 | /** |
257 | - * @return mixed (string | null) Returns the keyword else if neither keyword is used, returns NULL |
|
257 | + * @return string (string | null) Returns the keyword else if neither keyword is used, returns NULL |
|
258 | 258 | */ |
259 | 259 | public function checkKeywords() |
260 | 260 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | * |
318 | 318 | * @param string $sToFind |
319 | 319 | * @param string $sContents |
320 | - * @return boolean |
|
320 | + * @return integer |
|
321 | 321 | */ |
322 | 322 | protected function find($sToFind, $sContents) |
323 | 323 | { |
@@ -361,7 +361,6 @@ |
||
361 | 361 | * For all the parameters : http://code.google.com/intl/fr-FR/apis/analytics/docs/gdata/gdataReferenceDataFeed.html |
362 | 362 | * |
363 | 363 | * @param string $metrics the metrics |
364 | - * @param string $uri the url of the website page (ex : /myurl/) |
|
365 | 364 | * |
366 | 365 | * @return array |
367 | 366 | */ |
@@ -62,7 +62,6 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Returns the elapsed time, readable or not |
64 | 64 | * |
65 | - * @param boolean $readable Whether the result must be human readable |
|
66 | 65 | * @param string $format The format to display (printf format) |
67 | 66 | * @return string|float |
68 | 67 | */ |
@@ -76,7 +75,6 @@ discard block |
||
76 | 75 | /** |
77 | 76 | * Returns the memory usage at the end checkpoint |
78 | 77 | * |
79 | - * @param boolean $readable Whether the result must be human readable |
|
80 | 78 | * @param string $format The format to display (printf format) |
81 | 79 | * @return string|float |
82 | 80 | */ |
@@ -88,7 +86,6 @@ discard block |
||
88 | 86 | /** |
89 | 87 | * Returns the memory peak, readable or not |
90 | 88 | * |
91 | - * @param boolean $readable Whether the result must be human readable |
|
92 | 89 | * @param string $format The format to display (printf format) |
93 | 90 | * @return string|float |
94 | 91 | */ |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * Enabled/Disabled the cache. |
42 | 42 | * |
43 | 43 | * @param boolean $bIsEnable |
44 | - * @return object this |
|
44 | + * @return Cache this |
|
45 | 45 | */ |
46 | 46 | public function enabled($bIsEnable) |
47 | 47 | { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * If you do not use this method, a default directory will be created. |
57 | 57 | * |
58 | 58 | * @param string $sCacheDir |
59 | - * @return object this |
|
59 | + * @return Cache this |
|
60 | 60 | * @throws \PH7\Framework\Error\CException\PH7InvalidArgumentException An explanatory message if the directory does not exist. |
61 | 61 | */ |
62 | 62 | public function setCacheDir($sCacheDir) |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * Sets the cache prefix. |
74 | 74 | * |
75 | 75 | * @param string $sPrefix |
76 | - * @return object this |
|
76 | + * @return Cache this |
|
77 | 77 | */ |
78 | 78 | public function setPrefix($sPrefix) |
79 | 79 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * Sets the time expire cache. |
86 | 86 | * |
87 | 87 | * @param integer $iExpire (the time with the 'touch' function). |
88 | - * @return object this |
|
88 | + * @return Cache this |
|
89 | 89 | */ |
90 | 90 | public function setExpire($iExpire) |
91 | 91 | { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * @param string $sGroup The Group Cache (This creates a folder). |
102 | 102 | * @param string $sId (The ID for the file). |
103 | 103 | * @param integer $iTtl Cache lifetime. If NULL, the file never expires. |
104 | - * @return object this |
|
104 | + * @return Cache this |
|
105 | 105 | */ |
106 | 106 | public function start($sGroup, $sId, $iTtl) |
107 | 107 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * Puts the data in the cache. |
160 | 160 | * |
161 | 161 | * @param string $sData |
162 | - * @return string (object | null) If the cache is disabled, returns null otherwise returns a this object. |
|
162 | + * @return null|Cache (object | null) If the cache is disabled, returns null otherwise returns a this object. |
|
163 | 163 | */ |
164 | 164 | public function put($sData) |
165 | 165 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Clear the cache. |
175 | 175 | * |
176 | - * @return object this |
|
176 | + * @return Cache this |
|
177 | 177 | */ |
178 | 178 | public function clear() |
179 | 179 | { |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * |
250 | 250 | * @access private |
251 | 251 | * @param boolean $bPrint |
252 | - * @return mixed (boolean | string) Returns TRUE or a string if successful, FALSE otherwise. |
|
252 | + * @return string (boolean | string) Returns TRUE or a string if successful, FALSE otherwise. |
|
253 | 253 | */ |
254 | 254 | private function _read($bPrint) |
255 | 255 | { |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | * |
311 | 311 | * If the folder cache does not exist, it creates a folder. |
312 | 312 | * @access private |
313 | - * @return object this |
|
313 | + * @return Cache this |
|
314 | 314 | */ |
315 | 315 | private function _checkCacheDir() |
316 | 316 | { |
@@ -59,6 +59,9 @@ |
||
59 | 59 | $this->_bJavaCompiler = (bool) Config::getInstance()->values['cache']['enable.static.minify_use_java_compiler']; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $sPhp |
|
64 | + */ |
|
62 | 65 | public function parsePhp($sPhp) |
63 | 66 | { |
64 | 67 | $sPhp = preg_replace('#/\*.*+\*#', '', $sPhp); # Removing PHP comments |