public function pathToId($path)
    {
        $extension = pathinfo($path, PATHINFO_EXTENSION);

        return $extension
            ? substr($path, 0, - (strlen($extension) + 1))
            : $path;
    }
public function pathToId($path)
    {
        $extension = pathinfo($path, PATHINFO_EXTENSION);

        return $extension
            ? substr($path, 0, - (strlen($extension) + 1))
            : $path;
    }
public function pathToId ( $ path ) { $ extension = pathinfo ( $ path , PATHINFO_EXTENSION ) ; return $ extension ? substr ( $ path , 0 , - ( strlen ( $ extension ) + 1 ) ) : $ path ; }
Converts path to public Id

@param string $path
@return string
Converts path to public Id