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
1125 if (model == NULL) { in schema_group()
1126 cur_type->model = newModel; in schema_group()
1128 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_group()
1181 …e(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr choiceType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_choice() argument
1190 if (model == NULL) { in schema_choice()
1191 cur_type->model = newModel; in schema_choice()
1193 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_choice()
1231 …ence(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr seqType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_sequence() argument
1240 if (model == NULL) { in schema_sequence()
1241 cur_type->model = newModel; in schema_sequence()
1243 zend_hash_next_index_insert(model->u.content,&newModel,sizeof(sdlContentModelPtr), NULL); in schema_sequence()
1283 …_any(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr anyType, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_any() argument
1285 if (model != NULL) { in schema_any()
1293 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_any()
1478 …ment(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTypePtr cur_type, sdlContentModelPtr model) in schema_element() argument
1556 if (model != NULL) { in schema_element()
1565 zend_hash_next_index_insert(model->u.content, &newModel, sizeof(sdlContentModelPtr), NULL); in schema_element()
2140 static void schema_content_model_fixup(sdlCtx *ctx, sdlContentModelPtr model) in schema_content_model_fixup() argument
2142 switch (model->kind) { in schema_content_model_fixup()
2146 …if (ctx->sdl->groups && zend_hash_find(ctx->sdl->groups, model->u.group_ref, strlen(model->u.group… in schema_content_model_fixup()
2148 efree(model->u.group_ref); in schema_content_model_fixup()
2149 model->kind = XSD_CONTENT_GROUP; in schema_content_model_fixup()
2150 model->u.group = (*tmp); in schema_content_model_fixup()
2157 if (model->max_occurs != 1) { in schema_content_model_fixup()
2161 zend_hash_internal_pointer_reset_ex(model->u.content, &pos); in schema_content_model_fixup()
2162 while (zend_hash_get_current_data_ex(model->u.content, (void**)&tmp, &pos) == SUCCESS) { in schema_content_model_fixup()
2164 (*tmp)->max_occurs = model->max_occurs; in schema_content_model_fixup()
2165 zend_hash_move_forward_ex(model->u.content, &pos); in schema_content_model_fixup()
2168 model->kind = XSD_CONTENT_ALL; in schema_content_model_fixup()
2169 model->min_occurs = 1; in schema_content_model_fixup()
2170 model->max_occurs = 1; in schema_content_model_fixup()
2177 zend_hash_internal_pointer_reset(model->u.content); in schema_content_model_fixup()
2178 while (zend_hash_get_current_data(model->u.content, (void**)&tmp) == SUCCESS) { in schema_content_model_fixup()
2180 zend_hash_move_forward(model->u.content); in schema_content_model_fixup()
2225 if (type->model) { in schema_type_fixup()
2226 schema_content_model_fixup(ctx, type->model); in schema_type_fixup()
2364 if (type->model) { in delete_type()
2365 delete_model((void**)&type->model); in delete_type()
2411 if (type->model) { in delete_type_persistent()
2412 delete_model_persistent((void**)&type->model); in delete_type_persistent()