elFinderVolumeFTP::configure PHP Method

configure() protected method

Configure after successfull mount.
Author: Dmitry (dio) Levashov
protected configure ( ) : void
return void
    protected function configure()
    {
        parent::configure();
        if (!empty($this->options['tmpPath'])) {
            if ((is_dir($this->options['tmpPath']) || mkdir($this->options['tmpPath'], 0755, true)) && is_writable($this->options['tmpPath'])) {
                $this->tmp = $this->options['tmpPath'];
            }
        }
        if (!$this->tmp && ($tmp = elFinder::getStaticVar('commonTempPath'))) {
            $this->tmp = $tmp;
        }
        if (!$this->tmp && $this->tmbPath) {
            $this->tmp = $this->tmbPath;
        }
        if (!$this->tmp) {
            $this->disabled[] = 'mkfile';
            $this->disabled[] = 'paste';
            $this->disabled[] = 'duplicate';
            $this->disabled[] = 'upload';
            $this->disabled[] = 'edit';
            $this->disabled[] = 'archive';
            $this->disabled[] = 'extract';
        }
        // echo $this->tmp;
    }

Usage Example

 protected function configure()
 {
     $this->options['tmpPath'] = XOOPS_MODULE_PATH . '/' . _MD_ELFINDER_MYDIRNAME . '/cache';
     parent::configure();
     $this->tmbURL = '';
     $this->tmbPath = '';
     $this->disabled[] = 'pixlr';
 }
All Usage Examples Of elFinderVolumeFTP::configure