Class Mage_Index_Model_Indexer

Description

Indexer strategy

Located in /Index/Model/Indexer.php (line 30)


	
			
Variable Summary
Method Summary
Mage_Index_Model_Indexer __construct ()
Mage_Index_Model_Indexer indexEvents ([null $entity = null], [null $type = null])
bool isLocked ()
void lockIndexer ()
Mage_Index_Model_Event logEvent ( $entity, string $entityType, string $eventType, [bool $doSave = true])
Mage_Index_Model_Indexer processEntityAction ( $entity, string $entityType, string $eventType)
void unlockIndexer ()
Mage_Index_Model_Indexer _runAll (string $method, array $args)
Variables
bool $_lockFlag = false (line 44)

Indexer processes lock flag

  • access: protected
Mage_Index_Model_Mysql4_Process_Collection $_processesCollection (line 37)

Collection of available processes

  • access: protected
Methods
Constructor __construct (line 49)

Class constructor. Initialize index processes based on configuration

  • access: public
Mage_Index_Model_Indexer __construct ()
getProcessByCode (line 86)

Get index process by specific code

  • return: | false
  • access: public
Mage_Index_Model_Process getProcessByCode (string $code)
  • string $code
getProcessById (line 70)

Get index process by specific id

  • return: | false
  • access: public
Mage_Index_Model_Process getProcessById (int $processId)
  • int $processId
getProcessesCollection (line 59)

Get collection of all available processes

  • access: public
Mage_Index_Model_Mysql4_Process_Collection getProcessesCollection ()
indexEvent (line 148)

Index one event by all processes

  • access: public
indexEvents (line 132)

Indexing all pending events.

Events set can be limited by event entity and type

  • access: public
Mage_Index_Model_Indexer indexEvents ([null $entity = null], [null $type = null])
  • null $entity: | string $entity
  • null $type: | string $type
isLocked (line 119)

Check if onject actions are locked

  • access: public
bool isLocked ()
lockIndexer (line 99)

Lock indexer actions

  • access: public
void lockIndexer ()
logEvent (line 182)

Create new event log and register event in all processes

  • access: public
Mage_Index_Model_Event logEvent ( $entity, string $entityType, string $eventType, [bool $doSave = true])
  • Varien_Object $entity
  • string $entityType
  • string $eventType
  • bool $doSave
processEntityAction (line 209)

Create new event log and register event in all processes.

Initiate events indexing procedure.

  • access: public
Mage_Index_Model_Indexer processEntityAction ( $entity, string $entityType, string $eventType)
  • Varien_Object $entity
  • string $entityType
  • string $eventType
registerEvent (line 163)

Register event in each indexing process process

  • access: public
void registerEvent (Mage_Index_Model_Event $event)
unlockIndexer (line 108)

Unlock indexer actions

  • access: public
void unlockIndexer ()
_runAll (line 234)

Run all processes method with parameters Run by depends priority Not recursive call is not implement

  • access: protected
Mage_Index_Model_Indexer _runAll (string $method, array $args)
  • string $method
  • array $args

Documentation generated on Fri, 11 Feb 2011 17:06:34 +0200 by phpDocumentor 1.4.3