public function export() { $a = parent::export(); $a['@tag'] = $this->getTagName(); $a['@type'] = $this->type; return $a; }
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; }