You are here

protected function elFinderVolumeDrupal::CheckUserQuota in elFinder file manager 6.2

Same name and namespace in other branches
  1. 8.2 src/Controller/elFinderVolumeDrupal.php \elFinderVolumeDrupal::CheckUserQuota()
  2. 7.3 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
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 303

Class

elFinderVolumeDrupal
elFinder driver for Drupal 6 filesystem.

Code

protected function CheckUserQuota() {
  $space = $this
    ->CalculateUserAllowedSpace();

  // drupal_set_message('space='.$space,'warning');
  if ($space == 0) {
    $this
      ->setError(t('Quota exceeded'));
    return false;
  }
  return true;
}