@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * @param string $sMessage |
| 105 | 105 | * @param string $sCreatedDate |
| 106 | 106 | * |
| 107 | - * @return bool|int Returns the ID of the message on success or FALSE on failure. |
|
| 107 | + * @return integer Returns the ID of the message on success or FALSE on failure. |
|
| 108 | 108 | */ |
| 109 | 109 | public function sendMsg($iSender, $iRecipient, $sTitle, $sMessage, $sCreatedDate) |
| 110 | 110 | { |
@@ -12,6 +12,10 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | class VideoModel extends VideoCoreModel |
| 14 | 14 | { |
| 15 | + /** |
|
| 16 | + * @param string $sTitle |
|
| 17 | + * @param string $sThumb |
|
| 18 | + */ |
|
| 15 | 19 | public function addAlbum($iProfileId, $sTitle, $sDescription, $sThumb, $sCreatedDate, $iApproved = 1) |
| 16 | 20 | { |
| 17 | 21 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix(DbTableName::ALBUM_VIDEO) . '(profileId, name, description, thumb, createdDate, approved) |
@@ -27,6 +31,14 @@ discard block |
||
| 27 | 31 | return $rStmt->execute(); |
| 28 | 32 | } |
| 29 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $iProfileId |
|
| 36 | + * @param integer $iAlbumId |
|
| 37 | + * @param string $sTitle |
|
| 38 | + * @param string|boolean $sFile |
|
| 39 | + * @param string $sThumb |
|
| 40 | + * @param string $sCreatedDate |
|
| 41 | + */ |
|
| 30 | 42 | public function addVideo($iProfileId, $iAlbumId, $sTitle, $sDescription, $sFile, $sThumb, $sDuration, $sCreatedDate, $iApproved = 1) |
| 31 | 43 | { |
| 32 | 44 | $rStmt = Db::getInstance()->prepare('INSERT INTO' . Db::prefix(DbTableName::VIDEO) . '(profileId, albumId, title, description, file, thumb, duration, createdDate, approved) |
@@ -54,6 +66,9 @@ discard block |
||
| 54 | 66 | return $rStmt->execute(); |
| 55 | 67 | } |
| 56 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $iProfileId |
|
| 71 | + */ |
|
| 57 | 72 | public function getAlbumsName($iProfileId) |
| 58 | 73 | { |
| 59 | 74 | $this->cache->start(self::CACHE_GROUP, 'albumName' . $iProfileId, static::CACHE_TIME); |
@@ -71,6 +86,13 @@ discard block |
||
| 71 | 86 | return $oData; |
| 72 | 87 | } |
| 73 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $iProfileId |
|
| 91 | + * @param string $iAlbumId |
|
| 92 | + * @param string $iVideoId |
|
| 93 | + * @param integer $iOffset |
|
| 94 | + * @param integer $iLimit |
|
| 95 | + */ |
|
| 74 | 96 | public function video($iProfileId, $iAlbumId, $iVideoId = null, $iApproved = 1, $iOffset, $iLimit) |
| 75 | 97 | { |
| 76 | 98 | $this->cache->start(self::CACHE_GROUP, 'video' . $iProfileId . $iAlbumId . $iVideoId . $iApproved . $iOffset . $iLimit, static::CACHE_TIME); |
@@ -137,6 +159,10 @@ discard block |
||
| 137 | 159 | return $iData; |
| 138 | 160 | } |
| 139 | 161 | |
| 162 | + /** |
|
| 163 | + * @param integer $iAlbumId |
|
| 164 | + * @param string $sTitle |
|
| 165 | + */ |
|
| 140 | 166 | public function updateAlbum($iProfileId, $iAlbumId, $sTitle, $sDescription, $sUpdatedDate) |
| 141 | 167 | { |
| 142 | 168 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix(DbTableName::ALBUM_VIDEO) . 'SET name =:name, description =:description, updatedDate =:updatedDate |
@@ -151,6 +177,14 @@ discard block |
||
| 151 | 177 | return $rStmt->execute(); |
| 152 | 178 | } |
| 153 | 179 | |
| 180 | + /** |
|
| 181 | + * @param string $iProfileId |
|
| 182 | + * @param integer $iAlbumId |
|
| 183 | + * @param integer $iVideoId |
|
| 184 | + * @param string $sTitle |
|
| 185 | + * @param string $sDescription |
|
| 186 | + * @param string $sUpdatedDate |
|
| 187 | + */ |
|
| 154 | 188 | public function updateVideo($iProfileId, $iAlbumId, $iVideoId, $sTitle, $sDescription, $sUpdatedDate) |
| 155 | 189 | { |
| 156 | 190 | $rStmt = Db::getInstance()->prepare('UPDATE' . Db::prefix(DbTableName::VIDEO) . 'SET title =:title, description =:description, updatedDate =:updatedDate |