@@ 603-611 (lines=9) @@ | ||
600 | 'hidden' => false |
|
601 | ); |
|
602 | // set files attributes |
|
603 | if (!empty($this->options['attributes']) && is_array($this->options['attributes'])) { |
|
604 | ||
605 | foreach ($this->options['attributes'] as $a) { |
|
606 | // attributes must contain pattern and at least one rule |
|
607 | if (!empty($a['pattern']) || count($a) > 1) { |
|
608 | $this->attributes[] = $a; |
|
609 | } |
|
610 | } |
|
611 | } |
|
612 | ||
613 | if (!empty($this->options['accessControl']) && is_callable($this->options['accessControl'])) { |
|
614 | $this->access = $this->options['accessControl']; |
|
@@ 775-781 (lines=7) @@ | ||
772 | ||
773 | $this->_checkArchivers(); |
|
774 | // manual control archive types to create |
|
775 | if (!empty($this->options['archiveMimes']) && is_array($this->options['archiveMimes'])) { |
|
776 | foreach ($this->archivers['create'] as $mime => $v) { |
|
777 | if (!in_array($mime, $this->options['archiveMimes'])) { |
|
778 | unset($this->archivers['create'][$mime]); |
|
779 | } |
|
780 | } |
|
781 | } |
|
782 | ||
783 | // manualy add archivers |
|
784 | if (!empty($this->options['archivers']['create']) && is_array($this->options['archivers']['create'])) { |