Lines Matching refs:encode
143 encode defaultEncoding[] = {
234 int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode);
388 static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xmlNodePtr parent, int… in master_to_xml_int() argument
436 enc = encode; in master_to_xml_int()
442 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
487 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
490 encode = enc; in master_to_xml_int()
497 if (encode == NULL) { in master_to_xml_int()
498 encode = get_conversion(UNKNOWN_TYPE); in master_to_xml_int()
500 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
504 if (encode->details.ns) { in master_to_xml_int()
505 smart_str_appends(&nscat, encode->details.ns); in master_to_xml_int()
508 smart_str_appends(&nscat, encode->details.type_str); in master_to_xml_int()
511 encode = new_enc; in master_to_xml_int()
515 if (encode->to_xml) { in master_to_xml_int()
516 node = encode->to_xml(&encode->details, data, style, parent); in master_to_xml_int()
518 set_ns_and_type(node, &encode->details); in master_to_xml_int()
525 xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr parent) in master_to_xml() argument
527 return master_to_xml_int(encode, data, style, parent, 1); in master_to_xml()
530 static zval *master_to_zval_int(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval_int() argument
533 if (encode->details.type_str) { in master_to_zval_int()
537 if (encode->details.ns) { in master_to_zval_int()
538 smart_str_appends(&nscat, encode->details.ns); in master_to_zval_int()
541 smart_str_appends(&nscat, encode->details.type_str); in master_to_zval_int()
544 encode = new_enc; in master_to_zval_int()
567 encode = new_enc; in master_to_zval_int()
573 if (encode->to_zval) { in master_to_zval_int()
574 ret = encode->to_zval(ret, &encode->details, data); in master_to_zval_int()
579 zval *master_to_zval(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval() argument
583 if (encode == NULL) { in master_to_zval()
584 encode = get_conversion(UNKNOWN_TYPE); in master_to_zval()
592 if (enc != NULL && enc != encode) { in master_to_zval()
597 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
598 tmp == tmp->details.sdl_type->encode) { in master_to_zval()
602 tmp = tmp->details.sdl_type->encode; in master_to_zval()
605 encode = enc; in master_to_zval()
610 return master_to_zval_int(ret, encode, data); in master_to_zval()
1342 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1346 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1351 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1354 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1366 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1370 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1375 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1378 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1446 sdlType->encode && type != &sdlType->encode->details) { in to_zval_object_ex()
1449 enc = sdlType->encode; in to_zval_object_ex()
1454 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1477 sdlType->encode && in to_zval_object_ex()
1478 type != &sdlType->encode->details) { in to_zval_object_ex()
1479 if (sdlType->encode->details.sdl_type && in to_zval_object_ex()
1480 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1481 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1482 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1490 sdlType->encode->to_zval == sdl_guess_convert_zval && in to_zval_object_ex()
1491 sdlType->encode->details.sdl_type != NULL && in to_zval_object_ex()
1492 (sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_COMPLEX || in to_zval_object_ex()
1493 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_RESTRICTION || in to_zval_object_ex()
1494 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_EXTENSION) && in to_zval_object_ex()
1495 (sdlType->encode->details.sdl_type->encode == NULL || in to_zval_object_ex()
1496 (sdlType->encode->details.sdl_type->encode->details.type != IS_ARRAY && in to_zval_object_ex()
1497 sdlType->encode->details.sdl_type->encode->details.type != SOAP_ENC_ARRAY))) { in to_zval_object_ex()
1498 to_zval_object_ex(ret, &sdlType->encode->details, data, ce); in to_zval_object_ex()
1500 master_to_zval_int(ret, sdlType->encode, data); in to_zval_object_ex()
1520 master_to_zval_int(&base, sdlType->encode, data); in to_zval_object_ex()
1569 master_to_zval(&data, attr->encode, dummy); in to_zval_object_ex()
1650 enc = model->u.element->encode; in model_to_xml_object()
1845 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1848 enc = sdlType->encode; in to_xml_object()
1853 enc = enc->details.sdl_type->encode; in to_xml_object()
1871 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1872 if (sdlType->encode->details.sdl_type && in to_xml_object()
1873 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1874 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1875 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1878 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1885 xmlParam = master_to_xml(sdlType->encode, tmp, style, parent); in to_xml_object()
1887 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1919 property = master_to_xml(array_el->encode, val, style, xmlParam); in to_xml_object()
1942 dummy = master_to_xml(attr->encode, zattr, SOAP_LITERAL, xmlParam); in to_xml_object()
2412 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2414 enc = elementType->encode; in to_xml_array()
2415 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2423 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2426 enc = elementType->encode; in to_xml_array()
2427 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2604 elementType->encode) { in to_zval_array()
2605 enc = elementType->encode; in to_zval_array()
2611 elementType->encode) { in to_zval_array()
2612 enc = elementType->encode; in to_zval_array()
2829 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2830 tmp == tmp->details.sdl_type->encode) { in guess_zval_convert()
2834 tmp = tmp->details.sdl_type->encode; in guess_zval_convert()
3009 list_enc = type->encode; in to_xml_list()
3123 sdl_type->encode) { in to_zval_any()
3125 return master_to_zval_int(ret, sdl_type->encode, data); in to_zval_any()
3217 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3218 return master_to_zval_int(ret, type->encode, data); in sdl_guess_convert_zval()
3230 if (type->encode && in sdl_guess_convert_zval()
3231 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_zval()
3232 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_zval()
3281 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3282 ret = master_to_xml(type->encode, data, style, parent); in sdl_guess_convert_xml()
3296 if (type->encode && in sdl_guess_convert_xml()
3297 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_xml()
3298 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_xml()
3489 encodePtr get_conversion(int encode) in get_conversion() argument
3493 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()