Ejemplo n.º 1
0
 public function export()
 {
     $a = parent::export();
     $a['@tag'] = $this->getTagName();
     $a['@type'] = $this->type;
     return $a;
 }
Ejemplo n.º 2
0
 public function export()
 {
     $o = parent::export();
     // Replace the properties array by a shorter string, or remove it completely if no value is set
     unset($o[MPROPS]);
     unset($o[MPARENT]);
     if ($this->props->value) {
         $o[0] = $this->props->value;
     }
     return $o;
 }