Lines Matching refs:enc

56 static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent);
57 static xmlNodePtr to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent);
271 encodePtr enc; in find_encoder_by_type_name() local
273 ZEND_HASH_FOREACH_PTR(sdl->encoders, enc) { in find_encoder_by_type_name()
274 if (strcmp(enc->details.type_str, type) == 0) { in find_encoder_by_type_name()
275 return enc; in find_encoder_by_type_name()
386 encodePtr enc = NULL; in master_to_xml_int() local
398 enc = get_encoder(SOAP_GLOBAL(sdl), Z_STRVAL_P(zns), Z_STRVAL_P(zstype)); in master_to_xml_int()
401 enc = get_encoder_ex(SOAP_GLOBAL(sdl), Z_STRVAL_P(zstype), Z_STRLEN_P(zstype)); in master_to_xml_int()
403 if (enc == NULL && SOAP_GLOBAL(typemap)) { in master_to_xml_int()
412 enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s); in master_to_xml_int()
416 if (enc == NULL) { in master_to_xml_int()
417 enc = get_conversion(Z_LVAL_P(ztype)); in master_to_xml_int()
419 if (enc == NULL) { in master_to_xml_int()
420 enc = encode; in master_to_xml_int()
424 node = master_to_xml(enc, zdata, style, parent); in master_to_xml_int()
426 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
463 encodePtr enc = NULL; in master_to_xml_int() local
465 enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, ZSTR_VAL(type_name)); in master_to_xml_int()
466 if (!enc) { in master_to_xml_int()
467 enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), ZSTR_VAL(type_name)); in master_to_xml_int()
470 if (enc) { in master_to_xml_int()
471 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
474 encode = enc; in master_to_xml_int()
574 encodePtr enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, type_attr->children->content); in master_to_zval() local
576 if (enc != NULL && enc != encode) { in master_to_zval()
577 encodePtr tmp = enc; in master_to_zval()
581 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
583 enc = NULL; in master_to_zval()
588 if (enc != NULL) { in master_to_zval()
589 encode = enc; in master_to_zval()
1398 encodePtr enc; in to_zval_object_ex() local
1400 enc = sdlType->encode; in to_zval_object_ex()
1401 while (enc && enc->details.sdl_type && in to_zval_object_ex()
1402 enc->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1403 enc->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1404 enc->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1405 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1407 if (enc) { in to_zval_object_ex()
1416 master_to_zval_int(&base, enc, data); in to_zval_object_ex()
1595 encodePtr enc; in model_to_xml_object() local
1607 enc = model->u.element->encode; in model_to_xml_object()
1621 property = master_to_xml(enc, val, style, node); in model_to_xml_object()
1643 property = master_to_xml(enc, data, style, node); in model_to_xml_object()
1681 encodePtr enc; in model_to_xml_object() local
1686 enc = get_conversion(XSD_ANYXML); in model_to_xml_object()
1694 master_to_xml(enc, val, style, node); in model_to_xml_object()
1697 master_to_xml(enc, data, style, node); in model_to_xml_object()
1803 encodePtr enc; in to_xml_object() local
1805 enc = sdlType->encode; in to_xml_object()
1806 while (enc && enc->details.sdl_type && in to_xml_object()
1807 enc->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1808 enc->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1809 enc->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1810 enc = enc->details.sdl_type->encode; in to_xml_object()
1812 if (enc) { in to_xml_object()
1816 xmlParam = master_to_xml(enc, tmp, style, parent); in to_xml_object()
1818 xmlParam = master_to_xml(enc, data, style, parent); in to_xml_object()
1969 encodePtr enc = NULL; in guess_array_map() local
1973 enc = get_conversion(APACHE_MAP); in guess_array_map()
1975 enc = get_conversion(SOAP_ENC_ARRAY); in guess_array_map()
1978 if (!enc) { in guess_array_map()
1979 enc = get_conversion(IS_NULL); in guess_array_map()
1982 return master_to_xml(enc, data, style, parent); in guess_array_map()
2080 encodePtr enc, in add_xml_array_elements() argument
2099 if (enc == NULL) { in add_xml_array_elements()
2102 xparam = master_to_xml(enc, zdata, style, xmlParam); in add_xml_array_elements()
2107 } else if (style == SOAP_LITERAL && enc && enc->details.type_str) { in add_xml_array_elements()
2108 xmlNodeSetName(xparam, BAD_CAST(enc->details.type_str)); in add_xml_array_elements()
2114 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, zdata, style); in add_xml_array_elements()
2126 } else if (style == SOAP_LITERAL && enc && enc->details.type_str) { in add_xml_array_elements()
2127 xmlNodeSetName(xparam, BAD_CAST(enc->details.type_str)); in add_xml_array_elements()
2137 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, NULL, style); in add_xml_array_elements()
2150 } else if (style == SOAP_LITERAL && enc && enc->details.type_str) { in add_xml_array_elements()
2151 xmlNodeSetName(xparam, BAD_CAST(enc->details.type_str)); in add_xml_array_elements()
2157 add_xml_array_elements(xmlParam, type, enc, ns, dimension-1, dims+1, NULL, style); in add_xml_array_elements()
2170 encodePtr enc = NULL; in to_xml_array() local
2277 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, value); in to_xml_array()
2316 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, ext->val); in to_xml_array()
2361 enc = elementType->encode; in to_xml_array()
2364 enc = get_array_type(xmlParam, data, &array_type); in to_xml_array()
2373 enc = elementType->encode; in to_xml_array()
2382 enc = get_array_type(xmlParam, data, &array_type); in to_xml_array()
2415 …add_xml_array_elements(xmlParam, element_type, enc, enc?encode_add_ns(xmlParam,enc->details.ns):NU… in to_xml_array()
2434 encodePtr enc = NULL; in to_zval_array() local
2462 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2476 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2510 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, type); in to_zval_array()
2525 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, ext->val); in to_zval_array()
2552 enc = elementType->encode; in to_zval_array()
2559 enc = elementType->encode; in to_zval_array()
2588 master_to_zval(&tmpVal, enc, trav); in to_zval_array()
2734 encodePtr enc; in guess_xml_convert() local
2738 enc = get_conversion(Z_TYPE_P(data)); in guess_xml_convert()
2740 enc = get_conversion(IS_NULL); in guess_xml_convert()
2742 ret = master_to_xml_int(enc, data, style, parent, 0); in guess_xml_convert()
2753 encodePtr enc = NULL; in guess_zval_convert() local
2760 enc = get_conversion(IS_NULL); in guess_zval_convert()
2762 enc = get_conversion(IS_NULL); in guess_zval_convert()
2767 enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, tmpattr->children->content); in guess_zval_convert()
2768 if (enc && type == &enc->details) { in guess_zval_convert()
2769 enc = NULL; in guess_zval_convert()
2771 if (enc != NULL) { in guess_zval_convert()
2772 encodePtr tmp = enc; in guess_zval_convert()
2776 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2778 enc = NULL; in guess_zval_convert()
2786 if (enc == NULL) { in guess_zval_convert()
2794 enc = get_conversion(SOAP_ENC_ARRAY); in guess_zval_convert()
2796 enc = get_conversion(XSD_STRING); in guess_zval_convert()
2800 enc = get_conversion(SOAP_ENC_OBJECT); in guess_zval_convert()
2808 master_to_zval_int(ret, enc, data); in guess_zval_convert()
2809 if (SOAP_GLOBAL(sdl) && type_name && enc->details.sdl_type) { in guess_zval_convert()
2815 add_property_long(&soapvar, "enc_type", enc->details.type); in guess_zval_convert()
2945 static zval* to_zval_list(zval *ret, encodeTypePtr enc, xmlNodePtr data) { in to_zval_list() argument
2947 return to_zval_stringc(ret, enc, data); in to_zval_list()
2950 static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_list() argument
2954 if (enc->sdl_type && enc->sdl_type->kind == XSD_TYPEKIND_LIST && enc->sdl_type->elements) { in to_xml_list()
2957 ZEND_HASH_FOREACH_PTR(enc->sdl_type->elements, type) { in to_xml_list()
3043 static xmlNodePtr to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_list1() argument
3045 return to_xml_list(enc,data,style, parent); in to_xml_list1()
3048 static zval* to_zval_union(zval *ret, encodeTypePtr enc, xmlNodePtr data) { in to_zval_union() argument
3050 return to_zval_list(ret, enc, data); in to_zval_union()
3053 static xmlNodePtr to_xml_union(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_union() argument
3055 return to_xml_list(enc,data,style, parent); in to_xml_union()
3094 encodePtr enc = get_conversion(XSD_ANYXML); in to_xml_any() local
3098 ret = master_to_xml(enc, el, style, parent); in to_xml_any()
3129 zval *sdl_guess_convert_zval(zval *ret, encodeTypePtr enc, xmlNodePtr data) in sdl_guess_convert_zval() argument
3133 type = enc->sdl_type; in sdl_guess_convert_zval()
3135 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3168 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3171 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3175 return to_zval_list(ret, enc, data); in sdl_guess_convert_zval()
3177 return to_zval_union(ret, enc, data); in sdl_guess_convert_zval()
3184 return to_zval_array(ret, enc, data); in sdl_guess_convert_zval()
3186 return to_zval_object(ret, enc, data); in sdl_guess_convert_zval()
3189 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3193 xmlNodePtr sdl_guess_convert_xml(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) in sdl_guess_convert_xml() argument
3198 type = enc->sdl_type; in sdl_guess_convert_xml()
3201 ret = guess_xml_convert(enc, data, style, parent); in sdl_guess_convert_xml()
3203 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3232 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3235 ret = guess_xml_convert(enc, data, style, parent); in sdl_guess_convert_xml()
3239 ret = to_xml_list(enc, data, style, parent); in sdl_guess_convert_xml()
3242 ret = to_xml_union(enc, data, style, parent); in sdl_guess_convert_xml()
3250 return to_xml_array(enc, data, style, parent); in sdl_guess_convert_xml()
3252 return to_xml_object(enc, data, style, parent); in sdl_guess_convert_xml()
3260 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3445 encodePtr enc; in get_conversion() local
3447 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()
3451 return enc; in get_conversion()
3548 encodePtr enc; in get_array_type() local
3566 enc = get_encoder_ex(SOAP_GLOBAL(sdl), ZSTR_VAL(array_type.s), ZSTR_LEN(array_type.s)); in get_array_type()
3568 return enc; in get_array_type()
3570 enc = get_conversion(cur_type); in get_array_type()
3571 get_type_str(node, enc->details.ns, enc->details.type_str, type); in get_array_type()
3572 return enc; in get_array_type()