mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-07-05 02:59:20 +00:00
Changed whole Input Objects
they now lives by themselves when before they where highly connected to Form.php
This commit is contained in:
@ -2,12 +2,25 @@
|
||||
|
||||
namespace AdminPanel\Form;
|
||||
|
||||
use AdminPanel\AdminPanel;
|
||||
|
||||
class ChoiceInput extends AbstractInput
|
||||
{
|
||||
public function getOptions(): array
|
||||
public function getOptionsList(): array
|
||||
{
|
||||
return array_merge(
|
||||
parent::getOptionsList(),
|
||||
array(
|
||||
'choices'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function getAttributesList(): array
|
||||
{
|
||||
return array(
|
||||
'choices'
|
||||
'name',
|
||||
'id'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user