Changeset 475

Show
Ignore:
Timestamp:
04/11/07 19:39:27 (1 year ago)
Author:
mikey
Message:

added getFileResourceForUri()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/stubFactory.php

    r440 r475  
    3838     * return the uris for a resource 
    3939     * 
    40      * @param  string  $fileName  the resource to load 
     40     * @param   string  $fileName  the resource to retrieve the uris for 
     41     * @return  array<string> 
    4142     */ 
    4243    public static function getResourceURIs($fileName) 
     
    5455        return $uris; 
    5556    } 
     57     
     58    /** 
     59     * returns the uri for a resource in the real resource path 
     60     * 
     61     * @param   string  $filename  the resource to retrieve the path for 
     62     * @return  string 
     63     */ 
     64    public static function getFileResourceURI($fileName) 
     65    { 
     66        return self::$resourcePath . $fileName; 
     67    } 
    5668} 
    5769?>