22 lines
522 B
PHP
22 lines
522 B
PHP
<?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;
|
|
}
|
|
} |