00001 <?php 00002 00003 /* 00004 * This file is part of the PEIP package. 00005 * (c) 2010 Timo Michna <timomichna/yahoo.de> 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00021 abstract class PEIP_ABS_Context_Plugin 00022 implements PEIP_INF_Context_Plugin { 00023 00024 protected $context; 00025 00026 protected static $builders = array(); 00027 00028 00034 public function init(PEIP_INF_Context $context){ 00035 $this->context = $context; 00036 foreach(static::$builders as $node=>$method){ 00037 $context->registerNodeBuilder($node, array($this, $method)); 00038 } 00039 } 00040 00041 }