Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ConfigInterface $config, ActionFactory $actionFactory, StructureFactory $structureFactory, \Magento\Framework\Mview\ViewInterface $view, Indexer\StateFactory $stateFactory, Indexer\CollectionFactory $indexersFactory, array $data=[]) | |
getId () | |
setId ($id) | |
setIdFieldName ($name) | |
getIdFieldName () | |
getViewId () | |
getActionClass () | |
getTitle () | |
getDescription () | |
getFields () | |
getSources () | |
getHandlers () | |
load ($indexerId) | |
getView () | |
getState () | |
setState (StateInterface $state) | |
isScheduled () | |
setScheduled ($scheduled) | |
isValid () | |
isInvalid () | |
isWorking () | |
invalidate () | |
getStatus () | |
getLatestUpdated () | |
reindexAll () | |
reindexRow ($id) | |
reindexList ($ids) | |
![]() | |
__construct (array $data=[]) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
getDataByPath ($path) | |
getDataByKey ($key) | |
setDataUsingMethod ($key, $args=[]) | |
getDataUsingMethod ($key, $args=null) | |
hasData ($key='') | |
toArray (array $keys=[]) | |
convertToArray (array $keys=[]) | |
toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
toJson (array $keys=[]) | |
convertToJson (array $keys=[]) | |
toString ($format='') | |
__call ($method, $args) | |
isEmpty () | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
debug ($data=null, &$objects=[]) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
Protected Member Functions | |
getActionInstance () | |
getStructureInstance () | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
Protected Attributes | |
$_idFieldName = 'indexer_id' | |
$config | |
$actionFactory | |
$structureFactory | |
$view | |
$stateFactory | |
$state | |
$indexersFactory | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
static | $_underscoreCache = [] |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 19 of file Indexer.php.
__construct | ( | ConfigInterface | $config, |
ActionFactory | $actionFactory, | ||
StructureFactory | $structureFactory, | ||
\Magento\Framework\Mview\ViewInterface | $view, | ||
Indexer\StateFactory | $stateFactory, | ||
Indexer\CollectionFactory | $indexersFactory, | ||
array | $data = [] |
||
) |
ConfigInterface | $config | |
ActionFactory | $actionFactory | |
StructureFactory | $structureFactory | |
\Magento\Framework\Mview\ViewInterface | $view | |
Indexer\StateFactory | $stateFactory | |
Indexer\CollectionFactory | $indexersFactory | |
array | $data |
Definition at line 70 of file Indexer.php.
getActionClass | ( | ) |
Return indexer action class
Implements IndexerInterface.
Definition at line 155 of file Indexer.php.
|
protected |
Return indexer action instance
Definition at line 373 of file Indexer.php.
getDescription | ( | ) |
Return indexer description
Implements IndexerInterface.
Definition at line 175 of file Indexer.php.
getFields | ( | ) |
Return indexer fields
Implements IndexerInterface.
Definition at line 185 of file Indexer.php.
getHandlers | ( | ) |
Return indexer handlers
Implements IndexerInterface.
Definition at line 205 of file Indexer.php.
getId | ( | ) |
Return ID
@codeCoverageIgnore
Implements IndexerInterface.
Definition at line 95 of file Indexer.php.
getIdFieldName | ( | ) |
getLatestUpdated | ( | ) |
Return indexer or mview latest updated time
Implements IndexerInterface.
Definition at line 352 of file Indexer.php.
getSources | ( | ) |
Return indexer sources
Implements IndexerInterface.
Definition at line 195 of file Indexer.php.
getState | ( | ) |
Return related state object
Implements IndexerInterface.
Definition at line 248 of file Indexer.php.
getStatus | ( | ) |
Return indexer status
Implements IndexerInterface.
Definition at line 342 of file Indexer.php.
|
protected |
Return indexer structure instance
Definition at line 389 of file Indexer.php.
getTitle | ( | ) |
Return indexer title
Implements IndexerInterface.
Definition at line 165 of file Indexer.php.
getView | ( | ) |
Return related view object
Implements IndexerInterface.
Definition at line 235 of file Indexer.php.
getViewId | ( | ) |
Return indexer's view ID
Implements IndexerInterface.
Definition at line 145 of file Indexer.php.
invalidate | ( | ) |
Set indexer invalid
Implements IndexerInterface.
Definition at line 330 of file Indexer.php.
isInvalid | ( | ) |
Check whether indexer is invalid
Implements IndexerInterface.
Definition at line 310 of file Indexer.php.
isScheduled | ( | ) |
Check whether indexer is run by schedule
Implements IndexerInterface.
Definition at line 274 of file Indexer.php.
isValid | ( | ) |
Check whether indexer is valid
Implements IndexerInterface.
Definition at line 300 of file Indexer.php.
isWorking | ( | ) |
Check whether indexer is working
Implements IndexerInterface.
Definition at line 320 of file Indexer.php.
load | ( | $indexerId | ) |
Fill indexer data from config
string | $indexerId |
Implements IndexerInterface.
Definition at line 217 of file Indexer.php.
reindexAll | ( | ) |
Regenerate full index
Implements IndexerInterface.
Definition at line 403 of file Indexer.php.
reindexList | ( | $ids | ) |
Regenerate rows in index by ID list
int[] | $ids |
Implements IndexerInterface.
Definition at line 444 of file Indexer.php.
reindexRow | ( | $id | ) |
Regenerate one row in index by ID
int | $id |
Implements IndexerInterface.
Definition at line 432 of file Indexer.php.
setId | ( | $id | ) |
Set ID
@codeCoverageIgnore
string | $id |
Definition at line 108 of file Indexer.php.
setIdFieldName | ( | $name | ) |
Id field name setter
@codeCoverageIgnore
string | $name |
Definition at line 122 of file Indexer.php.
setScheduled | ( | $scheduled | ) |
Turn scheduled mode on/off
bool | $scheduled |
Implements IndexerInterface.
Definition at line 285 of file Indexer.php.
setState | ( | StateInterface | $state | ) |
Set indexer state object
StateInterface | $state |
Implements IndexerInterface.
Definition at line 263 of file Indexer.php.
|
protected |
Definition at line 24 of file Indexer.php.
|
protected |
Definition at line 34 of file Indexer.php.
|
protected |
Definition at line 29 of file Indexer.php.
|
protected |
Definition at line 59 of file Indexer.php.
|
protected |
Definition at line 54 of file Indexer.php.
|
protected |
Definition at line 49 of file Indexer.php.
|
protected |
Definition at line 39 of file Indexer.php.
|
protected |
Definition at line 44 of file Indexer.php.