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()
383 encodePtr enc = NULL; in master_to_xml_int() local
394 enc = get_encoder(SOAP_GLOBAL(sdl), Z_STRVAL_P(zns), Z_STRVAL_P(zstype)); in master_to_xml_int()
397 enc = get_encoder_ex(SOAP_GLOBAL(sdl), Z_STRVAL_P(zstype), Z_STRLEN_P(zstype)); in master_to_xml_int()
399 if (enc == NULL && SOAP_GLOBAL(typemap)) { in master_to_xml_int()
408 enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s); in master_to_xml_int()
412 if (enc == NULL) { in master_to_xml_int()
413 enc = get_conversion(Z_LVAL_P(ztype)); in master_to_xml_int()
415 if (enc == NULL) { in master_to_xml_int()
416 enc = encode; in master_to_xml_int()
419 node = master_to_xml(enc, Z_VAR_ENC_VALUE_P(data), style, parent); in master_to_xml_int()
421 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
459 encodePtr enc = NULL; in master_to_xml_int() local
461 enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, ZSTR_VAL(type_name)); in master_to_xml_int()
462 if (!enc) { in master_to_xml_int()
463 enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), ZSTR_VAL(type_name)); in master_to_xml_int()
466 if (enc) { in master_to_xml_int()
467 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
470 encode = enc; in master_to_xml_int()
570 encodePtr enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, type_attr->children->content); in master_to_zval() local
572 if (enc != NULL && enc != encode) { in master_to_zval()
573 encodePtr tmp = enc; in master_to_zval()
577 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
579 enc = NULL; in master_to_zval()
584 if (enc != NULL) { in master_to_zval()
585 encode = enc; in master_to_zval()
1394 encodePtr enc; in to_zval_object_ex() local
1396 enc = sdlType->encode; in to_zval_object_ex()
1397 while (enc && enc->details.sdl_type && in to_zval_object_ex()
1398 enc->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1399 enc->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1400 enc->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1401 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1403 if (enc) { in to_zval_object_ex()
1412 master_to_zval_int(&base, enc, data); in to_zval_object_ex()
1593 encodePtr enc; in model_to_xml_object() local
1605 enc = model->u.element->encode; in model_to_xml_object()
1619 property = master_to_xml(enc, val, style, node); in model_to_xml_object()
1641 property = master_to_xml(enc, data, style, node); in model_to_xml_object()
1679 encodePtr enc; in model_to_xml_object() local
1684 enc = get_conversion(XSD_ANYXML); in model_to_xml_object()
1692 master_to_xml(enc, val, style, node); in model_to_xml_object()
1695 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 ZVAL_LONG(Z_VAR_ENC_TYPE_P(&soapvar), enc->details.type); in guess_zval_convert()
2944 static zval* to_zval_list(zval *ret, encodeTypePtr enc, xmlNodePtr data) { in to_zval_list() argument
2946 return to_zval_stringc(ret, enc, data); in to_zval_list()
2949 static xmlNodePtr to_xml_list(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_list() argument
2953 if (enc->sdl_type && enc->sdl_type->kind == XSD_TYPEKIND_LIST && enc->sdl_type->elements) { in to_xml_list()
2956 ZEND_HASH_FOREACH_PTR(enc->sdl_type->elements, type) { in to_xml_list()
3042 static xmlNodePtr to_xml_list1(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_list1() argument
3044 return to_xml_list(enc,data,style, parent); in to_xml_list1()
3047 static zval* to_zval_union(zval *ret, encodeTypePtr enc, xmlNodePtr data) { in to_zval_union() argument
3049 return to_zval_list(ret, enc, data); in to_zval_union()
3052 static xmlNodePtr to_xml_union(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) { in to_xml_union() argument
3054 return to_xml_list(enc,data,style, parent); in to_xml_union()
3093 encodePtr enc = get_conversion(XSD_ANYXML); in to_xml_any() local
3097 ret = master_to_xml(enc, el, style, parent); in to_xml_any()
3128 zval *sdl_guess_convert_zval(zval *ret, encodeTypePtr enc, xmlNodePtr data) in sdl_guess_convert_zval() argument
3132 type = enc->sdl_type; in sdl_guess_convert_zval()
3134 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3167 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3170 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3174 return to_zval_list(ret, enc, data); in sdl_guess_convert_zval()
3176 return to_zval_union(ret, enc, data); in sdl_guess_convert_zval()
3183 return to_zval_array(ret, enc, data); in sdl_guess_convert_zval()
3185 return to_zval_object(ret, enc, data); in sdl_guess_convert_zval()
3188 return guess_zval_convert(ret, enc, data); in sdl_guess_convert_zval()
3192 xmlNodePtr sdl_guess_convert_xml(encodeTypePtr enc, zval *data, int style, xmlNodePtr parent) in sdl_guess_convert_xml() argument
3197 type = enc->sdl_type; in sdl_guess_convert_xml()
3200 ret = guess_xml_convert(enc, data, style, parent); in sdl_guess_convert_xml()
3202 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3231 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3234 ret = guess_xml_convert(enc, data, style, parent); in sdl_guess_convert_xml()
3238 ret = to_xml_list(enc, data, style, parent); in sdl_guess_convert_xml()
3241 ret = to_xml_union(enc, data, style, parent); in sdl_guess_convert_xml()
3249 return to_xml_array(enc, data, style, parent); in sdl_guess_convert_xml()
3251 return to_xml_object(enc, data, style, parent); in sdl_guess_convert_xml()
3259 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3449 encodePtr enc; in get_conversion() local
3451 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()
3455 return enc; in get_conversion()
3550 encodePtr enc; in get_array_type() local
3568 enc = get_encoder_ex(SOAP_GLOBAL(sdl), ZSTR_VAL(array_type.s), ZSTR_LEN(array_type.s)); in get_array_type()
3570 return enc; in get_array_type()
3572 enc = get_conversion(cur_type); in get_array_type()
3573 get_type_str(node, enc->details.ns, enc->details.type_str, type); in get_array_type()
3574 return enc; in get_array_type()