protected static function parseResourceName($resource_name, $default_resource, &$name, &$type)
    {
        $parts = explode(':', $resource_name, 2);
        if (!isset($parts[1]) || !isset($parts[0][1])) {
            // no resource given, use default
            // or single character before the colon is not a resource type, but part of the filepath
            $type = $default_resource;
            $name = $resource_name;
        } else {
            $type = $parts[0];
            $name = $parts[1];
        }
    }
protected static function parseResourceName($resource_name, $default_resource, &$name, &$type)
    {
        $parts = explode(':', $resource_name, 2);
        if (!isset($parts[1]) || !isset($parts[0][1])) {
            // no resource given, use default
            // or single character before the colon is not a resource type, but part of the filepath
            $type = $default_resource;
            $name = $resource_name;
        } else {
            $type = $parts[0];
            $name = $parts[1];
        }
    }
protected static function parseResourceName ( $ resource_name , $ default_resource , & $ name , & $ type ) { $ parts = explode ( ':' , $ resource_name , 2 ) ; if ( ! isset ( $ parts [ 1 ] ) || ! isset ( $ parts [ 0 ] [ 1 ] ) ) { // no resource given, use default // or single character before the colon is not a resource type, but part of the filepath $ type = $ default_resource ; $ name = $ resource_name ; } else { $ type = $ parts [ 0 ] ; $ name = $ parts [ 1 ] ; } }
extract resource_type and resource_name from template_resource and config_resource

@note "C:/foo.tpl" was forced to file resource up till Smarty 3.1.3 (including).
@param  string $resource_name    template_resource or config_resource to parse
@param  string $default_resource the default resource_type defined in $smarty
@param  string &$name            the parsed resource name
@param  string &$type            the parsed resource type
@return void
extract resource_type and resource_name from template_resource and config_resource