You are here

protected function elFinderVolumeDrupal::CheckUserQuota in elFinder file manager 7.3

Same name and namespace in other branches
  1. 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::CheckUserQuota()
  2. 6.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::CheckUserQuota()
  3. 7.2 inc/elfinder.drupalfs.driver.inc \elFinderVolumeDrupal::CheckUserQuota()
4 calls to elFinderVolumeDrupal::CheckUserQuota()
elFinderVolumeDrupal::extract in inc/elfinder.drupalfs.driver.inc
Extract files from archive.
elFinderVolumeDrupal::_archive in inc/elfinder.drupalfs.driver.inc
elFinderVolumeDrupal::_copy in inc/elfinder.drupalfs.driver.inc
Copy file into another file
elFinderVolumeDrupal::_save in inc/elfinder.drupalfs.driver.inc
Create new file and write into it from file pointer. Return new file path or false on error.

File

inc/elfinder.drupalfs.driver.inc, line 290
elFinder driver for Drupal filesystem.

Class

elFinderVolumeDrupal
@file

Code

protected function CheckUserQuota() {
  $space = $this
    ->CalculateUserAllowedSpace();
  if ($space == 0) {
    $this
      ->setError(t('Quota exceeded'));
    return FALSE;
  }
  return TRUE;
}