@@ 808-816 (lines=9) @@ | ||
805 | 'hidden' => false |
|
806 | ); |
|
807 | // set files attributes |
|
808 | if (!empty($this->options['attributes']) && is_array($this->options['attributes'])) { |
|
809 | ||
810 | foreach ($this->options['attributes'] as $a) { |
|
811 | // attributes must contain pattern and at least one rule |
|
812 | if (!empty($a['pattern']) || count($a) > 1) { |
|
813 | $this->attributes[] = $a; |
|
814 | } |
|
815 | } |
|
816 | } |
|
817 | ||
818 | if (!empty($this->options['accessControl']) && is_callable($this->options['accessControl'])) { |
|
819 | $this->access = $this->options['accessControl']; |
|
@@ 993-999 (lines=7) @@ | ||
990 | ||
991 | $this->_checkArchivers(); |
|
992 | // manual control archive types to create |
|
993 | if (!empty($this->options['archiveMimes']) && is_array($this->options['archiveMimes'])) { |
|
994 | foreach ($this->archivers['create'] as $mime => $v) { |
|
995 | if (!in_array($mime, $this->options['archiveMimes'])) { |
|
996 | unset($this->archivers['create'][$mime]); |
|
997 | } |
|
998 | } |
|
999 | } |
|
1000 | ||
1001 | // manualy add archivers |
|
1002 | if (!empty($this->options['archivers']['create']) && is_array($this->options['archivers']['create'])) { |