Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 225) sorted by relevance

123456789

/php-src/ext/dom/lexbor/lexbor/dom/interfaces/
H A Dattr.c28 lxb_dom_attr_t *attr; in lxb_dom_attr_interface_create() local
31 if (attr == NULL) { in lxb_dom_attr_interface_create()
40 return attr; in lxb_dom_attr_interface_create()
88 if (attr->value == NULL) { in lxb_dom_attr_interface_clone()
114 value = attr->value; in lxb_dom_attr_interface_destroy()
338 if (attr->prev != NULL) { in lxb_dom_attr_remove()
339 attr->prev->next = attr->next; in lxb_dom_attr_remove()
346 attr->next->prev = attr->prev; in lxb_dom_attr_remove()
352 attr->next = NULL; in lxb_dom_attr_remove()
353 attr->prev = NULL; in lxb_dom_attr_remove()
[all …]
H A Delement.c82 attr = attr_next; in lxb_dom_element_interface_destroy()
112 attr = attr->next; in lxb_dom_element_interface_copy()
258 if (attr != NULL) { in lxb_dom_element_set_attribute()
264 return attr; in lxb_dom_element_set_attribute()
268 if (attr == NULL) { in lxb_dom_element_set_attribute()
294 return attr; in lxb_dom_element_set_attribute()
305 if (attr == NULL) { in lxb_dom_element_get_attribute()
434 attr = attr->next; in lxb_dom_element_attr_by_name()
451 attr = attr->next; in lxb_dom_element_attr_by_local_name_data()
468 attr = attr->next; in lxb_dom_element_attr_by_id()
[all …]
H A Dattr.h56 const lxb_dom_attr_t *attr);
59 lxb_dom_attr_interface_destroy(lxb_dom_attr_t *attr);
66 lxb_dom_attr_set_value(lxb_dom_attr_t *attr,
70 lxb_dom_attr_set_value_wo_copy(lxb_dom_attr_t *attr,
74 lxb_dom_attr_set_existing_value(lxb_dom_attr_t *attr,
85 lxb_dom_attr_remove(lxb_dom_attr_t *attr);
109 lxb_dom_attr_local_name(lxb_dom_attr_t *attr, size_t *len) in lxb_dom_attr_local_name() argument
124 lxb_dom_attr_value(lxb_dom_attr_t *attr, size_t *len) in lxb_dom_attr_value() argument
126 if (attr->value == NULL) { in lxb_dom_attr_value()
135 *len = attr->value->length; in lxb_dom_attr_value()
[all …]
/php-src/ext/dom/lexbor/lexbor/html/
H A Dtoken.c40 if (attr == NULL) { in lxb_html_token_attr_append()
48 return attr; in lxb_html_token_attr_append()
56 return attr; in lxb_html_token_attr_append()
71 attr->next->prev = attr->prev; in lxb_html_token_attr_remove()
75 attr->prev->next = attr->next; in lxb_html_token_attr_remove()
78 attr->next = NULL; in lxb_html_token_attr_remove()
79 attr->prev = NULL; in lxb_html_token_attr_remove()
276 attr = attr->next; in lxb_html_token_doctype_parse()
277 if (attr == NULL) { in lxb_html_token_doctype_parse()
314 attr = attr->next; in lxb_html_token_doctype_parse()
[all …]
H A Dtoken_attr.c17 lxb_html_token_attr_clean(lxb_html_token_attr_t *attr) in lxb_html_token_attr_clean() argument
19 memset(attr, 0, sizeof(lxb_html_token_attr_t)); in lxb_html_token_attr_clean()
23 lxb_html_token_attr_destroy(lxb_html_token_attr_t *attr, lexbor_dobject_t *dobj) in lxb_html_token_attr_destroy() argument
25 return lexbor_dobject_free(dobj, attr); in lxb_html_token_attr_destroy()
29 lxb_html_token_attr_name(lxb_html_token_attr_t *attr, size_t *length) in lxb_html_token_attr_name() argument
31 if (attr->name == NULL) { in lxb_html_token_attr_name()
40 *length = attr->name->entry.length; in lxb_html_token_attr_name()
43 return lexbor_hash_entry_str(&attr->name->entry); in lxb_html_token_attr_name()
/php-src/Zend/tests/attributes/
H A D020_userland_attribute_validation.phpt10 $attr = $ref->getAttributes()[0];
11 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated());
12 var_dump(get_class($attr->newInstance()));
17 $attr = $ref->getAttributes()[0];
18 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_CLASS, $attr->isRepeated());
21 $attr->newInstance();
29 $attr = $ref->getAttributes()[0];
30 var_dump($attr->getName(), $attr->getTarget() == Attribute::TARGET_FUNCTION, $attr->isRepeated());
33 $attr->newInstance();
44 $attr = $ref->getAttributes()[0];
[all …]
H A D006_filter.phpt7 $attr = $ref->getAttributes(A3::class);
9 var_dump(count($attr));
12 $attr = $ref->getAttributes(A2::class);
14 var_dump(count($attr), $attr[0]->getName());
17 $attr = $ref->getAttributes(A2::class);
19 var_dump(count($attr), $attr[0]->getName(), $attr[1]->getName());
30 var_dump(count($attr));
35 var_dump(count($attr));
40 var_dump(count($attr));
45 var_dump(count($attr));
[all …]
H A D003_ast_nodes.phpt15 $attr = $ref->getAttributes();
16 var_dump(count($attr));
18 $args = $attr[0]->getArguments();
27 $attr = $ref->getAttributes();
28 var_dump(count($attr));
45 $attr = $ref->getAttributes();
46 var_dump(count($attr));
69 $attr = $ref->getAttributes();
70 var_dump(count($attr));
73 $attr[0]->getArguments();
[all …]
/php-src/Zend/
H A Dzend_attributes.c42 if (attr->argc > 0) { in zend_attribute_attribute_get_flags()
199 zend_attribute *attr; in get_attribute() local
202 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute()
203 return attr; in get_attribute()
214 zend_attribute *attr; in get_attribute_str() local
218 return attr; in get_attribute_str()
382 if (other != attr && other->offset == attr->offset) { in zend_is_attribute_repeated()
430 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute()
431 attr->flags = flags; in zend_add_attribute()
434 attr->argc = argc; in zend_add_attribute()
[all …]
/php-src/ext/dom/tests/modern/spec/
H A Ddump_attr.inc2 function dumpAttr(DOM\Attr $attr) {
3 echo "Attr: {$attr->name}\n";
4 var_dump($attr->prefix);
5 var_dump($attr->nodeName);
6 var_dump($attr->namespaceURI);
10 foreach ($element->attributes as $attr) {
11 dumpAttr($attr);
H A Dattribute_entity_expansion.phpt13 $attr = $elt->getAttributeNode('a');
14 $attr->value = '&';
15 print "$attr->value\n";
18 $attr->removeChild($attr->firstChild);
21 $attr->nodeValue = '&';
22 print "$attr->nodeValue\n";
25 $attr->nodeValue = '&';
26 print "$attr->nodeValue\n";
29 $elt->removeAttributeNode($attr);
34 $attr->value = '<&';
[all …]
H A Dattribute_entity_expansion_legacy.phpt13 $attr = $elt->getAttributeNode('a');
14 $attr->value = '&';
15 print "$attr->value\n";
18 $attr->removeChild($attr->firstChild);
22 @$attr->nodeValue = '&';
23 print "$attr->nodeValue\n";
26 $attr->nodeValue = '&';
27 print "$attr->nodeValue\n";
30 $elt->removeAttributeNode($attr);
35 $attr->value = '<&';
[all …]
H A DDocument_createAttribute.phpt12 $attr = $dom->createAttribute('foo');
13 dumpAttr($attr);
14 $attr = $dom->createAttribute('FoOo');
15 dumpAttr($attr);
20 $attr = $dom->createAttribute('foo');
21 dumpAttr($attr);
22 $attr = $dom->createAttribute('FoOo');
23 dumpAttr($attr);
H A Dimport_of_lone_attribute.phpt12 $attr = $root->getAttributeNodeNS("urn:a", "foo");
15 $attr = $importer->importNode($attr, true);
16 echo $importer->saveXml($attr), "\n";
21 var_dump($attr->prefix, $attr->namespaceURI);
/php-src/ext/pdo_mysql/tests/
H A Dbug_61411.phpt14 $attr = PDO_MYSQL_TEST_ATTR;
15 if (!$attr) {
16 $attr = array();
18 $attr = unserialize($attr);
20 $attr[PDO::ATTR_PERSISTENT] = true;
21 $attr[PDO::ATTR_EMULATE_PREPARES] = false;
22 $attr[PDO::ATTR_STRINGIFY_FETCHES] = true;
24 $db = MySQLPDOTest::factoryWithAttr($attr);
H A Dbug_74376.phpt14 $attr = PDO_MYSQL_TEST_ATTR;
15 $attr = $attr ? unserialize($attr) : [];
16 $attr[PDO::ATTR_PERSISTENT] = true;
17 $attr[PDO::ATTR_EMULATE_PREPARES] = false;
19 $db = MySQLPDOTest::factoryWithAttr($attr);
/php-src/ext/dom/tests/manually_call_constructor/
H A Dattribute.phpt8 $attr = new DOMAttr("attribute", "my value");
9 var_dump($attr->nodeName, $attr->nodeValue);
10 $attr->__construct("newattribute", "my new value");
11 var_dump($attr->nodeName, $attr->nodeValue);
18 $doc->documentElement->setAttributeNode($attr);
21 $attr->__construct("newnewattribute", "my even newer value");
22 $doc->documentElement->setAttributeNode($attr);
/php-src/ext/dom/tests/
H A DreplaceChild_attribute_validation.phpt9 $attr = $dom->createAttribute('attr');
10 $attr->textContent = "test";
13 $attr->replaceChild($dom->createProcessingInstruction('pi'), $attr->firstChild);
19 $root->setAttributeNode($attr);
27 <root attr="test"/>
H A Dregister_node_class.phpt23 $attr = $root->getAttributeNode('a');
24 echo get_class($attr), "\n";
25 print $attr->testit()."\n";
26 unset($attr);
28 $attr = $root->getAttributeNode('a');
29 echo get_class($attr), "\n";
31 print $attr->testit()."\n";
H A Dgh12870.inc9 $attr = $d->createAttributeNS($uri, $qualifiedName);
10 $d->documentElement->setAttributeNodeNS($attr);
12 var_dump($attr->prefix);
14 var_dump($attr->namespaceURI);
16 var_dump($attr->value);
21 … var_dump($attr === $d->documentElement->getAttributeNodeNS($uri, $parts[count($parts) - 1]));
/php-src/ext/zend_test/tests/
H A Dattribute-promotion-parameter-only.phpt16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
18 var_dump(count($attr));
19 var_dump($attr[0]->getName());
20 var_dump($attr[0]->newInstance()->parameter);
22 $attr = $ref->getProperty('param')->getAttributes();
24 var_dump(count($attr));
H A Dattribute-promotion-property-only.phpt16 $attr = $ref->getConstructor()->getParameters()[0]->getAttributes();
18 var_dump(count($attr));
20 $attr = $ref->getProperty('param')->getAttributes();
22 var_dump(count($attr));
23 var_dump($attr[0]->getName());
24 var_dump($attr[0]->newInstance()->parameter);
/php-src/ext/xmlreader/tests/
H A D003-mb.phpt22 $attr = $reader->moveToFirstAttribute();
27 echo "1st attr (num) failed\n";
31 $attr = $reader->moveToNextAttribute();
36 echo "2nd attr (idx) failed\n";
40 $attr = $reader->moveToAttribute('num');
45 echo "attr num failed\n";
48 $attr = $reader->moveToAttribute('idx');
53 echo "attr idx failed\n";
57 $attr = $reader->moveToAttributeNo(0);
62 echo "attr 0 failed\n";
[all …]
H A D003.phpt22 $attr = $reader->moveToFirstAttribute();
27 echo "1st attr (num) failed\n";
31 $attr = $reader->moveToNextAttribute();
36 echo "2nd attr (idx) failed\n";
40 $attr = $reader->moveToAttribute('num');
45 echo "attr num failed\n";
48 $attr = $reader->moveToAttribute('idx');
53 echo "attr idx failed\n";
57 $attr = $reader->moveToAttributeNo(0);
62 echo "attr 0 failed\n";
[all …]
/php-src/Zend/tests/named_params/
H A Dattributes.phpt21 $attr = (new ReflectionClass(Test1::class))->getAttributes()[0];
22 var_dump($attr->getName());
23 var_dump($attr->getArguments());
24 var_dump($attr->newInstance());
26 $attr = (new ReflectionClass(Test2::class))->getAttributes()[0];
28 var_dump($attr->newInstance());

Completed in 25 milliseconds

123456789