Lines Matching refs:model

33 …nce(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdlContentModelPtr model);
34 …all(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePtr cur_type, sdlContentModelPtr model);
35 …(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sdlContentModelPtr model);
36 …p(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr groupType, sdlTypePtr cur_type, sdlContentModelPtr model);
37 …any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePtr cur_type, sdlContentModelPtr model);
38 …ent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlContentModelPtr model);
983 void schema_min_max(xmlNodePtr node, sdlContentModelPtr model) in schema_min_max() argument
988 model->min_occurs = atoi((char*)attr->children->content); in schema_min_max()
990 model->min_occurs = 1; in schema_min_max()
996 model->max_occurs = -1; in schema_min_max()
998 model->max_occurs = atoi((char*)attr->children->content); in schema_min_max()
1001 model->max_occurs = 1; in schema_min_max()
1014 …hema_all(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr all, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_all() argument
1023 if (model == NULL) { in schema_all()
1024 cur_type->model = newModel; in schema_all()
1026 zend_hash_next_index_insert_ptr(model->u.content, newModel); in schema_all()
1058 …up(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr groupType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_group() argument
1134 if (model == NULL) { in schema_group()
1135 cur_type->model = newModel; in schema_group()
1137 zend_hash_next_index_insert_ptr(model->u.content, newModel); in schema_group()
1190 …e(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_choice() argument
1199 if (model == NULL) { in schema_choice()
1200 cur_type->model = newModel; in schema_choice()
1202 zend_hash_next_index_insert_ptr(model->u.content, newModel); in schema_choice()
1240 …ence(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_sequence() argument
1249 if (model == NULL) { in schema_sequence()
1250 cur_type->model = newModel; in schema_sequence()
1252 zend_hash_next_index_insert_ptr(model->u.content, newModel); in schema_sequence()
1292 …_any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr anyType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_any() argument
1294 if (model != NULL) { in schema_any()
1302 zend_hash_next_index_insert_ptr(model->u.content, newModel); in schema_any()
1487 …ment(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_element() argument
1573 if (model != NULL) { in schema_element()
1582 zend_hash_next_index_insert_ptr(model->u.content, newModel); in schema_element()
2182 static void schema_content_model_fixup(sdlCtx *ctx, sdlContentModelPtr model) in schema_content_model_fixup() argument
2184 switch (model->kind) { in schema_content_model_fixup()
2188 …->groups && (tmp = zend_hash_str_find_ptr(ctx->sdl->groups, model->u.group_ref, strlen(model->u.gr… in schema_content_model_fixup()
2190 efree(model->u.group_ref); in schema_content_model_fixup()
2191 model->kind = XSD_CONTENT_GROUP; in schema_content_model_fixup()
2192 model->u.group = tmp; in schema_content_model_fixup()
2194 … soap_error1(E_ERROR, "Parsing Schema: unresolved group 'ref' attribute '%s'", model->u.group_ref); in schema_content_model_fixup()
2199 if (model->max_occurs != 1) { in schema_content_model_fixup()
2202 ZEND_HASH_FOREACH_PTR(model->u.content, tmp) { in schema_content_model_fixup()
2204 tmp->max_occurs = model->max_occurs; in schema_content_model_fixup()
2207 model->kind = XSD_CONTENT_ALL; in schema_content_model_fixup()
2208 model->min_occurs = 1; in schema_content_model_fixup()
2209 model->max_occurs = 1; in schema_content_model_fixup()
2216 ZEND_HASH_FOREACH_PTR(model->u.content, tmp) { in schema_content_model_fixup()
2261 if (type->model) { in schema_type_fixup()
2262 schema_content_model_fixup(ctx, type->model); in schema_type_fixup()
2392 if (type->model) { in delete_type()
2394 ZVAL_PTR(&zv, type->model); in delete_type()
2441 if (type->model) { in delete_type_persistent()
2442 delete_model_persistent_int(type->model); in delete_type_persistent()