converting more of playlist.php to propel ORM.

This commit is contained in:
naomiaro 2010-11-08 17:19:01 -05:00
parent d5546c3952
commit 9f79b1bf89
20 changed files with 537 additions and 570 deletions

View file

@ -100,7 +100,7 @@ class uiPlaylist
return FALSE;
}
$res = $this->Base->gb->lockPlaylistForEdit($plid, $this->Base->sessid);
if (PEAR::isError($res)) {
if (PEAR::isError($res) || $res === FALSE) {
if (UI_VERBOSE === TRUE) {
print_r($res);
}
@ -130,7 +130,7 @@ class uiPlaylist
return FALSE;
}
$res = $this->Base->gb->releaseLockedPlaylist($this->activeId, $this->Base->sessid);
if (PEAR::isError($res)) {
if (PEAR::isError($res) || $res === FALSE) {
if (UI_VERBOSE === TRUE) {
print_r($res);
}
@ -438,7 +438,17 @@ class uiPlaylist
$this->Base->_retMsg('Cannot delete this playlist.');
return FALSE;
} // fn deleteActive
public function delete($id)
{
$res = $this->Base->gb->deletePlaylist($id);
if ($res === TRUE) {
return $id;
}
$this->Base->_retMsg('Cannot delete this playlist.');
return FALSE;
}
public function isAvailable($id)
{