CC-1862 playlist builder playlist fadein/out

This commit is contained in:
Naomi 2011-02-08 16:10:48 -05:00
parent 424c6f0193
commit bdad3b34e0
5 changed files with 165 additions and 40 deletions

View file

@ -355,6 +355,18 @@ class Playlist {
return $res + 1;
}
public function getSize() {
$res = CcPlaylistQuery::create()
->findPK($this->id)
->computeLastPosition();
if(is_null($res))
return 0;
return $res;
}
/**
* Get the entire playlist as a two dimentional array, sorted in order of play.
* @return array