/** */ public function __get($name) { switch ($name) { case 'path': return $GLOBALS['registry']->get('jsfs', $this->_app) . '/'; case 'url': case 'url_full': return $this->_url($GLOBALS['registry']->get('jsuri', $this->_app) . '/' . $this->_file, $name == 'url_full'); } return parent::__get($name); }
/** */ public function __get($name) { switch ($name) { case 'hash': return hash('md5', $this->_url); case 'modified': return 0; case 'path': return null; case 'url': case 'url_full': return $this->_url; } return parent::__get($name); }
/** */ public function __get($name) { switch ($name) { case 'hash': return hash(PHP_MINOR_VERSION >= 4 ? 'fnv132' : 'sha1', $this->_url); case 'modified': return 0; case 'path': return null; case 'url': case 'url_full': return $this->_url; } return parent::__get($name); }
/** */ public function __get($name) { switch ($name) { case 'path': return $GLOBALS['registry']->get('jsfs', $this->_app) . '/'; case 'uncompressed': if (($pos = strripos($this->file, '.min.js')) !== false) { $cname = get_class(); return new $cname(substr($this->file, 0, $pos) . '.js', $this->app); } break; case 'url': case 'url_full': return $this->_url($GLOBALS['registry']->get('jsuri', $this->_app) . '/' . $this->_file, $name == 'url_full'); } return parent::__get($name); }