downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DOMElement::setIdAttributeNode> <DOMElement::setAttributeNS
Last updated: Fri, 13 Nov 2009

view this page in

DOMElement::setIdAttribute

(PHP 5)

DOMElement::setIdAttributeID 型の属性を名前で宣言する

説明

void DOMElement::setIdAttribute ( string $name , bool $isId )

ID 型となる属性を name で宣言します。

パラメータ

name

属性の名前。

isId

name を ID 型にしたい場合に TRUE、 それ以外の場合に FALSE を設定します。

返り値

値を返しません。

エラー / 例外

DOM_NO_MODIFICATION_ALLOWED_ERR

ノードが読み込み専用である場合に発生します。

DOM_NOT_FOUND

name がこの要素の属性でない場合に発生します。

参考



add a note add a note User Contributed Notes
DOMElement::setIdAttribute
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites