Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 215) sorted by relevance

123456789

/PHP-8.4/ext/dom/tests/
H A DDOMNamedNodeMap_string_references.phpt11 $attributes = $dom->documentElement->attributes;
13 var_dump(isset($attributes['href']), $attributes['href']->value);
15 var_dump(isset($attributes['foo']), $attributes['foo']->value);
19 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
23 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
27 var_dump(isset($attributes[$ref]), $attributes[$ref]);
31 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
35 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
39 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
43 var_dump(isset($attributes[$ref]), $attributes[$ref]->value);
H A DDOMElement_hasAttributes_basic.phpt24 echo "\nElement should have attributes:\n";
33 echo "\nElement should have no attributes:\n";
42 Element should have attributes:
48 Element should have no attributes:
H A DDOMNamedNodeMap_count.phpt20 var_dump($root->attributes->length);
21 var_dump($root->attributes->count());
22 var_dump(count($root->attributes));
H A DDOMNamedNodeMap_edge_case_offset.phpt12 var_dump($root->attributes->length);
15 var_dump($root->attributes[-1]);
20 $root->attributes[][] = null;
/PHP-8.4/ext/dom/tests/modern/spec/
H A DNamedNodeMap_getNamedItem.phpt23 $attributes = $body->attributes;
31 var_dump($attributes["FOO:BAR"]->value);
32 var_dump($attributes["foo:BAR"]->value);
33 var_dump($attributes["foo:bar"]->value);
34 var_dump($attributes["XmLnS:foo"]->value);
35 var_dump($attributes["xmlns:foo"]->value);
43 $attributes = $body->attributes;
51 var_dump($attributes["FOO:BAR"]);
52 var_dump($attributes["foo:BAR"]);
53 var_dump($attributes["foo:bar"]->value);
[all …]
H A DNamedNodeMap_dimensions_errors.phpt9 $attributes = $dom->documentElement->attributes;
12 $attributes[][0] = 1;
H A DNamedNodeMap_dimensions.phpt9 $attributes = $dom->documentElement->attributes;
16 …var_dump($attributes[$value] ? $attributes[$value]->nodeName : "N/A", isset($attributes[$value]), …
/PHP-8.4/ext/simplexml/tests/
H A D024.phpt2 SimpleXML: XPath and attributes
38 ["@attributes"]=>
46 ["@attributes"]=>
54 ["@attributes"]=>
65 ["@attributes"]=>
73 ["@attributes"]=>
81 ["@attributes"]=>
92 ["@attributes"]=>
100 ["@attributes"]=>
108 ["@attributes"]=>
[all …]
H A D033.phpt59 ["@attributes"]=>
67 ["@attributes"]=>
76 ["@attributes"]=>
86 ["@attributes"]=>
101 ["@attributes"]=>
109 ["@attributes"]=>
118 ["@attributes"]=>
128 ["@attributes"]=>
H A Dbug69169.phpt23 [@attributes] => Array
32 [@attributes] => Array
39 [@attributes] => Array
50 [@attributes] => Array
57 [@attributes] => Array
H A Dbug67116.phpt43 [@attributes] => Array
56 [@attributes] => Array
71 [@attributes] => Array
80 [@attributes] => Array
H A Dprofile10.phpt2 SimpleXML [profile]: Accessing two attributes with the same name, but different namespaces
14 $rsattr = $root->child->attributes('reserved-ns');
15 $spattr = $root->child->attributes('special-ns');
H A Dprofile13.phpt43 ["@attributes"]=>
50 ["@attributes"]=>
59 ["@attributes"]=>
66 ["@attributes"]=>
H A Dprofile12.phpt43 ["@attributes"]=>
50 ["@attributes"]=>
59 ["@attributes"]=>
66 ["@attributes"]=>
H A D000.phpt44 ["@attributes"]=>
55 ["@attributes"]=>
79 ["@attributes"]=>
91 ["@attributes"]=>
114 ["@attributes"]=>
126 ["@attributes"]=>
149 ["@attributes"]=>
189 ["@attributes"]=>
/PHP-8.4/Zend/tests/traits/
H A Dbug60717.phpt11 function attributes(array $attributes = null);
12 function textArea(?array $attributes, $value);
22 function textArea(?array $attributes, $value) {}
23 abstract function attributes(array $attributes = null);
29 function attributes(array $attributes = null) { }
73 Deprecated: HTML\Helper::attributes(): Implicitly marking parameter $attributes as nullable is depr…
75 Deprecated: HTML\TextArea::attributes(): Implicitly marking parameter $attributes as nullable is de…
77 Deprecated: HTML\HTMLAttributes::attributes(): Implicitly marking parameter $attributes as nullable…
/PHP-8.4/ext/dom/tests/compareDocumentPosition/
H A Dattribute_child_order.phpt29 // See note about attributes vs children positions: attributes precede children
32 var_dump($outer->attributes[0]->compareDocumentPosition($before) === DOMNode::DOCUMENT_POSITION_PRE…
33 var_dump($before->compareDocumentPosition($outer->attributes[0]) === DOMNode::DOCUMENT_POSITION_FOL…
36 var_dump($outer->attributes[0]->compareDocumentPosition($foo) === DOMNode::DOCUMENT_POSITION_FOLLOW…
37 var_dump($foo->compareDocumentPosition($outer->attributes[0]) === DOMNode::DOCUMENT_POSITION_PRECED…
40 var_dump($outer->attributes[0]->compareDocumentPosition($bar) === DOMNode::DOCUMENT_POSITION_FOLLOW…
41 var_dump($bar->compareDocumentPosition($outer->attributes[0]) === DOMNode::DOCUMENT_POSITION_PRECED…
/PHP-8.4/ext/ldap/tests/
H A Dldap_explode_dn.phpt8 /* Explode with attributes */
11 /* Explode with attributes */
14 /* Explode without attributes */
17 /* Explode without attributes */
20 /* Explode with attributes and < > characters */
23 /* Explode without attributes and < > characters */
26 /* Bad DN value with attributes */
29 /* Bad DN value without attributes */
/PHP-8.4/Zend/
H A Dzend_attributes.h73 ZEND_API zend_attribute *zend_get_attribute(HashTable *attributes, zend_string *lcname);
74 ZEND_API zend_attribute *zend_get_attribute_str(HashTable *attributes, const char *str, size_t len);
76 ZEND_API zend_attribute *zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, u…
77 ZEND_API zend_attribute *zend_get_parameter_attribute_str(HashTable *attributes, const char *str, s…
83 ZEND_API bool zend_is_attribute_repeated(HashTable *attributes, zend_attribute *attr);
90 HashTable **attributes, zend_string *name, uint32_t argc,
100 return zend_add_attribute(&ce->attributes, name, argc, flags, 0, 0); in END_EXTERN_C()
106 return zend_add_attribute(&func->common.attributes, name, argc, flags, 0, 0); in zend_add_function_attribute()
112 return zend_add_attribute(&func->common.attributes, name, argc, flags, offset + 1, 0); in zend_add_parameter_attribute()
118 return zend_add_attribute(&info->attributes, name, argc, flags, 0, 0); in zend_add_property_attribute()
[all …]
H A Dzend_attributes.c198 if (attributes) { in get_attribute()
201 ZEND_HASH_PACKED_FOREACH_PTR(attributes, attr) { in get_attribute()
213 if (attributes) { in get_attribute_str()
216 ZEND_HASH_PACKED_FOREACH_PTR(attributes, attr) { in get_attribute_str()
228 return get_attribute(attributes, lcname, 0); in zend_get_attribute()
233 return get_attribute_str(attributes, str, len, 0); in zend_get_attribute_str()
238 return get_attribute(attributes, lcname, offset + 1); in zend_get_parameter_attribute()
381 ZEND_HASH_PACKED_FOREACH_PTR(attributes, other) { in zend_is_attribute_repeated()
417 if (*attributes == NULL) { in zend_add_attribute()
442 zend_hash_next_index_insert_ptr(*attributes, attr); in zend_add_attribute()
[all …]
/PHP-8.4/Zend/tests/attributes/
H A D002_rfcexample.phpt27 $attributes = $reflectionClass->getAttributes();
29 var_dump($attributes[0]->getName());
30 var_dump($attributes[0]->getArguments());
31 var_dump($attributes[0]->newInstance());
H A D007_self_reflect_attribute.phpt2 Attributes: attributes on Attribute return itself
7 $attributes = $reflection->getAttributes();
9 foreach ($attributes as $attribute) {
/PHP-8.4/ext/opcache/tests/opt/
H A Dblock_pass_002.phpt11 function foo($key, $value, array $attributes) {
13 ? [$key, array_merge($value, $attributes)]
14 : [$value, $attributes];
/PHP-8.4/ext/dom/tests/gh11830/
H A Dattribute_variation.phpt16 $doc->documentElement->firstElementChild->prepend($doc->documentElement->attributes[0]);
22 $doc->documentElement->firstElementChild->append($doc->documentElement->attributes[0]);
28 $doc->documentElement->firstElementChild->before($doc->documentElement->attributes[0]);
34 $doc->documentElement->firstElementChild->after($doc->documentElement->attributes[0]);
40 $doc->documentElement->firstElementChild->replaceWith($doc->documentElement->attributes[0]);
/PHP-8.4/ext/dom/tests/modern/extensions/
H A Dattribute_renaming_conflict.phpt21 $root->attributes[0]->rename(NULL, 'c');
26 $root->attributes[0]->rename(NULL, 'c');
31 $root->attributes[1]->rename(NULL, 'a');
36 $root->attributes[1]->rename('urn:a', 'foo');
41 $root->attributes[3]->rename('', 'a');
46 $root->firstElementChild->attributes[0]->rename(NULL, 'hello');
51 $root->firstElementChild->attributes[1]->rename(NULL, 'my-attr');

Completed in 26 milliseconds

123456789