وهذا يخلق الكائن حقل النموذج
__construct ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) RocksFormField __construct (سلسلة $ اسم سلسلة $ ، اكتب سلسلة $ isRequired ، [سلسلة formName $ = فارغة] ، [سلسلة $ الافتراضي = فارغة])
- $name : this is the name of the form field سلسلة $ اسم : هذا هو اسم حقل النموذج
- $type : this is the type of the form field سلسلة $ اكتب : هذا هو نوع حقل النموذج
- $isRequired : this indicates if the field is a required field سلسلة $ isRequired : يشير هذا إذا كان الحقل هو حقل مطلوب
- $formName : this is the form name that field is part of. سلسلة formName $ : هذا هو اسم النموذج الذي هو جزء من الحقل. لا حاجة لذلك إذا كان هناك نموذج واحد فقط
- $default : this is the default value of the field if it is left empty. سلسلة $ الافتراضية : هذه هي القيمة الافتراضية للحقل إذا تركت فارغة.
AddRegex ( الفراغ AddRegex ( , $ باستخدام التعابير المنطقية ، ) $ رسالة)
- $ باستخدام التعابير المنطقية
- $ رسالة
هذا يتحقق من أن جميع حقول النموذج تمرير كل مستوى من التحقق من صحة الاختبارات الميدانية.
Validate () التحقق من الفراغ ()
تنفيذ ما يلي :
- RocksIValidatable : التحقق من صحة ()
__get ( الفراغ __get ( ) $ اسم)
__set ( __set باطلة ( , $ فار ، ) varValue $)
__toString () __toString الفراغ ()