CakeFest 2024: The Official CakePHP Conference

DOMElement::setIdAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::setIdAttributeDeclara el atributo especificado por su nombre como de tipo ID

Descripción

public DOMElement::setIdAttribute(string $qualifiedName, bool $isId): void

Declara el atributo qualifiedName como de tipo ID.

Parámetros

qualifiedName

El nombre del atributo.

isId

Establecer a true si se quiere que qualifiedName sea de tipo ID, false si no.

Valores devueltos

No devuelve ningún valor.

Errores/Excepciones

DOM_NO_MODIFICATION_ALLOWED_ERR

Lanzado si el nodo es de sólo lectura.

DOM_NOT_FOUND

Lanzado si qualifiedName no es un atributo de este elemento.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top