Lines Matching refs:encode
142 encode defaultEncoding[] = {
232 int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode);
381 static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xmlNodePtr parent, int… in master_to_xml_int() argument
425 enc = encode; in master_to_xml_int()
430 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
476 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
479 encode = enc; in master_to_xml_int()
486 if (encode == NULL) { in master_to_xml_int()
487 encode = get_conversion(UNKNOWN_TYPE); in master_to_xml_int()
489 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
493 if (encode->details.ns) { in master_to_xml_int()
494 smart_str_appends(&nscat, encode->details.ns); in master_to_xml_int()
497 smart_str_appends(&nscat, encode->details.type_str); in master_to_xml_int()
500 encode = new_enc; in master_to_xml_int()
504 if (encode->to_xml) { in master_to_xml_int()
505 node = encode->to_xml(&encode->details, data, style, parent); in master_to_xml_int()
507 set_ns_and_type(node, &encode->details); in master_to_xml_int()
514 xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr parent) in master_to_xml() argument
516 return master_to_xml_int(encode, data, style, parent, 1); in master_to_xml()
519 static zval *master_to_zval_int(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval_int() argument
522 if (encode->details.type_str) { in master_to_zval_int()
526 if (encode->details.ns) { in master_to_zval_int()
527 smart_str_appends(&nscat, encode->details.ns); in master_to_zval_int()
530 smart_str_appends(&nscat, encode->details.type_str); in master_to_zval_int()
533 encode = new_enc; in master_to_zval_int()
556 encode = new_enc; in master_to_zval_int()
562 if (encode->to_zval) { in master_to_zval_int()
563 ret = encode->to_zval(ret, &encode->details, data); in master_to_zval_int()
568 zval *master_to_zval(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval() argument
572 if (encode == NULL) { in master_to_zval()
573 encode = get_conversion(UNKNOWN_TYPE); in master_to_zval()
581 if (enc != NULL && enc != encode) { in master_to_zval()
586 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
587 tmp == tmp->details.sdl_type->encode) { in master_to_zval()
591 tmp = tmp->details.sdl_type->encode; in master_to_zval()
594 encode = enc; in master_to_zval()
599 return master_to_zval_int(ret, encode, data); in master_to_zval()
1332 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1336 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1341 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1344 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1357 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1361 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1366 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1369 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()
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()
1522 master_to_zval_int(&base, sdlType->encode, data); in to_zval_object_ex()
1575 master_to_zval(&data, attr->encode, dummy); in to_zval_object_ex()
1664 enc = model->u.element->encode; in model_to_xml_object()
1861 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1864 enc = sdlType->encode; in to_xml_object()
1869 enc = enc->details.sdl_type->encode; in to_xml_object()
1887 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1888 if (sdlType->encode->details.sdl_type && in to_xml_object()
1889 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1890 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1891 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1894 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1901 xmlParam = master_to_xml(sdlType->encode, tmp, style, parent); in to_xml_object()
1903 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1935 property = master_to_xml(array_el->encode, val, style, xmlParam); in to_xml_object()
1958 dummy = master_to_xml(attr->encode, zattr, SOAP_LITERAL, xmlParam); in to_xml_object()
2428 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2430 enc = elementType->encode; in to_xml_array()
2431 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2439 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2442 enc = elementType->encode; in to_xml_array()
2443 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2627 elementType->encode) { in to_zval_array()
2628 enc = elementType->encode; in to_zval_array()
2634 elementType->encode) { in to_zval_array()
2635 enc = elementType->encode; in to_zval_array()
2861 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2862 tmp == tmp->details.sdl_type->encode) { in guess_zval_convert()
2866 tmp = tmp->details.sdl_type->encode; in guess_zval_convert()
3055 list_enc = type->encode; in to_xml_list()
3171 sdl_type->encode) { in to_zval_any()
3173 return master_to_zval_int(ret, sdl_type->encode, data); in to_zval_any()
3262 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3263 return master_to_zval_int(ret, type->encode, data); in sdl_guess_convert_zval()
3275 if (type->encode && in sdl_guess_convert_zval()
3276 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_zval()
3277 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_zval()
3326 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3327 ret = master_to_xml(type->encode, data, style, parent); in sdl_guess_convert_xml()
3341 if (type->encode && in sdl_guess_convert_xml()
3342 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_xml()
3343 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_xml()
3542 encodePtr get_conversion(int encode) in get_conversion() argument
3546 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()