public function templateFactory($resourceName, $resourceId, $cacheTime = null, $cacheId = null, $compileId = null, ITemplate $parentTemplate = null)
    {
        if (isset($this->resources[$resourceName])) {
            /**
             * Interface ITemplate
             *
             * @var ITemplate $class
             */
            $class = $this->resources[$resourceName]['class'];

            return $class::templateFactory($this, $resourceId, $cacheTime, $cacheId, $compileId, $parentTemplate);
        }

        throw new Exception('Unknown resource type : ' . $resourceName);
    }
public function templateFactory($resourceName, $resourceId, $cacheTime = null, $cacheId = null, $compileId = null, ITemplate $parentTemplate = null)
    {
        if (isset($this->resources[$resourceName])) {
            /**
             * Interface ITemplate
             *
             * @var ITemplate $class
             */
            $class = $this->resources[$resourceName]['class'];

            return $class::templateFactory($this, $resourceId, $cacheTime, $cacheId, $compileId, $parentTemplate);
        }

        throw new Exception('Unknown resource type : ' . $resourceName);
    }
public function templateFactory ( $ resourceName , $ resourceId , $ cacheTime = null , $ cacheId = null , $ compileId = null , ITemplate $ parentTemplate = null ) { if ( isset ( $ this -> resources [ $ resourceName ] ) ) { /**
             * Interface ITemplate
             *
             * @var ITemplate $class
             */ $ class = $ this -> resources [ $ resourceName ] [ 'class' ] ; return $ class :: templateFactory ( $ this , $ resourceId , $ cacheTime , $ cacheId , $ compileId , $ parentTemplate ) ; } throw new Exception ( 'Unknown resource type : ' . $ resourceName ) ; }
Fetches a template object of the given resource.

@param string    $resourceName   the resource name (i.e. file, string)
@param string    $resourceId     the resource identifier (i.e. file path)
@param int       $cacheTime      the cache time setting for this resource
@param string    $cacheId        the unique cache identifier
@param string    $compileId      the unique compiler identifier
@param ITemplate $parentTemplate the parent template

@return ITemplate
@throws Exception
Fetches a template object of the given resource .