Loading Please wait...

zCache_factory Class Reference
[Caching Module]

Inheritance diagram for zCache_factory:

Inheritance graph
[legend]
Collaboration diagram for zCache_factory:

Collaboration graph
[legend]

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

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 ( &$  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   }

Here is the call graph for this function:


Member Function Documentation

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   }

Here is the call graph for this function:

zCache_factory::renderedView ( viewName,
lifeTime = 30 
)

Cache Renderd View.

Parameters:
$viewName string
$lifeTime int
Returns:
boolean

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   }

Here is the call graph for this function:

zCache_factory::loadedView ( viewName,
lifeTime = 30 
)

Cache Loaded View.

Parameters:
$viewName string
$lifeTime int
Returns:
boolean

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   }

Here is the call graph for this function:

zCache_factory::renderedSharedView ( viewName,
lifeTime = 30 
)

Cache rendered Shared View.

Parameters:
$viewName string
$lifeTime int
Returns:
boolean

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   }

Here is the call graph for this function:

zCache_factory::loadedSharedView ( viewName,
lifeTime = 30 
)

Cache Loaded Shared View.

Parameters:
$viewName string
$lifeTime int
Returns:
boolean

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   }

Here is the call graph for this function:

zCache_factory::controller ( lifeTime = 30  ) 

Cache the Whole Controller (excluding layout).

Parameters:
$lifeTime int
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().

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.

Parameters:
$methodName string
$lifeTime int
Returns:
boolean

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   }

Here is the call graph for this function:

zCache_factory::full (  ) 

Full Page Cache including Layout.

Returns:
boolean

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   }

Here is the call graph for this function:


Field Documentation

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.


The documentation for this class was generated from the following file:

Generated on Mon Oct 27 23:53:20 2008 for zigmoyd.kdevelop by doxygen 1.5.6