|
@@ 752-760 (lines=9) @@
|
| 749 |
|
'hidden' => false |
| 750 |
|
); |
| 751 |
|
// set files attributes |
| 752 |
|
if (!empty($this->options['attributes']) && is_array($this->options['attributes'])) { |
| 753 |
|
|
| 754 |
|
foreach ($this->options['attributes'] as $a) { |
| 755 |
|
// attributes must contain pattern and at least one rule |
| 756 |
|
if (!empty($a['pattern']) || count($a) > 1) { |
| 757 |
|
$this->attributes[] = $a; |
| 758 |
|
} |
| 759 |
|
} |
| 760 |
|
} |
| 761 |
|
|
| 762 |
|
if (!empty($this->options['accessControl']) && is_callable($this->options['accessControl'])) { |
| 763 |
|
$this->access = $this->options['accessControl']; |
|
@@ 936-942 (lines=7) @@
|
| 933 |
|
|
| 934 |
|
$this->_checkArchivers(); |
| 935 |
|
// manual control archive types to create |
| 936 |
|
if (!empty($this->options['archiveMimes']) && is_array($this->options['archiveMimes'])) { |
| 937 |
|
foreach ($this->archivers['create'] as $mime => $v) { |
| 938 |
|
if (!in_array($mime, $this->options['archiveMimes'])) { |
| 939 |
|
unset($this->archivers['create'][$mime]); |
| 940 |
|
} |
| 941 |
|
} |
| 942 |
|
} |
| 943 |
|
|
| 944 |
|
// manualy add archivers |
| 945 |
|
if (!empty($this->options['archivers']['create']) && is_array($this->options['archivers']['create'])) { |