PHP Class Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig

Author: Romain Ruaud ([email protected])
Inheritance: extends Magento\Config\Model\Config
Show file Open project: smile-sa/elasticsuite

Protected Properties

Property Type Description
$containersSource Smile\ElasticsuiteCore\Model\Search\Request\Source\Containers
$fullConfig If getting full config or not

Public Methods

Method Description
__construct ( Magento\Framework\App\Config\ReinitableConfigInterface $config, Magento\Framework\Event\ManagerInterface $eventManager, Magento\Config\Model\Config\Structure $configStructure, Magento\Framework\DB\TransactionFactory $transactionFactory, Magento\Config\Model\Config\Loader $configLoader, Magento\Framework\App\Config\ValueFactory $configValueFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Containers $containersSource, array $data = [] ) Class constructor
load ( ) : array Load config data for section
save ( ) Save config section Require set: section, website, store and groups

Private Methods

Method Description
initScope ( ) : void Get scope name and scopeId

Method Details

__construct() public method

Class constructor
public __construct ( Magento\Framework\App\Config\ReinitableConfigInterface $config, Magento\Framework\Event\ManagerInterface $eventManager, Magento\Config\Model\Config\Structure $configStructure, Magento\Framework\DB\TransactionFactory $transactionFactory, Magento\Config\Model\Config\Loader $configLoader, Magento\Framework\App\Config\ValueFactory $configValueFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Containers $containersSource, array $data = [] )
$config Magento\Framework\App\Config\ReinitableConfigInterface Configuration interface
$eventManager Magento\Framework\Event\ManagerInterface Event Manager
$configStructure Magento\Config\Model\Config\Structure Configuration Structure
$transactionFactory Magento\Framework\DB\TransactionFactory Transaction Factory
$configLoader Magento\Config\Model\Config\Loader Configuration Loader
$configValueFactory Magento\Framework\App\Config\ValueFactory Configuration Value Factory
$storeManager Magento\Store\Model\StoreManagerInterface Store Manager
$containersSource Smile\ElasticsuiteCore\Model\Search\Request\Source\Containers The Containers source model
$data array The data

load() public method

Load config data for section
public load ( ) : array
return array

save() public method

Save config section Require set: section, website, store and groups
public save ( )

Property Details

$containersSource protected property

protected Containers,Smile\ElasticsuiteCore\Model\Search\Request\Source $containersSource
return Smile\ElasticsuiteCore\Model\Search\Request\Source\Containers

$fullConfig protected property

If getting full config or not
protected $fullConfig