Example #1
0
 public function __construct($item, $overlay = null, $underlay = null)
 {
     parent::__construct($item);
     // Build up global property providers array only once per request
     if (self::$globalProperties === null) {
         self::$globalProperties = array();
         // Get all the exposed variables from all classes that implement the TemplateGlobalProvider interface
         $this->createCallableArray(self::$globalProperties, "TemplateGlobalProvider", "get_template_global_variables");
     }
     // Build up iterator property providers array only once per request
     if (self::$iteratorProperties === null) {
         self::$iteratorProperties = array();
         // Get all the exposed variables from all classes that implement the TemplateIteratorProvider interface
         // //call non-statically
         $this->createCallableArray(self::$iteratorProperties, "TemplateIteratorProvider", "get_template_iterator_variables", true);
     }
     $this->overlay = $overlay ? $overlay : array();
     $this->underlay = $underlay ? $underlay : array();
 }
Example #2
0
 function __construct($item, $extras = null)
 {
     parent::__construct($item);
     $this->extras = $extras;
 }