Lines Matching refs:encode

142 const encode defaultEncoding[] = {
232 int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode);
374 static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xmlNodePtr parent, int… in master_to_xml_int() argument
422 enc = encode; in master_to_xml_int()
428 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
473 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
476 encode = enc; in master_to_xml_int()
483 if (encode == NULL) { in master_to_xml_int()
484 encode = get_conversion(UNKNOWN_TYPE); in master_to_xml_int()
486 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
490 if (encode->details.ns) { in master_to_xml_int()
491 smart_str_appends(&nscat, encode->details.ns); in master_to_xml_int()
494 smart_str_appends(&nscat, encode->details.type_str); in master_to_xml_int()
497 encode = new_enc; in master_to_xml_int()
501 if (encode->to_xml) { in master_to_xml_int()
502 node = encode->to_xml(&encode->details, data, style, parent); in master_to_xml_int()
504 set_ns_and_type(node, &encode->details); in master_to_xml_int()
511 xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr parent) in master_to_xml() argument
513 return master_to_xml_int(encode, data, style, parent, 1); in master_to_xml()
516 static zval *master_to_zval_int(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval_int() argument
519 if (encode->details.type_str) { in master_to_zval_int()
523 if (encode->details.ns) { in master_to_zval_int()
524 smart_str_appends(&nscat, encode->details.ns); in master_to_zval_int()
527 smart_str_appends(&nscat, encode->details.type_str); in master_to_zval_int()
530 encode = new_enc; in master_to_zval_int()
553 encode = new_enc; in master_to_zval_int()
559 if (encode->to_zval) { in master_to_zval_int()
560 ret = encode->to_zval(ret, &encode->details, data); in master_to_zval_int()
565 zval *master_to_zval(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval() argument
569 if (encode == NULL) { in master_to_zval()
570 encode = get_conversion(UNKNOWN_TYPE); in master_to_zval()
578 if (enc != NULL && enc != encode) { in master_to_zval()
583 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
584 tmp == tmp->details.sdl_type->encode) { in master_to_zval()
588 tmp = tmp->details.sdl_type->encode; in master_to_zval()
591 encode = enc; in master_to_zval()
596 return master_to_zval_int(ret, encode, data); in master_to_zval()
1323 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1327 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1332 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1335 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1348 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1352 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1357 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1360 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1428 sdlType->encode && type != &sdlType->encode->details) { in to_zval_object_ex()
1431 enc = sdlType->encode; in to_zval_object_ex()
1436 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1459 sdlType->encode && in to_zval_object_ex()
1460 type != &sdlType->encode->details) { in to_zval_object_ex()
1461 if (sdlType->encode->details.sdl_type && in to_zval_object_ex()
1462 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1463 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1464 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1472 sdlType->encode->to_zval == sdl_guess_convert_zval && in to_zval_object_ex()
1473 sdlType->encode->details.sdl_type != NULL && in to_zval_object_ex()
1474 (sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_COMPLEX || in to_zval_object_ex()
1475 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_RESTRICTION || in to_zval_object_ex()
1476 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_EXTENSION) && in to_zval_object_ex()
1477 (sdlType->encode->details.sdl_type->encode == NULL || in to_zval_object_ex()
1478 (sdlType->encode->details.sdl_type->encode->details.type != IS_ARRAY && in to_zval_object_ex()
1479 sdlType->encode->details.sdl_type->encode->details.type != SOAP_ENC_ARRAY))) { in to_zval_object_ex()
1480 to_zval_object_ex(ret, &sdlType->encode->details, data, ce); in to_zval_object_ex()
1482 master_to_zval_int(ret, sdlType->encode, data); in to_zval_object_ex()
1502 master_to_zval_int(&base, sdlType->encode, data); in to_zval_object_ex()
1551 master_to_zval(&data, attr->encode, dummy); in to_zval_object_ex()
1632 enc = model->u.element->encode; in model_to_xml_object()
1827 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1830 enc = sdlType->encode; in to_xml_object()
1835 enc = enc->details.sdl_type->encode; in to_xml_object()
1853 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1854 if (sdlType->encode->details.sdl_type && in to_xml_object()
1855 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1856 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1857 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1860 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1867 xmlParam = master_to_xml(sdlType->encode, tmp, style, parent); in to_xml_object()
1869 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1901 property = master_to_xml(array_el->encode, val, style, xmlParam); in to_xml_object()
1924 dummy = master_to_xml(attr->encode, zattr, SOAP_LITERAL, xmlParam); in to_xml_object()
2394 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2396 enc = elementType->encode; in to_xml_array()
2397 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2405 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2408 enc = elementType->encode; in to_xml_array()
2409 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2586 elementType->encode) { in to_zval_array()
2587 enc = elementType->encode; in to_zval_array()
2593 elementType->encode) { in to_zval_array()
2594 enc = elementType->encode; in to_zval_array()
2811 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2812 tmp == tmp->details.sdl_type->encode) { in guess_zval_convert()
2816 tmp = tmp->details.sdl_type->encode; in guess_zval_convert()
2991 list_enc = type->encode; in to_xml_list()
3107 sdl_type->encode) { in to_zval_any()
3109 return master_to_zval_int(ret, sdl_type->encode, data); in to_zval_any()
3201 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3202 return master_to_zval_int(ret, type->encode, data); in sdl_guess_convert_zval()
3214 if (type->encode && in sdl_guess_convert_zval()
3215 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_zval()
3216 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_zval()
3265 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3266 ret = master_to_xml(type->encode, data, style, parent); in sdl_guess_convert_xml()
3280 if (type->encode && in sdl_guess_convert_xml()
3281 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_xml()
3282 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_xml()
3473 encodePtr get_conversion(int encode) in get_conversion() argument
3477 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()