Lines Matching refs:attrp

441 	xmlNodePtr nodep, attrp;  in PHP_FUNCTION()  local
457 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
458 if (attrp == NULL) { in PHP_FUNCTION()
462 switch (attrp->type) { in PHP_FUNCTION()
464 if (php_dom_object_get_data(attrp) == NULL) { in PHP_FUNCTION()
465 node_list_unlink(attrp->children TSRMLS_CC); in PHP_FUNCTION()
466 xmlUnlinkNode(attrp); in PHP_FUNCTION()
467 xmlFreeProp((xmlAttrPtr)attrp); in PHP_FUNCTION()
469 xmlUnlinkNode(attrp); in PHP_FUNCTION()
489 xmlNodePtr nodep, attrp; in PHP_FUNCTION() local
500 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
501 if (attrp == NULL) { in PHP_FUNCTION()
505 if (attrp->type == XML_NAMESPACE_DECL) { in PHP_FUNCTION()
509 nsparent = attrp->_private; in PHP_FUNCTION()
510 curns = xmlNewNs(NULL, attrp->name, NULL); in PHP_FUNCTION()
511 if (attrp->children) { in PHP_FUNCTION()
512 curns->prefix = xmlStrdup((xmlChar *) attrp->children); in PHP_FUNCTION()
514 if (attrp->children) { in PHP_FUNCTION()
515 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name); in PHP_FUNCTION()
517 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name); in PHP_FUNCTION()
519 attrp->type = XML_NAMESPACE_DECL; in PHP_FUNCTION()
520 attrp->parent = nsparent; in PHP_FUNCTION()
521 attrp->ns = curns; in PHP_FUNCTION()
524 DOM_RET_OBJ((xmlNodePtr) attrp, &ret, intern); in PHP_FUNCTION()
536 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION() local
551 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
553 if (attrp->type != XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
558 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
563 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
566 ((php_libxml_node_ptr *)oldobj->ptr)->node == (xmlNodePtr) attrp) in PHP_FUNCTION()
573 if (attrp->parent != NULL) { in PHP_FUNCTION()
574 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
577 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
582 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
602 xmlAttr *attrp; in PHP_FUNCTION() local
617 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
619 if (attrp->type != XML_ATTRIBUTE_NODE || attrp->parent != nodep) { in PHP_FUNCTION()
624 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
626 DOM_RET_OBJ((xmlNodePtr) attrp, &ret, intern); in PHP_FUNCTION()
873 xmlAttr *attrp; in PHP_FUNCTION() local
890 attrp = xmlHasNsProp(nodep, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
908 if (attrp && attrp->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
909 if (php_dom_object_get_data((xmlNodePtr) attrp) == NULL) { in PHP_FUNCTION()
910 node_list_unlink(attrp->children TSRMLS_CC); in PHP_FUNCTION()
911 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
912 xmlFreeProp(attrp); in PHP_FUNCTION()
914 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
930 xmlAttrPtr attrp; in PHP_FUNCTION() local
941 attrp = xmlHasNsProp(elemp, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
943 if (attrp == NULL) { in PHP_FUNCTION()
947 DOM_RET_OBJ((xmlNodePtr) attrp, &ret, intern); in PHP_FUNCTION()
961 xmlAttr *attrp, *existattrp = NULL; in PHP_FUNCTION() local
976 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
978 if (attrp->type != XML_ATTRIBUTE_NODE) { in PHP_FUNCTION()
983 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
988 nsp = attrp->ns; in PHP_FUNCTION()
990 existattrp = xmlHasNsProp(nodep, nsp->href, attrp->name); in PHP_FUNCTION()
992 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
997 ((php_libxml_node_ptr *)oldobj->ptr)->node == (xmlNodePtr) attrp) in PHP_FUNCTION()
1004 if (attrp->parent != NULL) { in PHP_FUNCTION()
1005 xmlUnlinkNode((xmlNodePtr) attrp); in PHP_FUNCTION()
1008 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1013 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
1119 static void php_set_attribute_id(xmlAttrPtr attrp, zend_bool is_id) /* {{{ */ in php_set_attribute_id() argument
1121 if (is_id == 1 && attrp->atype != XML_ATTRIBUTE_ID) { in php_set_attribute_id()
1124 id_val = xmlNodeListGetString(attrp->doc, attrp->children, 1); in php_set_attribute_id()
1126 xmlAddID(NULL, attrp->doc, id_val, attrp); in php_set_attribute_id()
1130 if (attrp->atype == XML_ATTRIBUTE_ID) { in php_set_attribute_id()
1131 xmlRemoveID(attrp->doc, attrp); in php_set_attribute_id()
1132 attrp->atype = 0; in php_set_attribute_id()
1146 xmlAttrPtr attrp; in PHP_FUNCTION() local
1163 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_FUNCTION()
1164 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1167 php_set_attribute_id(attrp, is_id); in PHP_FUNCTION()
1182 xmlAttrPtr attrp; in PHP_FUNCTION() local
1199 attrp = xmlHasNsProp(elemp, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
1200 if (attrp == NULL || attrp->type == XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
1203 php_set_attribute_id(attrp, is_id); in PHP_FUNCTION()
1218 xmlAttrPtr attrp; in PHP_FUNCTION() local
1233 DOM_GET_OBJ(attrp, node, xmlAttrPtr, attrobj); in PHP_FUNCTION()
1235 if (attrp->parent != nodep) { in PHP_FUNCTION()
1238 php_set_attribute_id(attrp, is_id); in PHP_FUNCTION()