Свойство | Тип | Описание | |
---|---|---|---|
$builder | WellCommerce\Component\Form\FormBuilderInterface | ||
$configuration | DOMDocument | ||
$configurationFile | |||
$defaultValues | |||
$form | WellCommerce\Component\Form\Elements\Form | ||
$layoutBoxSelector | |||
$nextFieldId | |||
$theme | |||
$themeDir |
Метод | Описание | |
---|---|---|
addFormFields ( WellCommerce\Component\Form\FormBuilderInterface $builder ) | Adds required theme configuration fields to form | |
getDefaultValues ( $field ) : array | Returns default values for field | |
loadThemeFieldsConfiguration ( |
Initializes generator configuration |
Метод | Описание | |
---|---|---|
addField ( DOMElement $field ) | Resolves field type and adds it to fieldset | |
addFieldBackground ( DOMElement $field ) : mixed | Adds background selector | |
addFieldFont ( DOMElement $field ) : mixed | Adds font selector | |
addFieldHeight ( DOMElement $field ) : mixed | Adds height input | |
addFieldWidth ( DOMElement $field ) : mixed | Adds width input | |
addFieldset ( DOMElement $node ) | Adds new configuration fieldset to form | |
addSizeInput ( string $type, array $attributes ) : WellCommerce\Component\Form\Elements\ElementInterface | Returns text field | |
getFieldAttributes ( DOMElement $item ) : array | Returns an array containing all required field attributes | |
getFieldName ( DOMElement $item ) : string | Returns form name or sets it automatically | |
getFieldSelector ( DOMElement $item ) : mixed | Returns field specific selector | |
getFieldTypeSuffix ( $type ) : mixed | Returns field element suffix |
Метод | Описание | |
---|---|---|
getDirectory ( ) : string | Returns theme working directory | |
loadConfiguration ( ) : DOMDocument | null | Loads fields configuration from fields.xml file | |
loadFile ( $file ) : DOMDocument | Parses XML file |
protected addField ( DOMElement $field ) | ||
$field | DOMElement |
protected addFieldBackground ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Результат | mixed |
protected addFieldFont ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Результат | mixed |
protected addFieldHeight ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Результат | mixed |
protected addFieldWidth ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Результат | mixed |
protected addFieldset ( DOMElement $node ) | ||
$node | DOMElement |
public addFormFields ( WellCommerce\Component\Form\FormBuilderInterface $builder ) | ||
$builder | WellCommerce\Component\Form\FormBuilderInterface |
protected addSizeInput ( string $type, array $attributes ) : WellCommerce\Component\Form\Elements\ElementInterface | ||
$type | string | |
$attributes | array | |
Результат | WellCommerce\Component\Form\Elements\ElementInterface |
public getDefaultValues ( $field ) : array | ||
$field | ||
Результат | array |
protected getFieldAttributes ( DOMElement $item ) : array | ||
$item | DOMElement | |
Результат | array |
protected getFieldName ( DOMElement $item ) : string | ||
$item | DOMElement | |
Результат | string |
protected getFieldSelector ( DOMElement $item ) : mixed | ||
$item | DOMElement | |
Результат | mixed |
protected getFieldTypeSuffix ( $type ) : mixed | ||
$type | ||
Результат | mixed |
public loadThemeFieldsConfiguration ( |
||
$theme | ||
$layoutBoxSelector | string |
protected FormBuilderInterface,WellCommerce\Component\Form $builder | ||
Результат | WellCommerce\Component\Form\FormBuilderInterface |
protected Form,WellCommerce\Component\Form\Elements $form | ||
Результат | WellCommerce\Component\Form\Elements\Form |
protected Theme,WellCommerce\Bundle\ThemeBundle\Entity $theme | ||
Результат |