Lines Matching refs:attrp

433 	xmlNodePtr nodep, attrp;  in PHP_FUNCTION()  local
450 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
451 if (attrp == NULL) { in PHP_FUNCTION()
455 switch (attrp->type) { in PHP_FUNCTION()
457 if (php_dom_object_get_data(attrp) == NULL) { in PHP_FUNCTION()
458 node_list_unlink(attrp->children); in PHP_FUNCTION()
459 xmlUnlinkNode(attrp); in PHP_FUNCTION()
460 xmlFreeProp((xmlAttrPtr)attrp); in PHP_FUNCTION()
462 xmlUnlinkNode(attrp); in PHP_FUNCTION()
482 xmlNodePtr nodep, attrp; in PHP_FUNCTION() local
495 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
496 if (attrp == NULL) { in PHP_FUNCTION()
500 if (attrp->type == XML_NAMESPACE_DECL) { in PHP_FUNCTION()
504 nsparent = attrp->_private; in PHP_FUNCTION()
505 curns = xmlNewNs(NULL, attrp->name, NULL); in PHP_FUNCTION()
506 if (attrp->children) { in PHP_FUNCTION()
507 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_FUNCTION()
509 if (attrp->children) { in PHP_FUNCTION()
510 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name); in PHP_FUNCTION()
512 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name); in PHP_FUNCTION()
514 attrp->type = XML_NAMESPACE_DECL; in PHP_FUNCTION()
515 attrp->parent = nsparent; in PHP_FUNCTION()
516 attrp->ns = curns; in PHP_FUNCTION()
519 DOM_RET_OBJ((xmlNodePtr) attrp, &ret, intern); in PHP_FUNCTION()
531 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION() local
547 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
549 if (attrp->type != XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
554 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
559 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
562 ((php_libxml_node_ptr *)oldobj->ptr)->node == (xmlNodePtr) attrp) in PHP_FUNCTION()
569 if (attrp->parent != NULL) { in PHP_FUNCTION()
570 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
573 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
578 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
598 xmlAttr *attrp; in PHP_FUNCTION() local
614 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
616 if (attrp->type != XML_ATTRIBUTE_NODE || attrp->parent != nodep) { in PHP_FUNCTION()
621 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
623 DOM_RET_OBJ((xmlNodePtr) attrp, &ret, intern); in PHP_FUNCTION()
873 xmlAttr *attrp; in PHP_FUNCTION() local
891 attrp = xmlHasNsProp(nodep, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
909 if (attrp && attrp->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
910 if (php_dom_object_get_data((xmlNodePtr) attrp) == NULL) { in PHP_FUNCTION()
911 node_list_unlink(attrp->children); in PHP_FUNCTION()
912 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
913 xmlFreeProp(attrp); in PHP_FUNCTION()
915 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
931 xmlAttrPtr attrp; in PHP_FUNCTION() local
944 attrp = xmlHasNsProp(elemp, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
946 if (attrp == NULL) { in PHP_FUNCTION()
973 DOM_RET_OBJ((xmlNodePtr) attrp, &ret, intern); in PHP_FUNCTION()
988 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION() local
1004 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
1006 if (attrp->type != XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
1011 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
1016 nsp = attrp->ns; in PHP_FUNCTION()
1018 existattrp = xmlHasNsProp(nodep, nsp->href, attrp->name); in PHP_FUNCTION()
1020 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
1025 ((php_libxml_node_ptr *)oldobj->ptr)->node == (xmlNodePtr) attrp) in PHP_FUNCTION()
1032 if (attrp->parent != NULL) { in PHP_FUNCTION()
1033 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
1036 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1041 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
1150 static void php_set_attribute_id(xmlAttrPtr attrp, zend_bool is_id) /* {{{ */ in php_set_attribute_id() argument
1152 if (is_id == 1 && attrp->atype != XML_ATTRIBUTE_ID) { in php_set_attribute_id()
1155 id_val = xmlNodeListGetString(attrp->doc, attrp->children, 1); in php_set_attribute_id()
1157 xmlAddID(NULL, attrp->doc, id_val, attrp); in php_set_attribute_id()
1160 } else if (is_id == 0 && attrp->atype == XML_ATTRIBUTE_ID) { in php_set_attribute_id()
1161 xmlRemoveID(attrp->doc, attrp); in php_set_attribute_id()
1162 attrp->atype = 0; in php_set_attribute_id()
1175 xmlAttrPtr attrp; in PHP_FUNCTION() local
1193 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_FUNCTION()
1194 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1197 php_set_attribute_id(attrp, is_id); in PHP_FUNCTION()
1212 xmlAttrPtr attrp; in PHP_FUNCTION() local
1230 attrp = xmlHasNsProp(elemp, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
1231 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1234 php_set_attribute_id(attrp, is_id); in PHP_FUNCTION()
1249 xmlAttrPtr attrp; in PHP_FUNCTION() local
1265 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
1267 if (attrp->parent != nodep) { in PHP_FUNCTION()
1270 php_set_attribute_id(attrp, is_id); in PHP_FUNCTION()