/** * This function is for when media monitor detects deletion of file * and trying to update airtime side * * @param boolean $p_deleteFile * */ public function deleteByMediaMonitor($deleteFromPlaylist = false) { $filepath = $this->getFilePath(); if ($deleteFromPlaylist) { Application_Model_Playlist::DeleteFileFromAllPlaylists($this->getId()); } // set file_exists flag to false $this->_file->setDbFileExists(false); $this->_file->save(); }