cms first commit
This commit is contained in:
22
catch/cms/tables/forms/BaseForm.php
Normal file
22
catch/cms/tables/forms/BaseForm.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
namespace catchAdmin\cms\tables\forms;
|
||||
|
||||
use catchAdmin\cms\model\Category as CategoryModel;
|
||||
use catchAdmin\cms\support\DynamicFormFields;
|
||||
use catcher\library\form\Form;
|
||||
|
||||
abstract class BaseForm extends Form
|
||||
{
|
||||
protected $table = null;
|
||||
|
||||
public function create(): array
|
||||
{
|
||||
$fields = parent::create(); // TODO: Change the autogenerated stub
|
||||
|
||||
if ($this->table) {
|
||||
return array_merge($fields, (new DynamicFormFields())->build($this->table));
|
||||
}
|
||||
|
||||
return $fields;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user