コード例 #1
0
ファイル: InputNumber.class.php プロジェクト: Superbeest/Core
 /**
  * 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
ファイル: InputEmail.class.php プロジェクト: Superbeest/Core
 /**
  * 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;
 }