Completed
Branch master (53bce7)
by Pierre-Henry
35:22
created
_protected/app/system/modules/video/models/VideoModel.php 1 patch
Doc Comments   +34 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.