Formatting output Plese Wait...
zCache_factory Class Reference
[Caching Module]
Detailed Description
This Class is liable for delevaring caches. It is capable to handle full Application Cache, rendered/loaded general/shared View cache or controller cache.
Definition at line 30 of file usr/lib/module/cache/cache.php.
Constructor & Destructor Documentation
zCache_factory::__construct( unknown $controller, unknown $methodName, unknown $isRegister = false
)
Member Function Documentation
zCache_factory::zCache_factory( unknown $controller, unknown $methodName, unknown $isRegister = false
)
zCache_factory::renderedView( string $viewName, int $lifeTime = 30
)
Cache Renderd View.
- Parameters:
-
- Returns:
- boolean
Definition at line 58 of file usr/lib/module/cache/cache.php.
References controller().
Show Source00058 {
00059 $params = ($this->isReg) ? array($viewName, Z_CACHE_RENDERED_VIEW, $lifeTime) : array($viewName, Z_CACHE_RENDERED_VIEW);
00060 return call_user_func_array(array($this->controller, $this->methodName), $params);
00061 }
Top
zCache_factory::loadedView( string $viewName, int $lifeTime = 30
)
Cache Loaded View.
- Parameters:
-
- Returns:
- boolean
Definition at line 69 of file usr/lib/module/cache/cache.php.
References controller().
Show Source00069 {
00070 $params = ($this->isReg) ? array($viewName, Z_CACHE_RENDERED_VIEW, $lifeTime) : array($viewName, Z_CACHE_RENDERED_VIEW);
00071 return call_user_func_array(array($this->controller, $this->methodName), $params);
00072 }
Top
zCache_factory::renderedSharedView( string $viewName, int $lifeTime = 30
)
Cache rendered Shared View.
- Parameters:
-
- Returns:
- boolean
Definition at line 80 of file usr/lib/module/cache/cache.php.
References controller().
Show Source00080 {
00081 $params = ($this->isReg) ? array($viewName, Z_CACHE_RENDERED_VIEW, $lifeTime) : array($viewName, Z_CACHE_RENDERED_VIEW);
00082 return call_user_func_array(array($this->controller, $this->methodName), $params);
00083 }
Top
zCache_factory::loadedSharedView( string $viewName, int $lifeTime = 30
)
Cache Loaded Shared View.
- Parameters:
-
- Returns:
- boolean
Definition at line 91 of file usr/lib/module/cache/cache.php.
References controller().
Show Source00091 {
00092 $params = ($this->isReg) ? array($viewName, Z_CACHE_RENDERED_VIEW, $lifeTime) : array($viewName, Z_CACHE_RENDERED_VIEW);
00093 return call_user_func_array(array($this->controller, $this->methodName), $params);
00094 }
Top
zCache_factory::controller( int $lifeTime = 30
)
Cache the Whole Controller (excluding layout).
- Parameters:
-
- Returns:
- boolean
Definition at line 101 of file usr/lib/module/cache/cache.php.
Referenced by __construct(), full(), loadedSharedView(), loadedView(), method(), renderedSharedView(), renderedView(), and zCache_factory().
Show Source00101 {
00102 $params = ($this->isReg) ? array($this->controller->className.".".$this->controller->methodName, Z_CACHE_RENDERED_VIEW, $lifeTime) : array($this->controller->className.".".$this->controller->methodName, Z_CACHE_RENDERED_VIEW);
00103 return call_user_func_array(array($this->controller, $this->methodName), $params);
00104 }
Top
zCache_factory::method( string $methodName, int $lifeTime = 30
)
Full Page Cache including Layout.
- Returns:
- boolean
Definition at line 121 of file usr/lib/module/cache/cache.php.
References controller(), and perror().
Show Source00121 {
00122 var_dump($this->controller->xyz);
00123
00124 if(!$this->isReg)perror("<code>zigmoyd.cache.fullPage</code><br />Currently you cant do anything other than register with full Page level Cache");
00125 $params = array($this->controller->className.".".$this->controller->methodName, Z_CACHE_FULL);
00126 $ret = call_user_func_array(array($this->controller, $this->methodName), $params);
00127 echo "From zCache_factory::full()\n<br />";
00128 var_dump($this->controller->cacheConfig);
00129 }
Top
Field Documentation
zCache_factory::$controller
zCache_factory::$methodName
The documentation for this class was generated from the following file: