Пример #1
0
 /**
  * Build an icon URI
  */
 protected function tagIconUri()
 {
     $pieces = func_get_args();
     return TIP::buildUri(TIP_Application::getGlobal('icon_root'), $pieces);
 }
Пример #2
0
 /**
  * Get the relative URI of the cached file, if it exists
  * @param  TIP_Template &$template The template to check
  * @return string|null             URI to the cache or null on errors
  */
 public function getCacheUri(&$template)
 {
     $dirs = array_merge($this->cache_root, $template->getProperty('path'));
     if (!is_readable(implode(DIRECTORY_SEPARATOR, $dirs))) {
         return null;
     }
     return TIP::buildUri($dirs);
 }
Пример #3
0
 /**
  * Build a template fallback (relative) URI
  * @param  string|array $varargs A list of partial URIs
  * @return string                The constructed URI
  */
 public static function buildFallbackUri()
 {
     static $uri = null;
     if (is_null($uri)) {
         $engine =& TIP_Application::getGlobal('engine');
         $uri = TIP::buildUri($engine->getProperty('fallback_root'));
     }
     return TIP::deepImplode(array($uri, func_get_args()), '/');
 }