elFinder\elFinderVolumeDriver::childsByAttr PHP Method

childsByAttr() protected method

Return first found children with required attr == $val
Author: Dmitry (dio) Levashov
protected childsByAttr ( string $path, string $attr, boolean $val ) : string | false
$path string file path
$attr string attribute name
$val boolean attribute value
return string | false
    protected function childsByAttr($path, $attr, $val)
    {
        foreach ($this->_scandir($path) as $p) {
            if (($_p = $this->closestByAttr($p, $attr, $val)) != false) {
                return $_p;
            }
        }
        return false;
    }