@@ -124,6 +124,9 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param Playlist $playlist |
|
| 129 | + */ |
|
| 127 | 130 | private function toFullTree($playlist) { |
| 128 | 131 | $songs = []; |
| 129 | 132 | |
@@ -191,6 +194,7 @@ discard block |
||
| 191 | 194 | * Modify playlist by calling a supplied method from PlaylistBusinessLayer |
| 192 | 195 | * @param string funcName Name of a function to call from PlaylistBusinessLayer |
| 193 | 196 | * @param array $funcParams Parameters to pass to the function 'funcName' |
| 197 | + * @param string $funcName |
|
| 194 | 198 | * @return \OCP\AppFramework\Http\JSONResponse JSON representation of the modified playlist |
| 195 | 199 | */ |
| 196 | 200 | private function modifyPlaylist($funcName, $funcParams) { |
@@ -22,6 +22,10 @@ |
||
| 22 | 22 | */ |
| 23 | 23 | class BaseMapper extends Mapper { |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $tableName |
|
| 27 | + * @param string $entityClass |
|
| 28 | + */ |
|
| 25 | 29 | public function __construct(IDBConnection $db, $tableName, $entityClass=null){ |
| 26 | 30 | parent::__construct($db, $tableName, $entityClass); |
| 27 | 31 | } |
@@ -253,6 +253,9 @@ discard block |
||
| 253 | 253 | return self::getId3Tag($fileInfo, 'picture'); |
| 254 | 254 | } |
| 255 | 255 | |
| 256 | + /** |
|
| 257 | + * @param string $userId |
|
| 258 | + */ |
|
| 256 | 259 | private function deleteAudio($fileIds, $userId=null){ |
| 257 | 260 | $this->logger->log('deleteAudio - '. implode(', ', $fileIds) , 'debug'); |
| 258 | 261 | $this->emit('\OCA\Music\Utility\Scanner', 'delete', array($fileIds, $userId)); |
@@ -284,6 +287,9 @@ discard block |
||
| 284 | 287 | return $result !== false; // true if anything was removed |
| 285 | 288 | } |
| 286 | 289 | |
| 290 | + /** |
|
| 291 | + * @param string $userId |
|
| 292 | + */ |
|
| 287 | 293 | private function deleteImage($fileIds, $userId=null){ |
| 288 | 294 | $this->logger->log('deleteImage - '. implode(', ', $fileIds) , 'debug'); |
| 289 | 295 | |