elFinder::getStaticVar PHP Метод

getStaticVar() публичный статический Метод

Return elFinder static variable
public static getStaticVar ( $key ) : mixed | null
$key
Результат mixed | null
    public static function getStaticVar($key)
    {
        return isset(elFinder::${$key}) ? elFinder::${$key} : null;
    }

Usage Example

Пример #1
0
 protected function configure()
 {
     parent::configure();
     $this->tmpPath = '';
     if (!empty($this->options['tmpPath'])) {
         if ((is_dir($this->options['tmpPath']) || @mkdir($this->options['tmpPath'])) && is_writable($this->options['tmpPath'])) {
             $this->tmpPath = $this->options['tmpPath'];
         }
     }
     if (!$this->tmpPath && ($tmp = elFinder::getStaticVar('commonTempPath'))) {
         $this->tmpPath = $tmp;
     }
     $this->mimeDetect = 'internal';
 }
All Usage Examples Of elFinder::getStaticVar