Lines Matching refs:model

34 …nce(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdlContentModelPtr model);
35 …all(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePtr cur_type, sdlContentModelPtr model);
36 …(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sdlContentModelPtr model);
37 …p(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr groupType, sdlTypePtr cur_type, sdlContentModelPtr model);
38 …any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr extType, sdlTypePtr cur_type, sdlContentModelPtr model);
39 …ent(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlContentModelPtr model);
982 void schema_min_max(xmlNodePtr node, sdlContentModelPtr model) in schema_min_max() argument
987 model->min_occurs = atoi((char*)attr->children->content); in schema_min_max()
989 model->min_occurs = 1; in schema_min_max()
995 model->max_occurs = -1; in schema_min_max()
997 model->max_occurs = atoi((char*)attr->children->content); in schema_min_max()
1000 model->max_occurs = 1; in schema_min_max()
1013 …hema_all(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr all, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_all() argument
1022 if (model == NULL) { in schema_all()
1023 cur_type->model = newModel; in schema_all()
1025 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_all()
1057 …up(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr groupType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_group() argument
1133 if (model == NULL) { in schema_group()
1134 cur_type->model = newModel; in schema_group()
1136 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_group()
1189 …e(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_choice() argument
1198 if (model == NULL) { in schema_choice()
1199 cur_type->model = newModel; in schema_choice()
1201 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_choice()
1239 …ence(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_sequence() argument
1248 if (model == NULL) { in schema_sequence()
1249 cur_type->model = newModel; in schema_sequence()
1251 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_sequence()
1291 …_any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr anyType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_any() argument
1293 if (model != NULL) { in schema_any()
1301 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_any()
1486 …ment(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_element() argument
1572 if (model != NULL) { in schema_element()
1581 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_element()
2183 static void schema_content_model_fixup(sdlCtx *ctx, sdlContentModelPtr model) in schema_content_model_fixup() argument
2185 switch (model->kind) { in schema_content_model_fixup()
2189 …if (ctx->sdl->groups && zend_hash_find(ctx->sdl->groups, model->u.group_ref, strlen(model->u.group… in schema_content_model_fixup()
2191 efree(model->u.group_ref); in schema_content_model_fixup()
2192 model->kind = XSD_CONTENT_GROUP; in schema_content_model_fixup()
2193 model->u.group = (*tmp); in schema_content_model_fixup()
2195 … soap_error1(E_ERROR, "Parsing Schema: unresolved group 'ref' attribute '%s'", model->u.group_ref); in schema_content_model_fixup()
2200 if (model->max_occurs != 1) { in schema_content_model_fixup()
2204 zend_hash_internal_pointer_reset_ex(model->u.content, &pos); in schema_content_model_fixup()
2205 while (zend_hash_get_current_data_ex(model->u.content, (void**)&tmp, &pos) == SUCCESS) { in schema_content_model_fixup()
2207 (*tmp)->max_occurs = model->max_occurs; in schema_content_model_fixup()
2208 zend_hash_move_forward_ex(model->u.content, &pos); in schema_content_model_fixup()
2211 model->kind = XSD_CONTENT_ALL; in schema_content_model_fixup()
2212 model->min_occurs = 1; in schema_content_model_fixup()
2213 model->max_occurs = 1; in schema_content_model_fixup()
2220 zend_hash_internal_pointer_reset(model->u.content); in schema_content_model_fixup()
2221 while (zend_hash_get_current_data(model->u.content, (void**)&tmp) == SUCCESS) { in schema_content_model_fixup()
2223 zend_hash_move_forward(model->u.content); in schema_content_model_fixup()
2269 if (type->model) { in schema_type_fixup()
2270 schema_content_model_fixup(ctx, type->model); in schema_type_fixup()
2408 if (type->model) { in delete_type()
2409 delete_model((void**)&type->model); in delete_type()
2455 if (type->model) { in delete_type_persistent()
2456 delete_model_persistent((void**)&type->model); in delete_type_persistent()