Example #1
0
 private function addArray(array $a)
 {
     foreach ($a as $k => $v) {
         if (is_array($v)) {
             $p = new PropertySet(strval($k));
             $p->add($v);
             $this->add($p);
         } else {
             if ($v instanceof AbstractProperty) {
                 $this->add($v);
             } else {
                 $this->add(new Property(strval($k), $v));
             }
         }
     }
 }
Example #2
0
 public function __construct($module)
 {
     parent::__construct($module);
 }