__construct() public method

Constructor.
public __construct ( DOMNode | string $name, string $value = null, array $attributes = [] )
$name DOMNode | string The tag name of the element
$value string The value of the element
$attributes array The attributes of the element
コード例 #1
0
ファイル: FormField.php プロジェクト: Imangazaliev/Tweezers
 /**
  * Constructor.
  *
  * @param \DOMElement $node The node associated with this field
  */
 public function __construct(\DOMElement $node)
 {
     parent::__construct($node);
     $this->name = $node->getAttribute('name');
     $this->initialize();
 }