Пример #1
0
 /**
  * Gets the DOM document of this element
  * @return DOMDocument
  */
 public function toDom()
 {
     $dom = new DOMDocument('1.0', 'utf-8');
     $changeDescription = $dom->createElementNS(Client::SCHEMA_TYPES, $this->name);
     $fieldURIDom = $this->FieldURI->toDom();
     $fieldURIElement = $dom->importNode($fieldURIDom->documentElement, true);
     $changeDescription->appendChild($fieldURIElement);
     $dom->appendChild($changeDescription);
     return $dom;
 }
Пример #2
0
 /**
  * Constructs a new FieldURI element
  * @param string $fieldURI Identifies the dictionary that contains the member to return. This attribute is required.
  * @param string $fieldIndex Identifies the member of the dictionary to return. This attribute is required.
  * @return null
  */
 public function __construct($fieldURI, $fieldIndex)
 {
     parent::__construct(self::NAME, $fieldURI);
     $this->FieldIndex = $fieldIndex;
 }
Пример #3
0
 /**
  * Constructs a new FieldURI element
  * @param string $fieldURI
  * @return null
  */
 public function __construct($fieldURI)
 {
     parent::__construct(self::NAME, $fieldURI);
 }