本文整理汇总了PHP中FileSystem::DeleteAccountDirs方法的典型用法代码示例。如果您正苦于以下问题:PHP FileSystem::DeleteAccountDirs方法的具体用法?PHP FileSystem::DeleteAccountDirs怎么用?PHP FileSystem::DeleteAccountDirs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileSystem
的用法示例。
在下文中一共展示了FileSystem::DeleteAccountDirs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ClearAccountCompletely
function ClearAccountCompletely()
{
$this->_fs->DeleteAccountDirs();
if ($this->_db->Connect()) {
return $this->_db->TempFilesClearAccountCompletely();
}
return false;
}
示例2: FileSystem
$fs = new FileSystem(INI_DIR . '/mail', $account->Email, $account->Id);
$fs->DeleteAccountDirs();
$fs2 = new FileSystem(INI_DIR . '/temp', $account->Email, $account->Id);
$fs2->DeleteAccountDirs();
unset($fs, $fs2);
GetAccountList($account, -1, $_SESSION[ACCOUNT_ID]);
} else {
printErrorAndExit(PROC_CANT_DEL_ACCT_BY_ID, $xmlRes);
}
} else {
$idAcct = $xmlObj->GetParamValueByName('id_acct');
if ($dbStorage->Connect() && $dbStorage->IsAccountInRing($_SESSION[ACCOUNT_ID], $idAcct) && Account::DeleteFromDb($idAcct)) {
$fs = new FileSystem(INI_DIR . '/mail', $account->Email, $account->Id);
$fs->DeleteAccountDirs();
$fs2 = new FileSystem(INI_DIR . '/temp', $account->Email, $account->Id);
$fs2->DeleteAccountDirs();
unset($fs, $fs2);
GetAccountList($account, -1);
} else {
printErrorAndExit(PROC_CANT_DEL_ACCT_BY_ID, $xmlRes);
}
}
break;
case 'filter':
$dbStorage =& DbStorageCreator::CreateDatabaseStorage($null);
if ($dbStorage->Connect()) {
$acctId = $xmlObj->GetParamValueByName('id_acct');
$editAccount =& Account::LoadFromDb($acctId);
if ($editAccount->IsDemo || $dbStorage->DeleteFilter($xmlObj->GetParamValueByName('id_filter'), $acctId)) {
GetFiltersList($acctId);
} else {
示例3: DeleteAccount
/**
* @param int $id[optional] = null
* @return bool
*/
function DeleteAccount($id = null)
{
$result = true;
$account = null;
if ($id > 0) {
$account =& $this->DbStorage->SelectAccountData($id);
} else {
$account =& $this->_account;
}
if ($account) {
$result &= $this->DbStorage->DeleteAccountData($account->Id, $account->Email);
$fs = new FileSystem(INI_DIR . '/mail', strtolower($account->Email), $account->Id);
$fs->DeleteAccountDirs();
$fs2 = new FileSystem(INI_DIR . '/temp', strtolower($account->Email), $account->Id);
$fs2->DeleteAccountDirs();
unset($fs, $fs2);
} else {
$result = false;
}
return $result;
}