Please take care on debugging DOMAttr related code. This will cause an E_WARNING that retrieving schemaTypeInfo attribute is not implemented yet. An IDE like Eclipse will inspect the object and its member elements. In conjunction with registered error handlers, which will translate the E_WARNING into Exception your debugging session will end unexpectedly. This has caused me some trouble while debugging my PHPUnit test case in eclipse using "Makegood" plugin.
A possible workarround is to deactivate the error handling during debugging using error_reporting(0). Remove the statement after finishing your debugging session.
Notable ticket in Bugtracker: https://bugs.php.net/bug.php?id=61858
And a xdebug tracker ticket: http://bugs.xdebug.org/view.php?id=910DOMAttr
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
DOMAttr
Референца за `class.domattr.php` со подобрена типографија и навигација.
На DOMAttr class
класата mysqli_driver
Вовед
DOMAttr претставува атрибут во DOMElement object.
Синопсис на класата
bool
$exclusive = false,bool
$withComments = false,?array
$xpath = null,?array
$nsPrefixes = null): string|false
Својства
- name
-
Името на атрибутот.
- ownerElement
-
Елементот кој го содржи атрибутот или
null. - schemaTypeInfo
-
Сè уште не е имплементирано, секогаш е
null. - specified
-
Сè уште не е имплементирано, секогаш е
true. - value
-
Вредноста на атрибутот.
Забелешка:
Забелешка, XML ентитетите се прошируваат при поставување вредност. Така
&карактерот има специјално значење. Поставување value на себе ќе пропадне кога value содржи&. За да се избегне проширување на ентитети, користете DOMElement::setAttribute() instead.
Содржина
- DOMAttr::__construct — Создава нов DOMAttr објект
- DOMAttr::isId — Проверува дали атрибутот е дефиниран ID
Белешки од корисници 2 забелешки
See also the properties from the inherited class DOMNode ( http://php.net/manual/en/class.domnode.php ), eg. namespaceURI, prefix, localName, etc, especially if you have to deal with namespaced attributes