Beispiel #1
0
 /**
  * playlist_create
  * This create a new playlist and return it
  */
 public static function playlist_create($input)
 {
     $name = $input['name'];
     $type = $input['type'];
     if ($type != 'private') {
         $type = 'public';
     }
     $uid = Playlist::create($name, $type);
     echo XML_Data::playlists(array($uid));
 }