Lines Matching refs:enc

58 static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent);
59 static xmlNodePtr to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent);
273 encodePtr enc; in find_encoder_by_type_name() local
275 ZEND_HASH_FOREACH_PTR(sdl->encoders, enc) { in find_encoder_by_type_name()
277 if (enc->details.clark_notation in find_encoder_by_type_name()
278 && strcmp(ZSTR_VAL(enc->details.clark_notation), type) == 0) { in find_encoder_by_type_name()
279 return enc; in find_encoder_by_type_name()
282 if (strcmp(enc->details.type_str, type) == 0) { in find_encoder_by_type_name()
283 return enc; in find_encoder_by_type_name()
392 encodePtr enc = NULL; in master_to_xml_int() local
403 enc = get_encoder(SOAP_GLOBAL(sdl), Z_STRVAL_P(zns), Z_STRVAL_P(zstype)); in master_to_xml_int()
406 enc = get_encoder_ex(SOAP_GLOBAL(sdl), Z_STRVAL_P(zstype), Z_STRLEN_P(zstype)); in master_to_xml_int()
408 if (enc == NULL && SOAP_GLOBAL(typemap)) { in master_to_xml_int()
417 enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s); in master_to_xml_int()
421 if (enc == NULL) { in master_to_xml_int()
422 enc = get_conversion(Z_LVAL_P(ztype)); in master_to_xml_int()
424 if (enc == NULL) { in master_to_xml_int()
425 enc = encode; in master_to_xml_int()
428 node = master_to_xml(enc, Z_VAR_ENC_VALUE_P(data), style, parent); in master_to_xml_int()
430 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
468 encodePtr enc = NULL; in master_to_xml_int() local
470 enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, ZSTR_VAL(type_name)); in master_to_xml_int()
471 if (!enc) { in master_to_xml_int()
472 enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), ZSTR_VAL(type_name)); in master_to_xml_int()
475 if (enc) { in master_to_xml_int()
476 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
479 encode = enc; in master_to_xml_int()
579 encodePtr enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, type_attr->children->content); in master_to_zval() local
581 if (enc != NULL && enc != encode) { in master_to_zval()
582 encodePtr tmp = enc; in master_to_zval()
586 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
588 enc = NULL; in master_to_zval()
593 if (enc != NULL) { in master_to_zval()
594 encode = enc; in master_to_zval()
1443 encodePtr enc; in to_zval_object_ex() local
1445 enc = sdlType->encode; in to_zval_object_ex()
1446 while (enc && enc->details.sdl_type && in to_zval_object_ex()
1447 enc->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1448 enc->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1449 enc->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1450 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1452 if (enc) { in to_zval_object_ex()
1463 master_to_zval_int(&base, enc, data); in to_zval_object_ex()
1652 encodePtr enc; in model_to_xml_object() local
1664 enc = model->u.element->encode; in model_to_xml_object()
1678 property = master_to_xml(enc, val, style, node); in model_to_xml_object()
1700 property = master_to_xml(enc, data, style, node); in model_to_xml_object()
1738 encodePtr enc; in model_to_xml_object() local
1743 enc = get_conversion(XSD_ANYXML); in model_to_xml_object()
1751 master_to_xml(enc, val, style, node); in model_to_xml_object()
1754 master_to_xml(enc, data, style, node); in model_to_xml_object()
1862 encodePtr enc; in to_xml_object() local
1864 enc = sdlType->encode; in to_xml_object()
1865 while (enc && enc->details.sdl_type && in to_xml_object()
1866 enc->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1867 enc->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1868 enc->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1869 enc = enc->details.sdl_type->encode; in to_xml_object()
1871 if (enc) { in to_xml_object()
1875 xmlParam = master_to_xml(enc, tmp, style, parent); in to_xml_object()
1877 xmlParam = master_to_xml(enc, data, style, parent); in to_xml_object()
2028 encodePtr enc = NULL; in guess_array_map() local
2032 enc = get_conversion(APACHE_MAP); in guess_array_map()
2034 enc = get_conversion(SOAP_ENC_ARRAY); in guess_array_map()
2037 if (!enc) { in guess_array_map()
2038 enc = get_conversion(IS_NULL); in guess_array_map()
2041 return master_to_xml(enc, data, style, parent); in guess_array_map()
2139 encodePtr enc, in add_xml_array_elements() argument
2165 if (enc == NULL) { in add_xml_array_elements()
2168 xparam = master_to_xml(enc, zdata, style, xmlParam); in add_xml_array_elements()
2173 } else if (style == SOAP_LITERAL && enc && enc->details.type_str) { in add_xml_array_elements()
2174 xmlNodeSetName(xparam, BAD_CAST(enc->details.type_str)); in add_xml_array_elements()
2180 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, zdata, style); in add_xml_array_elements()
2192 } else if (style == SOAP_LITERAL && enc && enc->details.type_str) { in add_xml_array_elements()
2193 xmlNodeSetName(xparam, BAD_CAST(enc->details.type_str)); in add_xml_array_elements()
2203 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, NULL, style); in add_xml_array_elements()
2218 } else if (style == SOAP_LITERAL && enc && enc->details.type_str) { in add_xml_array_elements()
2219 xmlNodeSetName(xparam, BAD_CAST(enc->details.type_str)); in add_xml_array_elements()
2225 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, NULL, style); in add_xml_array_elements()
2238 encodePtr enc = NULL; in to_xml_array() local
2346 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, value); in to_xml_array()
2385 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, ext->val); in to_xml_array()
2430 enc = elementType->encode; in to_xml_array()
2433 enc = get_array_type(xmlParam, data, &array_type); in to_xml_array()
2442 enc = elementType->encode; in to_xml_array()
2451 enc = get_array_type(xmlParam, data, &array_type); in to_xml_array()
2491 …add_xml_array_elements(xmlParam, element_type, enc, enc?encode_add_ns(xmlParam,enc->details.ns):NU… in to_xml_array()
2510 encodePtr enc = NULL; in to_zval_array() local
2539 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2553 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2586 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, type); in to_zval_array()
2601 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, ext->val); in to_zval_array()
2628 enc = elementType->encode; in to_zval_array()
2635 enc = elementType->encode; in to_zval_array()
2664 master_to_zval(&tmpVal, enc, trav); in to_zval_array()
2819 encodePtr enc; in guess_xml_convert() local
2823 enc = get_conversion(Z_TYPE_P(data)); in guess_xml_convert()
2825 enc = get_conversion(IS_NULL); in guess_xml_convert()
2827 ret = master_to_xml_int(enc, data, style, parent, 0); in guess_xml_convert()
2838 encodePtr enc = NULL; in guess_zval_convert() local
2845 enc = get_conversion(IS_NULL); in guess_zval_convert()
2847 enc = get_conversion(IS_NULL); in guess_zval_convert()
2852 enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, tmpattr->children->content); in guess_zval_convert()
2853 if (enc && type == &enc->details) { in guess_zval_convert()
2854 enc = NULL; in guess_zval_convert()
2856 if (enc != NULL) { in guess_zval_convert()
2857 encodePtr tmp = enc; in guess_zval_convert()
2861 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2863 enc = NULL; in guess_zval_convert()
2871 if (enc == NULL) { in guess_zval_convert()
2879 enc = get_conversion(SOAP_ENC_ARRAY); in guess_zval_convert()
2881 enc = get_conversion(XSD_STRING); in guess_zval_convert()
2885 enc = get_conversion(SOAP_ENC_OBJECT); in guess_zval_convert()
2893 master_to_zval_int(ret, enc, data); in guess_zval_convert()
2894 if (SOAP_GLOBAL(sdl) && type_name && enc->details.sdl_type) { in guess_zval_convert()
2901 ZVAL_LONG(Z_VAR_ENC_TYPE_P(&soapvar), enc->details.type); in guess_zval_convert()
3042 static zval* to_zval_list(zval *ret, encodeTypePtr enc, xmlNodePtr data) { in to_zval_list() argument
3044 return to_zval_stringc(ret, enc, data); in to_zval_list()
3047 static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_list() argument
3051 if (enc->sdl_type && enc->sdl_type->kind == XSD_TYPEKIND_LIST && enc->sdl_type->elements) { in to_xml_list()
3054 ZEND_HASH_FOREACH_PTR(enc->sdl_type->elements, type) { in to_xml_list()
3140 static xmlNodePtr to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_list1() argument
3142 return to_xml_list(enc,data,style, parent); in to_xml_list1()
3145 static zval* to_zval_union(zval *ret, encodeTypePtr enc, xmlNodePtr data) { in to_zval_union() argument
3147 return to_zval_list(ret, enc, data); in to_zval_union()
3150 static xmlNodePtr to_xml_union(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_union() argument
3152 return to_xml_list(enc,data,style, parent); in to_xml_union()
3191 encodePtr enc = get_conversion(XSD_ANYXML); in to_xml_any() local
3195 ret = master_to_xml(enc, el, style, parent); in to_xml_any()
3223 zval *sdl_guess_convert_zval(zval *ret, encodeTypePtr enc, xmlNodePtr data) in sdl_guess_convert_zval() argument
3227 type = enc->sdl_type; in sdl_guess_convert_zval()
3229 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3262 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3265 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3269 return to_zval_list(ret, enc, data); in sdl_guess_convert_zval()
3271 return to_zval_union(ret, enc, data); in sdl_guess_convert_zval()
3278 return to_zval_array(ret, enc, data); in sdl_guess_convert_zval()
3280 return to_zval_object(ret, enc, data); in sdl_guess_convert_zval()
3283 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3287 xmlNodePtr sdl_guess_convert_xml(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) in sdl_guess_convert_xml() argument
3292 type = enc->sdl_type; in sdl_guess_convert_xml()
3295 ret = guess_xml_convert(enc, data, style, parent); in sdl_guess_convert_xml()
3297 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3326 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3329 ret = guess_xml_convert(enc, data, style, parent); in sdl_guess_convert_xml()
3333 ret = to_xml_list(enc, data, style, parent); in sdl_guess_convert_xml()
3336 ret = to_xml_union(enc, data, style, parent); in sdl_guess_convert_xml()
3344 return to_xml_array(enc, data, style, parent); in sdl_guess_convert_xml()
3346 return to_xml_object(enc, data, style, parent); in sdl_guess_convert_xml()
3354 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3544 encodePtr enc; in get_conversion() local
3546 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()
3550 return enc; in get_conversion()
3645 encodePtr enc; in get_array_type() local
3663 enc = get_encoder_ex(SOAP_GLOBAL(sdl), ZSTR_VAL(array_type.s), ZSTR_LEN(array_type.s)); in get_array_type()
3665 return enc; in get_array_type()
3667 enc = get_conversion(cur_type); in get_array_type()
3668 get_type_str(node, enc->details.ns, enc->details.type_str, type); in get_array_type()
3669 return enc; in get_array_type()