class SubForm
{
- use BunchOfFields{
- addField as bofAddField;
- }
+ use BunchOfFields;
public function __construct()
{
}
- public function addField($name, $type = 'Text', $label = '', $attributes = [])
- {
- $reserved = ['type','name'];
- if (in_array($name, $reserved)) {
- throw new \Exception('The field name `' . $name . '` is a reserved name and can not be used in a subform.');
- }
- return $this->bofAddField($name,$type,$label,$attributes);
- }
+// public function addField($name, $type = 'Text', $label = '', $attributes = [])
+// {
+// $reserved = ['type','name'];
+// if (in_array($name, $reserved)) {
+// throw new \Exception('The field name `' . $name . '` is a reserved name and can not be used in a subform.');
+// }
+// return $this->bofAddField($name,$type,$label,$attributes);
+// }
}