Lines Matching refs:encode

140 const encode defaultEncoding[] = {
230 int numDefaultEncodings = sizeof(defaultEncoding)/sizeof(encode);
372 static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xmlNodePtr parent, int… in master_to_xml_int() argument
416 enc = encode; in master_to_xml_int()
421 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
467 if (encode != enc && style == SOAP_LITERAL) { in master_to_xml_int()
470 encode = enc; in master_to_xml_int()
477 if (encode == NULL) { in master_to_xml_int()
478 encode = get_conversion(UNKNOWN_TYPE); in master_to_xml_int()
480 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
484 if (encode->details.ns) { in master_to_xml_int()
485 smart_str_appends(&nscat, encode->details.ns); in master_to_xml_int()
488 smart_str_appends(&nscat, encode->details.type_str); in master_to_xml_int()
491 encode = new_enc; in master_to_xml_int()
495 if (encode->to_xml) { in master_to_xml_int()
496 node = encode->to_xml(&encode->details, data, style, parent); in master_to_xml_int()
498 set_ns_and_type(node, &encode->details); in master_to_xml_int()
505 xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr parent) in master_to_xml() argument
507 return master_to_xml_int(encode, data, style, parent, 1); in master_to_xml()
510 static zval *master_to_zval_int(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval_int() argument
513 if (encode->details.type_str) { in master_to_zval_int()
517 if (encode->details.ns) { in master_to_zval_int()
518 smart_str_appends(&nscat, encode->details.ns); in master_to_zval_int()
521 smart_str_appends(&nscat, encode->details.type_str); in master_to_zval_int()
524 encode = new_enc; in master_to_zval_int()
547 encode = new_enc; in master_to_zval_int()
553 if (encode->to_zval) { in master_to_zval_int()
554 ret = encode->to_zval(ret, &encode->details, data); in master_to_zval_int()
559 zval *master_to_zval(zval *ret, encodePtr encode, xmlNodePtr data) in master_to_zval() argument
563 if (encode == NULL) { in master_to_zval()
564 encode = get_conversion(UNKNOWN_TYPE); in master_to_zval()
572 if (enc != NULL && enc != encode) { in master_to_zval()
577 if (enc == tmp->details.sdl_type->encode || in master_to_zval()
578 tmp == tmp->details.sdl_type->encode) { in master_to_zval()
582 tmp = tmp->details.sdl_type->encode; in master_to_zval()
585 encode = enc; in master_to_zval()
590 return master_to_zval_int(ret, encode, data); in master_to_zval()
1288 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1292 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1297 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1300 master_to_zval(&val, model->u.element->encode, r_node); in model_to_zval_object()
1313 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1317 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1322 master_to_zval(&val, model->u.element->encode, dummy); in model_to_zval_object()
1325 master_to_zval(&val, model->u.element->encode, node); in model_to_zval_object()
1393 sdlType->encode && type != &sdlType->encode->details) { in to_zval_object_ex()
1396 enc = sdlType->encode; in to_zval_object_ex()
1401 enc = enc->details.sdl_type->encode; in to_zval_object_ex()
1428 sdlType->encode && in to_zval_object_ex()
1429 type != &sdlType->encode->details) { in to_zval_object_ex()
1430 if (sdlType->encode->details.sdl_type && in to_zval_object_ex()
1431 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_zval_object_ex()
1432 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_zval_object_ex()
1433 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_zval_object_ex()
1441 sdlType->encode->to_zval == sdl_guess_convert_zval && in to_zval_object_ex()
1442 sdlType->encode->details.sdl_type != NULL && in to_zval_object_ex()
1443 (sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_COMPLEX || in to_zval_object_ex()
1444 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_RESTRICTION || in to_zval_object_ex()
1445 sdlType->encode->details.sdl_type->kind == XSD_TYPEKIND_EXTENSION) && in to_zval_object_ex()
1446 (sdlType->encode->details.sdl_type->encode == NULL || in to_zval_object_ex()
1447 (sdlType->encode->details.sdl_type->encode->details.type != IS_ARRAY && in to_zval_object_ex()
1448 sdlType->encode->details.sdl_type->encode->details.type != SOAP_ENC_ARRAY))) { in to_zval_object_ex()
1449 to_zval_object_ex(ret, &sdlType->encode->details, data, ce); in to_zval_object_ex()
1451 master_to_zval_int(ret, sdlType->encode, data); in to_zval_object_ex()
1473 master_to_zval_int(&base, sdlType->encode, data); in to_zval_object_ex()
1526 master_to_zval(&data, attr->encode, dummy); in to_zval_object_ex()
1615 enc = model->u.element->encode; in model_to_xml_object()
1812 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1815 enc = sdlType->encode; in to_xml_object()
1820 enc = enc->details.sdl_type->encode; in to_xml_object()
1838 sdlType->encode && type != &sdlType->encode->details) { in to_xml_object()
1839 if (sdlType->encode->details.sdl_type && in to_xml_object()
1840 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && in to_xml_object()
1841 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && in to_xml_object()
1842 sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { in to_xml_object()
1845 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1852 xmlParam = master_to_xml(sdlType->encode, tmp, style, parent); in to_xml_object()
1854 xmlParam = master_to_xml(sdlType->encode, data, style, parent); in to_xml_object()
1886 property = master_to_xml(array_el->encode, val, style, xmlParam); in to_xml_object()
1909 dummy = master_to_xml(attr->encode, zattr, SOAP_LITERAL, xmlParam); in to_xml_object()
2370 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2372 enc = elementType->encode; in to_xml_array()
2373 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2381 elementType->encode && elementType->encode->details.type_str) { in to_xml_array()
2384 enc = elementType->encode; in to_xml_array()
2385 …get_type_str(xmlParam, elementType->encode->details.ns, elementType->encode->details.type_str, &ar… in to_xml_array()
2562 elementType->encode) { in to_zval_array()
2563 enc = elementType->encode; in to_zval_array()
2569 elementType->encode) { in to_zval_array()
2570 enc = elementType->encode; in to_zval_array()
2787 if (enc == tmp->details.sdl_type->encode || in guess_zval_convert()
2788 tmp == tmp->details.sdl_type->encode) { in guess_zval_convert()
2792 tmp = tmp->details.sdl_type->encode; in guess_zval_convert()
2968 list_enc = type->encode; in to_xml_list()
3084 sdl_type->encode) { in to_zval_any()
3086 return master_to_zval_int(ret, sdl_type->encode, data); in to_zval_any()
3178 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_zval()
3179 return master_to_zval_int(ret, type->encode, data); in sdl_guess_convert_zval()
3191 if (type->encode && in sdl_guess_convert_zval()
3192 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_zval()
3193 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_zval()
3242 if (type->encode && enc != &type->encode->details) { in sdl_guess_convert_xml()
3243 ret = master_to_xml(type->encode, data, style, parent); in sdl_guess_convert_xml()
3257 if (type->encode && in sdl_guess_convert_xml()
3258 (type->encode->details.type == IS_ARRAY || in sdl_guess_convert_xml()
3259 type->encode->details.type == SOAP_ENC_ARRAY)) { in sdl_guess_convert_xml()
3458 encodePtr get_conversion(int encode) in get_conversion() argument
3462 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()