コード例 #1
0
 /**
  * get single Variables instance from a DOMElement
  *
  * @param DOMElement $node
  * @return Variables
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new Variables();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }