| [ 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 lmb_require('limb/core/src/lmbDecoratorGenerator.class.php'); 10 11 /** 12 * class lmbDecorator. 13 * 14 * @package core 15 * @version $Id$ 16 */ 17 class lmbDecorator 18 { 19 protected $original; 20 21 static function generate($class, $decorator_class = null) 22 { 23 $generator = new lmbDecoratorGenerator(); 24 return $generator->generate($class, $decorator_class); 25 } 26 27 function __construct($original) 28 { 29 $this->original = $original; 30 } 31 32 protected function ___invoke($method, $args = array()) 33 { 34 return call_user_func_array(array($this->original, $method), $args); 35 } 36 } 37 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Dec 5 04:05:07 2008 | Cross-referenced by PHPXref 0.7 |