

Public Member Functions | |
| zCache_factory (&$controller, $methodName, $isRegister=false) | |
| __construct (&$controller, $methodName, $isRegister=false) | |
| renderedView ($viewName, $lifeTime=30) | |
| Cache Renderd View. | |
| loadedView ($viewName, $lifeTime=30) | |
| Cache Loaded View. | |
| renderedSharedView ($viewName, $lifeTime=30) | |
| Cache rendered Shared View. | |
| loadedSharedView ($viewName, $lifeTime=30) | |
| Cache Loaded Shared View. | |
| controller ($lifeTime=30) | |
| Cache the Whole Controller (excluding layout). | |
| method ($methodName, $lifeTime=30) | |
| Cache this Method of this Controller Class. | |
| full () | |
| Full Page Cache including Layout. | |
Data Fields | |
| $controller | |
| $methodName | |
| $isReg | |
Definition at line 30 of file usr/lib/module/cache/cache.php.
| zCache_factory::__construct | ( | &$ | controller, | |
| $ | methodName, | |||
| $ | isRegister = false | |||
| ) |
Definition at line 46 of file usr/lib/module/cache/cache.php.
References $controller, $methodName, and controller().
00046 { 00047 $this->controller =& $controller; 00048 $this->methodName = $methodName; 00049 $this->isReg = $isRegister; 00050 }

| zCache_factory::zCache_factory | ( | &$ | controller, | |
| $ | methodName, | |||
| $ | isRegister = false | |||
| ) |
Definition at line 41 of file usr/lib/module/cache/cache.php.
References $controller, $methodName, and controller().
00041 { 00042 $this->controller =& $controller; 00043 $this->methodName = $methodName; 00044 $this->isReg = $isRegister; 00045 }

| zCache_factory::renderedView | ( | $ | viewName, | |
| $ | lifeTime = 30 | |||
| ) |
Cache Renderd View.
| $viewName | string | |
| $lifeTime | int |
Definition at line 58 of file usr/lib/module/cache/cache.php.
References controller().
00058 { 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 }

| zCache_factory::loadedView | ( | $ | viewName, | |
| $ | lifeTime = 30 | |||
| ) |
Cache Loaded View.
| $viewName | string | |
| $lifeTime | int |
Definition at line 69 of file usr/lib/module/cache/cache.php.
References controller().
00069 { 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 }

| zCache_factory::renderedSharedView | ( | $ | viewName, | |
| $ | lifeTime = 30 | |||
| ) |
Cache rendered Shared View.
| $viewName | string | |
| $lifeTime | int |
Definition at line 80 of file usr/lib/module/cache/cache.php.
References controller().
00080 { 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 }

| zCache_factory::loadedSharedView | ( | $ | viewName, | |
| $ | lifeTime = 30 | |||
| ) |
Cache Loaded Shared View.
| $viewName | string | |
| $lifeTime | int |
Definition at line 91 of file usr/lib/module/cache/cache.php.
References controller().
00091 { 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 }

| zCache_factory::controller | ( | $ | lifeTime = 30 |
) |
Cache the Whole Controller (excluding layout).
| $lifeTime | int |
Definition at line 101 of file usr/lib/module/cache/cache.php.
Referenced by __construct(), full(), loadedSharedView(), loadedView(), method(), renderedSharedView(), renderedView(), and zCache_factory().
00101 { 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 }
| zCache_factory::method | ( | $ | methodName, | |
| $ | lifeTime = 30 | |||
| ) |
Cache this Method of this Controller Class.
| $methodName | string | |
| $lifeTime | int |
Definition at line 112 of file usr/lib/module/cache/cache.php.
References $methodName, and controller().
00112 { 00113 $params = ($this->isReg) ? array($this->controller->className.".".$methodName, Z_CACHE_RENDERED_VIEW, $lifeTime) : array($this->controller->className.".".$methodName, Z_CACHE_RENDERED_VIEW); 00114 return call_user_func_array(array($this->controller, $this->methodName), $params); 00115 }

| zCache_factory::full | ( | ) |
Full Page Cache including Layout.
Definition at line 121 of file usr/lib/module/cache/cache.php.
References controller(), and perror().
00121 { 00122 var_dump($this->controller->xyz); 00123 //exit; 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 }

| zCache_factory::$controller |
Definition at line 37 of file usr/lib/module/cache/cache.php.
Referenced by __construct(), and zCache_factory().
| zCache_factory::$methodName |
Definition at line 38 of file usr/lib/module/cache/cache.php.
Referenced by __construct(), method(), and zCache_factory().
| zCache_factory::$isReg |
Definition at line 39 of file usr/lib/module/cache/cache.php.
1.5.6