Contao\DC_Folder::isMounted PHP Метод

isMounted() защищенный Метод

Return true if the current folder is mounted
protected isMounted ( string $strFolder ) : boolean
$strFolder string
Результат boolean
    protected function isMounted($strFolder)
    {
        if ($strFolder == '') {
            return false;
        }
        if (empty($this->arrFilemounts)) {
            return true;
        }
        $path = $strFolder;
        while (is_array($this->arrFilemounts) && substr_count($path, '/') > 0) {
            if (in_array($path, $this->arrFilemounts)) {
                return true;
            }
            $path = dirname($path);
        }
        return false;
    }