util/PropertyAccessor.php
public static function getResourceIdFromUrl($url)
    {
        $url = rtrim($url, '/');
        $parts = explode('/', $url);
        return (int)array_pop($parts);
    }
public static function getResourceIdFromUrl($url)
    {
        $url = rtrim($url, '/');
        $parts = explode('/', $url);
        return (int)array_pop($parts);
    }
public static function getResourceIdFromUrl ( $ url ) { $ url = rtrim ( $ url , '/' ) ; $ parts = explode ( '/' , $ url ) ; return ( int ) array_pop ( $ parts ) ; }
Gets the resource ID from a given URL
@param string $url
@return int
Gets the resource ID from a given URL