Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/php-src/ext/dom/tests/
H A Dgh10234.phpt9 $attribute = $document->documentElement->getAttributeNode('attribute');
14 var_dump($attribute->textContent);
16 $attribute->textContent = 'new value';
17 var_dump($attribute->textContent);
20 $attribute->textContent = 'hello & world';
21 var_dump($attribute->textContent);
24 $attribute->textContent = '<b>hi</b>';
25 var_dump($attribute->textContent);
29 var_dump($attribute->textContent);
33 var_dump($attribute->textContent);
[all …]
H A Dbug80332_2.phpt20 …echo "list[$key_formatted] id attribute: ", $list[$key] ? $list[$key]->getAttribute('id') : '/', "…
38 list[0] id attribute: 1
39 list[false] id attribute: 1
40 list[true] id attribute: 2
41 list[null] id attribute: 1
42 list['0'] id attribute: 1
43 list['0.5'] id attribute: 1
44 list['1'] id attribute: 2
45 list['attr2'] id attribute: /
46 list['hi'] id attribute: /
[all …]
H A DsetAttributeNodeNS_same_uri_different_prefix.phpt8 // This means that when appending a new attribute the old namespace declaration is reused, hence th…
14 $attribute = $doc->createAttributeNS('http://php.net/ns1', 'foo:hello');
15 $attribute->nodeValue = '1';
16 var_dump($doc->documentElement->setAttributeNodeNS($attribute)?->nodeValue);
18 $attribute = $doc->createAttributeNS('http://php.net/ns1', 'bar:hello');
19 $attribute->nodeValue = '2';
20 var_dump($doc->documentElement->setAttributeNodeNS($attribute)?->nodeValue);
22 $attribute = $doc->createAttributeNS('http://php.net/ns1', 'hello');
23 $attribute->nodeValue = '3';
24 var_dump($doc->documentElement->setAttributeNodeNS($attribute)?->nodeValue);
H A Dxpath_domnamespacenode_advanced.phpt20 foreach ($xpath->query($query) as $attribute) {
21 echo $attribute->nodeName . ' = ' . $attribute->nodeValue . PHP_EOL;
22 var_dump($attribute->parentNode->tagName);
27 foreach ($xpath->query($query) as $attribute) {
28 echo "Before: ", $attribute->parentNode->tagName, "\n";
31 $attribute->parentNode->remove();
36 echo "After: ", $attribute->parentNode->tagName, "\n";
H A Dclone_attribute_namespace_01.phpt2 Cloning an attribute should retain its namespace 01
22 echo "--- Re-adding a namespaced attribute ---\n";
30 echo "--- Re-adding a namespaced attribute, with the namespace deleted (setAttributeNodeNs variatio…
44 echo "--- Re-adding a namespaced attribute, with the namespace deleted (setAttributeNode variation)…
48 echo "--- Re-adding a namespaced attribute, with the namespace deleted (appendChild variation) ---\…
62 --- Re-adding a namespaced attribute ---
67 --- Re-adding a namespaced attribute, with the namespace deleted (setAttributeNodeNs variation) ---
72 --- Re-adding a namespaced attribute, with the namespace deleted (setAttributeNode variation) ---
77 --- Re-adding a namespaced attribute, with the namespace deleted (appendChild variation) ---
/php-src/ext/zend_test/tests/
H A Dattribute_arguments.phpt10 var_dump($attribute->getArguments());
11 var_dump($attribute->newInstance());
15 var_dump($attribute->getArguments());
16 var_dump($attribute->newInstance());
20 var_dump($attribute->getArguments());
21 var_dump($attribute->newInstance());
25 var_dump($attribute->getArguments());
26 var_dump($attribute->newInstance());
30 var_dump($attribute->getArguments());
31 var_dump($attribute->newInstance());
[all …]
H A Dattribute-named-parameter.phpt9 $attribute = $reflection->getAttributes()[0];
10 var_dump($attribute->getArguments());
11 var_dump($attribute->newInstance());
/php-src/ext/dom/tests/modern/extensions/
H A Dattribute_renaming_conflict.phpt2 Renaming an attribute node to a name that already exists
10 <!ELEMENT implied-attribute ANY>
11 <!ATTLIST implied-attribute hello CDATA #FIXED "world">
14 <implied-attribute my-attr="x"/>
15 <implied-attribute my-attr="x"/>
61 An attribute with the given name in the given namespace already exists
62 An attribute with the given name in the given namespace already exists
69 <!ELEMENT implied-attribute ANY>
70 <!ATTLIST implied-attribute hello CDATA #FIXED "world">
73 <implied-attribute my-attr="x" hello="world"/>
[all …]
/php-src/ext/intl/collator/
H A Dcollator_attr.c29 zend_long attribute, value; in PHP_FUNCTION() local
35 &object, Collator_ce_ptr, &attribute ) == FAILURE ) in PHP_FUNCTION()
43 value = ucol_getAttribute( co->ucoll, attribute, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
53 zend_long attribute, value; in PHP_FUNCTION() local
59 &object, Collator_ce_ptr, &attribute, &value ) == FAILURE) in PHP_FUNCTION()
68 ucol_setAttribute( co->ucoll, attribute, value, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
/php-src/ext/dom/tests/modern/spec/
H A DElement_setAttributeNode_adoption.phpt14 $attr = $dom2->createAttribute("my-attribute");
27 $attr2 = $dom2->createAttributeNS("urn:a", "a:my-attribute");
32 $attr3 = $dom2->createAttributeNS("urn:b", "a:my-attribute");
50 string(12) "my-attribute"
53 string(12) "my-attribute"
55 <container my-attribute="1" a:my-attribute="2" a:my-attribute="3"></container>
H A DElement_setAttributeNode.phpt13 $attribute1 = $dom1->createAttribute("my-attribute");
17 $attribute2 = $dom1->createAttribute("my-attribute");
26 $attribute4 = $dom1->createAttributeNS("urn:a", "my-attribute");
30 $attribute5 = $dom1->createAttributeNS("urn:b", "my-attribute");
48 <container my-attribute="2" my-ATTRIBUTE="3" my-attribute="4" my-attribute="5"></container>
/php-src/ext/tidy/tests/
H A D012.phpt53 ["attribute"]=>
74 ["attribute"]=>
98 ["attribute"]=>
121 ["attribute"]=>
146 ["attribute"]=>
277 ["attribute"]=>
320 ["attribute"]=>
340 ["attribute"]=>
426 ["attribute"]=>
446 ["attribute"]=>
[all …]
H A D010.phpt36 ["attribute"]=>
62 ["attribute"]=>
85 ["attribute"]=>
131 ["attribute"]=>
162 ["attribute"]=>
193 ["attribute"]=>
216 ["attribute"]=>
237 ["attribute"]=>
262 ["attribute"]=>
292 ["attribute"]=>
[all …]
/php-src/ext/dom/tests/compareDocumentPosition/
H A Dattribute_child_order.phpt2 compareDocumentPosition: attribute vs child order
31 echo "--- outer attribute vs before ---\n";
35 echo "--- outer attribute vs foo ---\n";
39 echo "--- outer attribute vs bar ---\n";
45 --- outer attribute vs before ---
48 --- outer attribute vs foo ---
51 --- outer attribute vs bar ---
H A Dcontains_attribute_direct_descendent.phpt2 compareDocumentPosition: contains attribute as a direct descendent
15 $attribute = $container->attributes[0];
17 var_dump($container->compareDocumentPosition($attribute) === (DOMNode::DOCUMENT_POSITION_FOLLOWING …
18 var_dump($attribute->compareDocumentPosition($container) === (DOMNode::DOCUMENT_POSITION_PRECEDING …
H A Dcontains_attribute_freestanding.phpt2 compareDocumentPosition: contains attribute for a freestanding element
11 $attribute = $foo->attributes[0];
15 var_dump($foo->compareDocumentPosition($attribute) === (DOMNode::DOCUMENT_POSITION_FOLLOWING | DOMN…
16 var_dump($attribute->compareDocumentPosition($foo) === (DOMNode::DOCUMENT_POSITION_PRECEDING | DOMN…
H A Dcontains_attribute_longer_descendent.phpt2 compareDocumentPosition: contains attribute as a descendent in a longer path
20 $attribute = $p->attributes[0];
22 var_dump($container->compareDocumentPosition($attribute) === (DOMNode::DOCUMENT_POSITION_FOLLOWING …
23 var_dump($attribute->compareDocumentPosition($container) === (DOMNode::DOCUMENT_POSITION_PRECEDING …
/php-src/Zend/tests/attributes/
H A D007_self_reflect_attribute.phpt9 foreach ($attributes as $attribute) {
10 var_dump($attribute->getName());
11 var_dump($attribute->getArguments());
13 $a = $attribute->newInstance();
/php-src/ext/intl/formatter/
H A Dformatter_attr.c28 zend_long attribute, value; in PHP_FUNCTION() local
33 &object, NumberFormatter_ce_ptr, &attribute ) == FAILURE ) in PHP_FUNCTION()
41 switch(attribute) { in PHP_FUNCTION()
61 value = unum_getAttribute(FORMATTER_OBJECT(nfo), attribute); in PHP_FUNCTION()
90 zend_long attribute; in PHP_FUNCTION() local
99 &object, NumberFormatter_ce_ptr, &attribute ) == FAILURE ) in PHP_FUNCTION()
127 zend_long attribute; in PHP_FUNCTION() local
133 &object, NumberFormatter_ce_ptr, &attribute, &value ) == FAILURE) in PHP_FUNCTION()
141 switch(attribute) { in PHP_FUNCTION()
182 zend_long attribute; in PHP_FUNCTION() local
[all …]
/php-src/ext/simplexml/tests/
H A Dprofile07.phpt2 SimpleXML [profile]: Accessing an aliased namespaced attribute
10 <child reserved:attribute="Sample" />
17 echo $rsattr['attribute'];
18 echo $myattr['attribute'];
H A Dprofile10.phpt10 <child reserved:attribute="Sample" special:attribute="Test" />
17 echo $rsattr['attribute'];
19 echo $spattr['attribute'];
H A Dprofile03.phpt2 SimpleXML [profile]: Accessing an attribute
9 <child attribute="Sample" />
13 echo $root->child['attribute'];
H A Dprofile08.phpt2 SimpleXML [profile]: Accessing a namespaced attribute without a namespace
10 <child reserved:attribute="Sample" />
14 echo $root->child['attribute'];
H A Dprofile06.phpt2 SimpleXML [profile]: Accessing a namespaced attribute
10 <child reserved:attribute="Sample" />
15 echo $attr['attribute'];
/php-src/ext/reflection/tests/
H A DReflectionAttribute_constructor_001.phpt14 $attribute = $rm->getAttributes()[0];
16 $rm = new ReflectionMethod($attribute, "__construct");
19 var_dump($rm->invoke($attribute, 0, 1, 2));

Completed in 17 milliseconds

12345678910>>...13