public function setValue($value, $process = true) { if ($process == true) { $value = $this->process($value); } XmlHelper::setText($this->xml, $value != null ? $value : ""); }
public function setActive($active) { $xmlOptions = XmlHelper::xpath($this->xml, "/content/options/active"); if ($xmlOptions->item(0) != null) { XmlHelper::setText($xmlOptions->item(0), $active); } else { $nodeActive = $this->xml->createElement("active", $active); $nodeParent = XmlHelper::xpath($this->xml, "/content/options"); $nodeParent->item(0)->appendChild($nodeActive); } }
public function setDataType($type) { $xmlType = XmlHelper::getChildNode($this->xml, "description"); XmlHelper::setText($xmlType->item(0), $type); }