| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 10 /** 11 * class lmbFullPageCacheRuleset. 12 * 13 * @package web_cache 14 * @version $Id: lmbFullPageCacheRuleset.class.php 5945 2007-06-06 08:31:43Z pachanga $ 15 */ 16 class lmbFullPageCacheRuleset 17 { 18 protected $rules = array(); 19 protected $type = true; 20 21 function __construct($type = true) 22 { 23 $this->type = $type; 24 } 25 26 function setType($type) 27 { 28 return $this->type = $type; 29 } 30 31 function isAllow() 32 { 33 return $this->type == true; 34 } 35 36 function isDeny() 37 { 38 return $this->type == false; 39 } 40 41 function addRule($rule) 42 { 43 $this->rules[] = $rule; 44 } 45 46 function isSatisfiedBy($request) 47 { 48 foreach($this->rules as $rule) 49 { 50 if(!$rule->isSatisfiedBy($request)) 51 return false; 52 } 53 54 return true; 55 } 56 } 57 58 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Aug 29 04:49:26 2008 | Cross-referenced by PHPXref 0.7 |