Lines Matching refs:attrp
82 DOM_PROP_NODE(xmlAttrPtr, attrp, obj); in dom_attr_name_read()
85 zend_string *str = dom_node_get_node_name_attribute_or_element((xmlNodePtr) attrp, false); in dom_attr_name_read()
88 ZVAL_STRING(retval, (char *) attrp->name); in dom_attr_name_read()
110 void dom_attr_value_will_change(dom_object *obj, xmlAttrPtr attrp) in dom_attr_value_will_change() argument
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()
128 php_dom_get_content_into_zval(attrp, retval, false); 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()
145 xmlNodePtr node = xmlNewDocTextLen(attrp->doc, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_attr_value_write()
146 xmlAddChild((xmlNodePtr) attrp, node); in dom_attr_value_write()
148 xmlNodeSetContentLen((xmlNodePtr) attrp, BAD_CAST ZSTR_VAL(str), ZSTR_LEN(str)); in dom_attr_value_write()
194 xmlAttrPtr attrp; in PHP_METHOD() local
197 DOM_GET_OBJ(attrp, ZEND_THIS, xmlAttrPtr, intern); in PHP_METHOD()
198 RETURN_BOOL(attrp->atype == XML_ATTRIBUTE_ID); in PHP_METHOD()