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()
1337 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1341 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1346 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1349 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1362 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1366 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1371 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1374 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1442 sdlType->encode && type != &sdlType->encode->details) { in to_zval_object_ex()
1445 enc = sdlType->encode; in to_zval_object_ex()
1450 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1473 sdlType->encode && in to_zval_object_ex()
1474 type != &sdlType->encode->details) { in to_zval_object_ex()
1475 if (sdlType->encode->details.sdl_type && in to_zval_object_ex()
1476 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1477 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1478 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1486 sdlType->encode->to_zval == sdl_guess_convert_zval && in to_zval_object_ex()
1487 sdlType->encode->details.sdl_type != NULL && in to_zval_object_ex()
1488 (sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_COMPLEX || in to_zval_object_ex()
1489 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_RESTRICTION || in to_zval_object_ex()
1490 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_EXTENSION) && in to_zval_object_ex()
1491 (sdlType->encode->details.sdl_type->encode == NULL || in to_zval_object_ex()
1492 (sdlType->encode->details.sdl_type->encode->details.type != IS_ARRAY && in to_zval_object_ex()
1493 sdlType->encode->details.sdl_type->encode->details.type != SOAP_ENC_ARRAY))) { in to_zval_object_ex()
1494 to_zval_object_ex(ret, &sdlType->encode->details, data, ce); in to_zval_object_ex()
1496 master_to_zval_int(ret, sdlType->encode, data); in to_zval_object_ex()
1516 master_to_zval_int(&base, sdlType->encode, data); in to_zval_object_ex()
1565 master_to_zval(&data, attr->encode, dummy); in to_zval_object_ex()
1646 enc = model->u.element->encode; in model_to_xml_object()
1841 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1844 enc = sdlType->encode; in to_xml_object()
1849 enc = enc->details.sdl_type->encode; in to_xml_object()
1867 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1868 if (sdlType->encode->details.sdl_type && in to_xml_object()
1869 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1870 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1871 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1874 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1881 xmlParam = master_to_xml(sdlType->encode, tmp, style, parent); in to_xml_object()
1883 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1915 property = master_to_xml(array_el->encode, val, style, xmlParam); in to_xml_object()
1938 dummy = master_to_xml(attr->encode, zattr, SOAP_LITERAL, xmlParam); in to_xml_object()
2408 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2410 enc = elementType->encode; in to_xml_array()
2411 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2419 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2422 enc = elementType->encode; in to_xml_array()
2423 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2600 elementType->encode) { in to_zval_array()
2601 enc = elementType->encode; in to_zval_array()
2607 elementType->encode) { in to_zval_array()
2608 enc = elementType->encode; in to_zval_array()
2825 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2826 tmp == tmp->details.sdl_type->encode) { in guess_zval_convert()
2830 tmp = tmp->details.sdl_type->encode; in guess_zval_convert()
3005 list_enc = type->encode; in to_xml_list()
3119 sdl_type->encode) { in to_zval_any()
3121 return master_to_zval_int(ret, sdl_type->encode, data); in to_zval_any()
3213 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3214 return master_to_zval_int(ret, type->encode, data); in sdl_guess_convert_zval()
3226 if (type->encode && in sdl_guess_convert_zval()
3227 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_zval()
3228 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_zval()
3277 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3278 ret = master_to_xml(type->encode, data, style, parent); in sdl_guess_convert_xml()
3292 if (type->encode && in sdl_guess_convert_xml()
3293 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_xml()
3294 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_xml()
3485 encodePtr get_conversion(int encode) in get_conversion() argument
3489 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()