PHP Class Smile\ElasticsuiteCatalogRule\Block\Product\Conditions

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Magento\Backend\Block\Template, implements Magento\Framework\Data\Form\Element\Renderer\RendererInterface
Show file Open project: smile-sa/elasticsuite

Protected Properties

Property Type Description
$_template string
$conditions Magento\Rule\Block\Conditions
$element Magento\Framework\Data\Form\Element\AbstractElement
$elementFactory Magento\Framework\Data\Form\Element\Factory
$input Magento\Framework\Data\Form\Element\Text
$rule Smile\ElasticsuiteCatalogRule\Model\Rule

Public Methods

Method Description
__construct ( Magento\Backend\Block\Template\Context $context, Magento\Framework\Data\Form\Element\Factory $elementFactory, Magento\Rule\Block\Conditions $conditions, Smile\ElasticsuiteCatalogRule\Model\RuleFactory $ruleFactory, array $data = [] ) Block constructor.
getElement ( ) : Magento\Framework\Data\Form\Element\AbstractElement Get currently edited element.
getHtmlId ( ) : string Retrieve element unique container id.
getInputHtml ( ) : string Render HTML of the element using the rule engine.
getNewChildUrl ( ) : string Get URL used to create a new child condition into the rule.
render ( Magento\Framework\Data\Form\Element\AbstractElement $element )

Method Details

__construct() public method

Block constructor.
public __construct ( Magento\Backend\Block\Template\Context $context, Magento\Framework\Data\Form\Element\Factory $elementFactory, Magento\Rule\Block\Conditions $conditions, Smile\ElasticsuiteCatalogRule\Model\RuleFactory $ruleFactory, array $data = [] )
$context Magento\Backend\Block\Template\Context Templating context.
$elementFactory Magento\Framework\Data\Form\Element\Factory Form element factory.
$conditions Magento\Rule\Block\Conditions Rule conditions block.
$ruleFactory Smile\ElasticsuiteCatalogRule\Model\RuleFactory Search rule factory.
$data array Additional data.

getElement() public method

Get currently edited element.
public getElement ( ) : Magento\Framework\Data\Form\Element\AbstractElement
return Magento\Framework\Data\Form\Element\AbstractElement

getHtmlId() public method

Retrieve element unique container id.
public getHtmlId ( ) : string
return string

getInputHtml() public method

Render HTML of the element using the rule engine.
public getInputHtml ( ) : string
return string

getNewChildUrl() public method

Get URL used to create a new child condition into the rule.
public getNewChildUrl ( ) : string
return string

render() public method

public render ( Magento\Framework\Data\Form\Element\AbstractElement $element )
$element Magento\Framework\Data\Form\Element\AbstractElement

Property Details

$_template protected property

protected string $_template
return string

$conditions protected property

protected Conditions,Magento\Rule\Block $conditions
return Magento\Rule\Block\Conditions

$element protected property

protected AbstractElement,Magento\Framework\Data\Form\Element $element
return Magento\Framework\Data\Form\Element\AbstractElement

$elementFactory protected property

protected Factory,Magento\Framework\Data\Form\Element $elementFactory
return Magento\Framework\Data\Form\Element\Factory

$input protected property

protected Text,Magento\Framework\Data\Form\Element $input
return Magento\Framework\Data\Form\Element\Text

$rule protected property

protected Rule,Smile\ElasticsuiteCatalogRule\Model $rule
return Smile\ElasticsuiteCatalogRule\Model\Rule