/** * Constructor * Extend options with required fields. * * @return void * @author Dmitry (dio) Levashov * @author Cem (DiscoFever) **/ public function __construct() { parent::__construct(); $opts = ['host' => 'localhost', 'user' => '', 'pass' => '', 'port' => 21, 'mode' => 'passive', 'path' => '/', 'timeout' => 20, 'owner' => true, 'tmbPath' => '', 'tmpPath' => '', 'dirMode' => 0755, 'fileMode' => 0644]; $this->options = array_merge($this->options, $opts); $this->options['mimeDetect'] = 'internal'; }
/** * Constructor * Extend options with required fields. * * @return void * @author Dmitry (dio) Levashov **/ public function __construct() { parent::__construct(); $this->options['alias'] = ''; // alias to replace root dir name $this->options['dirMode'] = 0755; // new dirs mode $this->options['fileMode'] = 0644; // new files mode $this->options['quarantine'] = '.quarantine'; // quarantine folder name - required to check archive (must be hidden) $this->options['maxArcFilesSize'] = 0; // max allowed archive files size (0 - no limit) }