module DynFork::QPaladins::Check

Overview

1.Validation of Model data before saving to the database.
2.Web form validation. It is recommended to use the saving_docs?=true model parameter.

Included Modules

Direct including types

Defined in:

dynfork/paladins/check.cr

Instance Method Summary

Instance methods inherited from module DynFork::QPaladins::Groups

group_01(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), update? : Bool, save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType)), collection_ptr : Pointer(Mongo::Collection), id_ptr : Pointer(BSON::ObjectId | Nil)) : Nil group_01, group_02(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType)), collection_ptr : Pointer(Mongo::Collection)) : Nil group_02, group_03(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType)), collection_ptr : Pointer(Mongo::Collection)) : Nil group_03, group_04(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), update? : Bool, save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType))) : Nil group_04, group_05(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), update? : Bool, save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType))) : Nil group_05, group_06(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType)), collection_ptr : Pointer(Mongo::Collection), id_ptr : Pointer(BSON::ObjectId | Nil)) : Nil group_06, group_07(field_ptr : Pointer(DynFork::Globals::FieldTypes), error_symptom_ptr? : Pointer(Bool), save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType)), collection_ptr : Pointer(Mongo::Collection), id_ptr : Pointer(BSON::ObjectId | Nil)) : Nil group_07, group_08(field_ptr : Pointer(DynFork::Globals::FieldTypes), save? : Bool, result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType))) : Nil group_08, group_09(field_ptr : Pointer(DynFork::Globals::FieldTypes), result_map_ptr : Pointer(Hash(String, DynFork::Globals::ResultMapType))) : Nil group_09

Instance Method Detail

def check(collection_ptr : Pointer(Mongo::Collection), save? : Bool = false) : DynFork::Globals::OutputData #

Validation of Model data.

NOTE This method is used within the DynFork::QPaladins::Tools#valid? and DynFork::QPaladins::Save#save methods.


[View source]