Свойство | Type | Description | |
---|---|---|---|
$builder | WellCommerce\Component\Form\FormBuilderInterface | ||
$configuration | DOMDocument | ||
$configurationFile | |||
$defaultValues | |||
$form | WellCommerce\Component\Form\Elements\Form | ||
$layoutBoxSelector | |||
$nextFieldId | |||
$theme | |||
$themeDir |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 | |
Résultat | mixed |
protected addFieldFont ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Résultat | mixed |
protected addFieldHeight ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Résultat | mixed |
protected addFieldWidth ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
Résultat | 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 | |
Résultat | WellCommerce\Component\Form\Elements\ElementInterface |
public getDefaultValues ( $field ) : array | ||
$field | ||
Résultat | array |
protected getFieldAttributes ( DOMElement $item ) : array | ||
$item | DOMElement | |
Résultat | array |
protected getFieldName ( DOMElement $item ) : string | ||
$item | DOMElement | |
Résultat | string |
protected getFieldSelector ( DOMElement $item ) : mixed | ||
$item | DOMElement | |
Résultat | mixed |
protected getFieldTypeSuffix ( $type ) : mixed | ||
$type | ||
Résultat | mixed |
public loadThemeFieldsConfiguration ( |
||
$theme | ||
$layoutBoxSelector | string |
protected FormBuilderInterface,WellCommerce\Component\Form $builder | ||
Résultat | WellCommerce\Component\Form\FormBuilderInterface |
protected Form,WellCommerce\Component\Form\Elements $form | ||
Résultat | WellCommerce\Component\Form\Elements\Form |
protected Theme,WellCommerce\Bundle\ThemeBundle\Entity $theme | ||
Résultat |