Lines Matching refs:encode
147 encode defaultEncoding[] = {
239 int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode);
394 static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xmlNodePtr parent, int… in master_to_xml_int() argument
441 enc = encode; in master_to_xml_int()
450 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
499 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
502 encode = enc; in master_to_xml_int()
509 if (encode == NULL) { in master_to_xml_int()
510 encode = get_conversion(UNKNOWN_TYPE); in master_to_xml_int()
512 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
516 if (encode->details.ns) { in master_to_xml_int()
517 smart_str_appends(&nscat, encode->details.ns); in master_to_xml_int()
520 smart_str_appends(&nscat, encode->details.type_str); in master_to_xml_int()
523 encode = *new_enc; in master_to_xml_int()
527 if (encode->to_xml) { in master_to_xml_int()
528 node = encode->to_xml(&encode->details, data, style, parent TSRMLS_CC); in master_to_xml_int()
530 set_ns_and_type(node, &encode->details); in master_to_xml_int()
537 xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr parent TSRMLS_DC) in master_to_xml() argument
539 return master_to_xml_int(encode, data, style, parent, 1 TSRMLS_CC); in master_to_xml()
542 static zval *master_to_zval_int(encodePtr encode, xmlNodePtr data TSRMLS_DC) in master_to_zval_int() argument
547 if (encode->details.type_str) { in master_to_zval_int()
551 if (encode->details.ns) { in master_to_zval_int()
552 smart_str_appends(&nscat, encode->details.ns); in master_to_zval_int()
555 smart_str_appends(&nscat, encode->details.type_str); in master_to_zval_int()
558 encode = *new_enc; in master_to_zval_int()
581 encode = *new_enc; in master_to_zval_int()
587 if (encode->to_zval) { in master_to_zval_int()
588 ret = encode->to_zval(&encode->details, data TSRMLS_CC); in master_to_zval_int()
593 zval *master_to_zval(encodePtr encode, xmlNodePtr data TSRMLS_DC) in master_to_zval() argument
597 if (encode == NULL) { in master_to_zval()
598 encode = get_conversion(UNKNOWN_TYPE); in master_to_zval()
606 if (enc != NULL && enc != encode) { in master_to_zval()
611 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
612 tmp == tmp->details.sdl_type->encode) { in master_to_zval()
616 tmp = tmp->details.sdl_type->encode; in master_to_zval()
619 encode = enc; in master_to_zval()
624 return master_to_zval_int(encode, data TSRMLS_CC); in master_to_zval()
1393 val = master_to_zval(model->u.element->encode, r_node TSRMLS_CC); in model_to_zval_object()
1397 val = master_to_zval(model->u.element->encode, dummy TSRMLS_CC); in model_to_zval_object()
1402 val = master_to_zval(model->u.element->encode, dummy TSRMLS_CC); in model_to_zval_object()
1405 val = master_to_zval(model->u.element->encode, r_node TSRMLS_CC); in model_to_zval_object()
1418 val = master_to_zval(model->u.element->encode, node TSRMLS_CC); in model_to_zval_object()
1422 val = master_to_zval(model->u.element->encode, dummy TSRMLS_CC); in model_to_zval_object()
1427 val = master_to_zval(model->u.element->encode, dummy TSRMLS_CC); in model_to_zval_object()
1430 val = master_to_zval(model->u.element->encode, node TSRMLS_CC); in model_to_zval_object()
1503 sdlType->encode && type != &sdlType->encode->details) { in to_zval_object_ex()
1506 enc = sdlType->encode; in to_zval_object_ex()
1511 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1533 sdlType->encode && in to_zval_object_ex()
1534 type != &sdlType->encode->details) { in to_zval_object_ex()
1535 if (sdlType->encode->details.sdl_type && in to_zval_object_ex()
1536 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1537 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1538 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1546 sdlType->encode->to_zval == sdl_guess_convert_zval && in to_zval_object_ex()
1547 sdlType->encode->details.sdl_type != NULL && in to_zval_object_ex()
1548 (sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_COMPLEX || in to_zval_object_ex()
1549 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_RESTRICTION || in to_zval_object_ex()
1550 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_EXTENSION) && in to_zval_object_ex()
1551 (sdlType->encode->details.sdl_type->encode == NULL || in to_zval_object_ex()
1552 (sdlType->encode->details.sdl_type->encode->details.type != IS_ARRAY && in to_zval_object_ex()
1553 sdlType->encode->details.sdl_type->encode->details.type != SOAP_ENC_ARRAY))) { in to_zval_object_ex()
1554 ret = to_zval_object_ex(&sdlType->encode->details, data, ce TSRMLS_CC); in to_zval_object_ex()
1556 ret = master_to_zval_int(sdlType->encode, data TSRMLS_CC); in to_zval_object_ex()
1575 base = master_to_zval_int(sdlType->encode, data TSRMLS_CC); in to_zval_object_ex()
1631 data = master_to_zval((*attr)->encode, dummy TSRMLS_CC); in to_zval_object_ex()
1715 enc = model->u.element->encode; in model_to_xml_object()
1921 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1924 enc = sdlType->encode; in to_xml_object()
1929 enc = enc->details.sdl_type->encode; in to_xml_object()
1946 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1947 if (sdlType->encode->details.sdl_type && in to_xml_object()
1948 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1949 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1950 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1953 xmlParam = master_to_xml(sdlType->encode, data, style, parent TSRMLS_CC); in to_xml_object()
1959 xmlParam = master_to_xml(sdlType->encode, tmp, style, parent TSRMLS_CC); in to_xml_object()
1961 xmlParam = master_to_xml(sdlType->encode, data, style, parent TSRMLS_CC); in to_xml_object()
1993 property = master_to_xml(array_el->encode, *val, style, xmlParam TSRMLS_CC); in to_xml_object()
2019 dummy = master_to_xml((*attr)->encode, zattr, SOAP_LITERAL, xmlParam TSRMLS_CC); in to_xml_object()
2498 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2500 enc = elementType->encode; in to_xml_array()
2501 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2510 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2513 enc = elementType->encode; in to_xml_array()
2514 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2701 elementType->encode) { in to_zval_array()
2702 enc = elementType->encode; in to_zval_array()
2709 elementType->encode) { in to_zval_array()
2710 enc = elementType->encode; in to_zval_array()
2933 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2934 tmp == tmp->details.sdl_type->encode) { in guess_zval_convert()
2938 tmp = tmp->details.sdl_type->encode; in guess_zval_convert()
3115 list_enc = (*type)->encode; in to_xml_list()
3223 (*sdl_type)->encode) { in to_zval_any()
3225 return master_to_zval_int((*sdl_type)->encode, data TSRMLS_CC); in to_zval_any()
3327 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3328 return master_to_zval_int(type->encode, data TSRMLS_CC); in sdl_guess_convert_zval()
3340 if (type->encode && in sdl_guess_convert_zval()
3341 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_zval()
3342 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_zval()
3391 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3392 ret = master_to_xml(type->encode, data, style, parent TSRMLS_CC); in sdl_guess_convert_xml()
3406 if (type->encode && in sdl_guess_convert_xml()
3407 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_xml()
3408 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_xml()
3603 encodePtr get_conversion(int encode) in get_conversion() argument
3608 if (zend_hash_index_find(&SOAP_GLOBAL(defEncIndex), encode, (void **)&enc) == FAILURE) { in get_conversion()
3773 void delete_encoder(void *encode) in delete_encoder() argument
3775 encodePtr t = *((encodePtr*)encode); in delete_encoder()
3788 void delete_encoder_persistent(void *encode) in delete_encoder_persistent() argument
3790 encodePtr t = *((encodePtr*)encode); in delete_encoder_persistent()