Ejemplo n.º 1
0
 /**
  * It adds parameters of passed object to the current list.
  * Identical params in the current object would be overwritten 
  * by the new.
  *
  * @param TemplateParams object to be merged
  * @return null
  */
 function merge(TemplateParams $t)
 {
     foreach ($t->attr() as $k => $v) {
         if ($v instanceof TemplateParam) {
             $this->properties[$k] = $v;
         }
     }
 }