elFinder\elFinderVolumeDriver::closest PHP Method

closest() public method

Return file/dir hash or first founded child hash with required attr == $val
Author: Dmitry (dio) Levashov
public closest ( string $hash, string $attr, boolean $val ) : string | false
$hash string file hash
$attr string attribute name
$val boolean attribute value
return string | false
    public function closest($hash, $attr, $val)
    {
        return ($path = $this->closestByAttr($this->decode($hash), $attr, $val)) ? $this->encode($path) : false;
    }