예제 #1
0
 /**
  * Generates the XML child in the given XML root.
  * This function should be implemented by every FormElement.
  * @param \SimpleXMLElement The XML node to add the current element to.
  * @return \SimpleXMLElement The newly created node
  */
 public function generateXML(\SimpleXMLElement $xml)
 {
     $child = parent::generateXML($xml);
     $child->min = $this->min;
     $child->max = $this->max;
     $child->step = $this->step;
     return $child;
 }
예제 #2
0
 /**
  * Generates the XML child in the given XML root.
  * This function should be implemented by every FormElement.
  * @param \SimpleXMLElement The XML node to add the current element to.
  * @return \SimpleXMLElement The newly created node
  */
 public function generateXML(\SimpleXMLElement $xml)
 {
     $child = parent::generateXML($xml);
     $child->multiple = $this->multiple;
     return $child;
 }