本文整理汇总了PHP中DeleteDirFiles函数的典型用法代码示例。如果您正苦于以下问题:PHP DeleteDirFiles函数的具体用法?PHP DeleteDirFiles怎么用?PHP DeleteDirFiles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了DeleteDirFiles函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DoUninstall
public function DoUninstall() {
global $DB, $DBType;
COption::RemoveOption($this->MODULE_ID);
UnRegisterModule($this->MODULE_ID);
DeleteDirFiles(
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_ichannels/install/admin',
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin'
);
DeleteDirFiles(
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_ichannels/install/js',
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/js/bx_ichannels'
);
UnRegisterModuleDependences(
'bx_ichannels',
'getImporters',
'bx_ichannels',
'CIChannelsRss',
'getImporter'
);
UnRegisterModuleDependences(
'bx_ichannels',
'getRssMappers',
'bx_ichannels',
'CIChannelsRssMapperByLink',
'getRssMapper'
);
$this->errors = $DB->RunSQLBatch($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_ichannels/install/db/' . $DBType . '/uninstall.sql');
}
示例2: UnInstallFiles
function UnInstallFiles()
{
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/anmaslov.stall/install/admin/", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin");
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/anmaslov.stall/install/themes/.default/", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/themes/.default");
DeleteDirFilesEx("/bitrix/themes/.default/start_menu/anmaslov.stall");
return true;
}
示例3: DoUninstall
public function DoUninstall()
{
COption::RemoveOption('imageimport');
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/imageimport/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin');
UnRegisterModule('imageimport');
return true;
}
示例4: uninstallFiles
public function uninstallFiles()
{
DeleteDirFilesEx("/bitrix/components/" . $this->namespaceFolder);
DeleteDirFilesEx("/bitrix/php_interface/include/sale_payment/devtm.begateway");
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/" . $this->MODULE_ID . "/install/admin/", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin");
return true;
}
示例5: DoUninstall
function DoUninstall()
{
//launch upgrade when reinstalled module
\Sprint\Migration\Module::setDbOption('upgrade_version', 'unknown');
DeleteDirFiles(__DIR__ . "/admin", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin");
UnRegisterModule($this->MODULE_ID);
}
示例6: DoUninstall
public function DoUninstall()
{
DeleteDirFiles(__DIR__ . '/images', $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/images/' . $this->MODULE_ID, true, true);
DeleteDirFiles(__DIR__ . '/js', $_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/js/' . $this->MODULE_ID, true, true);
$this->DoDependences(false);
UnRegisterModule($this->MODULE_ID);
}
示例7: UnInstallFiles
function UnInstallFiles()
{
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/translate/install/admin", $_SERVER["DOCUMENT_ROOT"]."/bitrix/admin");
DeleteDirFilesEx("/bitrix/images/translate/");
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/translate/install/themes/.default/", $_SERVER["DOCUMENT_ROOT"]."/bitrix/themes/.default");//css
DeleteDirFilesEx("/bitrix/themes/.default/icons/translate/");//icons
return true;
}
示例8: DoUninstall
function DoUninstall()
{
DeleteDirFilesEx('/bitrix/js/' . self::MODULE_ID);
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/" . self::MODULE_ID . "/install/public_html/themes/.default/", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/themes/.default");
UnRegisterModuleDependences('iblock', 'OnIBlockPropertyBuildList', self::MODULE_ID, 'UserDataColor', 'GetIBlockPropertyDescription');
// UnRegisterModuleDependences('main', 'OnUserTypeBuildList', self::MODULE_ID, 'UserDataColor', 'GetUserTypeDescription');
UnRegisterModule(self::MODULE_ID);
}
示例9: DoUninstall
function DoUninstall()
{
global $APPLICATION;
UnRegisterModule('quetzal.markup');
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/quetzal.markup/install/admin/', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin');
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/quetzal.markup/install/js', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/js');
$APPLICATION->IncludeAdminFile(GetMessage('QTZ_MARKUP_UNINSTALL_TITLE'), $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/quetzal.markup/install/unstep1.php');
}
示例10: UnInstallFiles
function UnInstallFiles()
{
if ($_ENV["COMPUTERNAME"] != 'BX') {
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/scale/install/admin/", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin");
DeleteDirFilesEx("/bitrix/js/scale/");
}
return true;
}
示例11: UnInstallFiles
function UnInstallFiles()
{
if ($_ENV["COMPUTERNAME"] != 'BX') {
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/bizprocdesigner/install/admin", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin");
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/bizprocdesigner/install/tools", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/tools");
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/bizprocdesigner/install/components/bitrix", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/components/bitrix");
}
return true;
}
示例12: DoUninstall
/**
* Удаляем модуль
*/
public function DoUninstall()
{
/* if(!$this->UnInstallDB()){
return;
} */
DeleteDirFiles($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/{$this->MODULE_ID}/install/admin/", $_SERVER["DOCUMENT_ROOT"] . "/bitrix/admin");
DeleteDirFilesEx('/bitrix/components/citfact/citfact.orderclick/');
UnRegisterModule($this->MODULE_ID);
}
示例13: DoUninstall
public function DoUninstall()
{
COption::RemoveOption('bx_moddev');
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_moddev/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin');
// DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/bx_moddev/install/components', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/components');
DeleteDirFilesEx("/bitrix/js/bx_moddev");
UnRegisterModule('bx_moddev');
return true;
}
示例14: DoUninstall
public function DoUninstall()
{
COption::RemoveOption($this->MODULE_ID);
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/ibulkapi/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin');
DeleteDirFilesEx("/bitrix/js/ibulkapi");
UnRegisterModule($this->MODULE_ID);
UnRegisterModuleDependences('ibulkapi', 'ActionsInfo', 'ibulkapi', 'IBulkAPIActionTest', 'GetInfo');
UnRegisterModuleDependences('ibulkapi', 'TemplatesInfo', 'ibulkapi', 'IBulkAPITemplates', 'GetInfo');
return true;
}
示例15: UnInstallFiles
function UnInstallFiles()
{
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/wiki/install/admin', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/admin');
DeleteDirFilesEx('/bitrix/images/wiki/');
DeleteDirFiles($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/wiki/install/themes/.default/', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/themes/.default');
//css
DeleteDirFilesEx('/bitrix/themes/.default/icons/wiki/');
//icons
return true;
}