本文整理匯總了PHP中gallery::scanForRemovedImages方法的典型用法代碼示例。如果您正苦於以下問題:PHP gallery::scanForRemovedImages方法的具體用法?PHP gallery::scanForRemovedImages怎麽用?PHP gallery::scanForRemovedImages使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gallery
的用法示例。
在下文中一共展示了gallery::scanForRemovedImages方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: gallery
////////////////////////////////////////////////////////////////////////////////
$gallery = new gallery();
if (!empty($_POST['rebuild'])) {
$save = false;
if (!empty($_POST['scanfornew'])) {
$gallery->scanForNewImages();
rcms_showAdminMessage(__('Scan for new uploaded images') . '... ' . __('Done'));
$save = true;
}
if (!empty($_POST['cleanupdirs'])) {
$gallery->cleanUpDirectories();
rcms_showAdminMessage(__('Directories cleanup from images not listed in index') . '... ' . __('Done'));
$save = true;
}
if (!empty($_POST['cleanup'])) {
$gallery->scanForRemovedImages();
$gallery->cleanUpIndexes();
rcms_showAdminMessage(__('Indexes cleanup') . '... ' . __('Done'));
$save = true;
}
if ($save) {
$gallery->saveIndexFiles();
}
}
/******************************************************************************
* Interface *
******************************************************************************/
$frm = new InputForm('', 'post', __('Rebuild index'));
$frm->addbreak(__('Indexes management'));
$frm->hidden('rebuild', '1');
$frm->addrow(__('Scan for new uploaded images'), $frm->checkbox('scanfornew', '1', '', 1));