44         $this->
logger = $DIC->logger()->cal();
    66         return new SingleType(ilCopyDefinition::class);
    85         $this->
logger->debug(
'Start checking adherence to maxsize!');
    86         $this->
logger->dump($input);
    87         $definition = $input[0];
    88         $object_ref_ids = $definition->getObjectRefIds();
    92         $size_limit = 
$general->getDownloadLimitinMB();
    93         $size_limit_bytes = $size_limit * 1024 * 1024;
    94         $this->
logger->debug(
'Global limit (max sum of all file-sizes) in file-settings: ' . $size_limit_bytes . 
' bytes');
    98         $this->
logger->debug(
'Calculated sum of all file-sizes: ' . $total_bytes . 
'MB');
   101         $adheres_to_limit->setValue(
true);
   102         if ($total_bytes > $size_limit_bytes) {
   103             $adheres_to_limit->setValue(
false);
   106         $definition->setSumFileSizes($total_bytes);
   107         $definition->setAdheresToLimit($adheres_to_limit);
   120         $tree = $DIC[
'tree'];
   123         foreach ($a_ref_ids as 
$ref_id) {
   132                     $subtree = $tree->getChildsByTypeFilter($ref_id, [
"fold", 
"file"]);
   133                     if (count($subtree) > 0) {
   135                         foreach ($subtree as $child) {
   136                             $child_ref_ids[] = $child[
"ref_id"];
   158         $ilAccess = $DIC[
'ilAccess'];
   160         if (!$ilAccess->checkAccess(
"read", 
"", $ref_id)) {
 
Description of class class. 
 
readonly ilLogger $logger
 
static _lookupFileSize(int $a_id, bool $by_reference=true)
 
static _isInTrash(int $ref_id)
 
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
 
calculateRecursive(array $a_ref_ids, int &$a_file_size)
Calculates the number and size of the files being downloaded recursively. 
 
run(array $input, Observer $observer)
 
static _lookupType(int $id, bool $reference=false)
 
validateAccess(int $ref_id)
Check file access.