Home
last modified time | relevance | path

Searched refs:attrp (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/dom/
H A Dattr.c82 DOM_PROP_NODE(xmlAttrPtr, attrp, obj); in dom_attr_name_read()
88 ZVAL_STRING(retval, (char *) attrp->name); in dom_attr_name_read()
112 if (attrp->atype == XML_ATTRIBUTE_ID) { in dom_attr_value_will_change()
113 xmlRemoveID(attrp->doc, attrp); in dom_attr_value_will_change()
114 attrp->atype = XML_ATTRIBUTE_ID; in dom_attr_value_will_change()
127 DOM_PROP_NODE(xmlNodePtr, attrp, obj); in dom_attr_value_read()
134 DOM_PROP_NODE(xmlAttrPtr, attrp, obj); in dom_attr_value_write()
136 dom_attr_value_will_change(obj, attrp); in dom_attr_value_write()
142 dom_remove_all_children((xmlNodePtr) attrp); in dom_attr_value_write()
146 xmlAddChild((xmlNodePtr) attrp, node); in dom_attr_value_write()
[all …]
H A Delement.c703 if (attrp->parent != NULL && attrp->parent != nodep) { in dom_element_set_attribute_node_common()
707 if (attrp->doc != NULL && attrp->doc != nodep->doc) { in dom_element_set_attribute_node_common()
711 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in dom_element_set_attribute_node_common()
717 nsp = attrp->ns; in dom_element_set_attribute_node_common()
774 xmlAttr *attrp; in dom_element_remove_attribute_node() local
1130 xmlAttr *attrp; in PHP_METHOD() local
1161 if (attrp && attrp->type != XML_ATTRIBUTE_DECL) { in PHP_METHOD()
1181 xmlAttrPtr attrp; in PHP_METHOD() local
1348 xmlRemoveID(attrp->doc, attrp); in php_set_attribute_id()
1377 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_METHOD()
[all …]
H A Dnamespace_compat.c318 PHP_DOM_EXPORT void php_dom_reconcile_attribute_namespace_after_insertion(xmlAttrPtr attrp) in php_dom_reconcile_attribute_namespace_after_insertion() argument
320 ZEND_ASSERT(attrp != NULL); in php_dom_reconcile_attribute_namespace_after_insertion()
322 if (attrp->ns != NULL) { in php_dom_reconcile_attribute_namespace_after_insertion()
324 xmlNodePtr nodep = attrp->parent; in php_dom_reconcile_attribute_namespace_after_insertion()
325 xmlNsPtr matching_ns = xmlSearchNs(nodep->doc, nodep, attrp->ns->prefix); in php_dom_reconcile_attribute_namespace_after_insertion()
326 if (matching_ns && xmlStrEqual(matching_ns->href, attrp->ns->href)) { in php_dom_reconcile_attribute_namespace_after_insertion()
328 attrp->ns = matching_ns; in php_dom_reconcile_attribute_namespace_after_insertion()
330 if (attrp->ns->prefix != NULL) { in php_dom_reconcile_attribute_namespace_after_insertion()
H A Dnamespace_compat.h55 PHP_DOM_EXPORT void php_dom_reconcile_attribute_namespace_after_insertion(xmlAttrPtr attrp);
H A Dphp_dom.c2261 xmlNodePtr attrp; in php_dom_create_fake_namespace_decl_node_ptr() local
2265 attrp = xmlNewDocNode(nodep->doc, NULL, BAD_CAST original->prefix, original->href); in php_dom_create_fake_namespace_decl_node_ptr()
2267 attrp = xmlNewDocNode(nodep->doc, NULL, BAD_CAST "xmlns", original->href); in php_dom_create_fake_namespace_decl_node_ptr()
2269 attrp->type = XML_NAMESPACE_DECL; in php_dom_create_fake_namespace_decl_node_ptr()
2270 attrp->parent = nodep; in php_dom_create_fake_namespace_decl_node_ptr()
2271 attrp->ns = curns; in php_dom_create_fake_namespace_decl_node_ptr()
2272 return attrp; in php_dom_create_fake_namespace_decl_node_ptr()
2278 xmlNodePtr attrp = php_dom_create_fake_namespace_decl_node_ptr(nodep, original); in php_dom_create_fake_namespace_decl() local
2279 php_dom_create_object(attrp, return_value, parent_intern); in php_dom_create_fake_namespace_decl()
2282 return attrp; in php_dom_create_fake_namespace_decl()
H A Dphp_dom.h181 void dom_attr_value_will_change(dom_object *obj, xmlAttrPtr attrp);
H A Ddocument.c1048 const xmlAttr *attrp = xmlGetID(docp, BAD_CAST idname); in PHP_METHOD() local
1049 if (attrp && attrp->parent) { in PHP_METHOD()
1050 DOM_RET_OBJ(attrp->parent, intern); in PHP_METHOD()
/php-src/ext/simplexml/
H A Dsimplexml.c1726 xmlAttrPtr attrp = NULL; in PHP_METHOD() local
1767 attrp = xmlHasNsProp(node, localname, (xmlChar *)nsuri); in PHP_METHOD()
1768 if (attrp != NULL && attrp->type != XML_ATTRIBUTE_DECL) { in PHP_METHOD()
1780 attrp = xmlNewNsProp(node, nsptr, localname, (xmlChar *)value); in PHP_METHOD()

Completed in 59 milliseconds