Property | Type | Description | |
---|---|---|---|
$builder | WellCommerce\Component\Form\FormBuilderInterface | ||
$configuration | DOMDocument | ||
$configurationFile | |||
$defaultValues | |||
$form | WellCommerce\Component\Form\Elements\Form | ||
$layoutBoxSelector | |||
$nextFieldId | |||
$theme | |||
$themeDir |
Method | 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 |
Method | 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 |
Method | 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 | |
return | mixed |
protected addFieldFont ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
return | mixed |
protected addFieldHeight ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
return | mixed |
protected addFieldWidth ( DOMElement $field ) : mixed | ||
$field | DOMElement | |
return | 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 | |
return | WellCommerce\Component\Form\Elements\ElementInterface |
public getDefaultValues ( $field ) : array | ||
$field | ||
return | array |
protected getFieldAttributes ( DOMElement $item ) : array | ||
$item | DOMElement | |
return | array |
protected getFieldName ( DOMElement $item ) : string | ||
$item | DOMElement | |
return | string |
protected getFieldSelector ( DOMElement $item ) : mixed | ||
$item | DOMElement | |
return | mixed |
protected getFieldTypeSuffix ( $type ) : mixed | ||
$type | ||
return | mixed |
public loadThemeFieldsConfiguration ( |
||
$theme | ||
$layoutBoxSelector | string |
protected FormBuilderInterface,WellCommerce\Component\Form $builder | ||
return | WellCommerce\Component\Form\FormBuilderInterface |
protected Form,WellCommerce\Component\Form\Elements $form | ||
return | WellCommerce\Component\Form\Elements\Form |
protected Theme,WellCommerce\Bundle\ThemeBundle\Entity $theme | ||
return |