written method to unhide all files in a music dir
This commit is contained in:
parent
2ae3c0ac03
commit
5d3aa68c72
2 changed files with 9 additions and 0 deletions
|
@ -352,6 +352,7 @@ class PreferenceController extends Zend_Controller_Action
|
||||||
$data = array( 'directory' => $dir->getDirectory(),
|
$data = array( 'directory' => $dir->getDirectory(),
|
||||||
'id' => $dir->getId());
|
'id' => $dir->getId());
|
||||||
Application_Model_RabbitMq::SendMessageToMediaMonitor('rescan_watch', $data);
|
Application_Model_RabbitMq::SendMessageToMediaMonitor('rescan_watch', $data);
|
||||||
|
$dir->unhideFiles();
|
||||||
die(); # Get rid of this ugliness later
|
die(); # Get rid of this ugliness later
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -445,4 +445,12 @@ SQL;
|
||||||
return array($mus_dir->getDirectory(), trim($fp));
|
return array($mus_dir->getDirectory(), trim($fp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function unhideFiles()
|
||||||
|
{
|
||||||
|
$files = $this->_dir->getCcFiless();
|
||||||
|
foreach ($files as $file) {
|
||||||
|
$file->setExists(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue