src/Loader/ElFinderLoader.php
public function encode($path)
    {
        $aPathEncoded = array();

        $volumes = $this->bridge->getVolumes();

        foreach ($volumes as $hashId => $volume) {
            $aPathEncoded[$hashId] = $volume->getPath($path);
        }

        if (1 == count($aPathEncoded)) {
            return array_values($aPathEncoded)[0];
        } elseif (count($aPathEncoded) > 1) {
            return $aPathEncoded;
        } else {
            return false;
        }
    }
public function encode($path)
    {
        $aPathEncoded = array();

        $volumes = $this->bridge->getVolumes();

        foreach ($volumes as $hashId => $volume) {
            $aPathEncoded[$hashId] = $volume->getPath($path);
        }

        if (1 == count($aPathEncoded)) {
            return array_values($aPathEncoded)[0];
        } elseif (count($aPathEncoded) > 1) {
            return $aPathEncoded;
        } else {
            return false;
        }
    }
public function encode ( $ path ) { $ aPathEncoded = array ( ) ; $ volumes = $ this -> bridge -> getVolumes ( ) ; foreach ( $ volumes as $ hashId => $ volume ) { $ aPathEncoded [ $ hashId ] = $ volume -> getPath ( $ path ) ; } if ( 1 == count ( $ aPathEncoded ) ) { return array_values ( $ aPathEncoded ) [ 0 ] ; } elseif ( count ( $ aPathEncoded ) > 1 ) { return $ aPathEncoded ; } else { return false ; } }
Encode path into hash.

@param string $path

@return mixed
Encode path into hash .