Model/MirrorCache.php
- package
- Model
- Classes
- Kwf_Model_MirrorCache
Description
\Kwf_Model_MirrorCache
- Extends from
- \Kwf_Model_Proxy
- package
- Model
 Constants Constants
- SYNC_AFTER_DELAY
- SYNC_ALWAYS
- SYNC_ONCE
- SYNC_SELECT_TYPE_ALL
- SYNC_SELECT_TYPE_NOSYNC
- SYNC_SELECT_TYPE_SELECT
 Properties Properties
- $_maxSyncDelay
- $_rowClass
- $_sourceModel
- $_syncTimeField
- $_syncTimeFieldIsUnique
- $_truncateBeforeFullImport
 Methods Methods
- __construct
- _afterSync
- _beforeSynchronize
- _getSynchronizeSelect
- _getSynchronizeVars
- checkCache
- countRows
- getIds
- getRow
- getRows
- getSourceModel
- synchronize
- synchronizeAndInsertRow
- synchronizeAndUpdateRow
Description
Constants
SYNC_AFTER_DELAY
 SYNC_AFTER_DELAY = 'false'
      
 Details
 Details
- value
- false
SYNC_ONCE
 SYNC_ONCE = 'true'
      
 Details
 Details
- value
- true
SYNC_ALWAYS
 SYNC_ALWAYS = '2'
      
 Details
 Details
- value
- 2
SYNC_SELECT_TYPE_NOSYNC
 SYNC_SELECT_TYPE_NOSYNC = 'nosync'
      
 Details
 Details
- value
- nosync
SYNC_SELECT_TYPE_ALL
 SYNC_SELECT_TYPE_ALL = 'all'
      
 Details
 Details
- value
- all
SYNC_SELECT_TYPE_SELECT
 SYNC_SELECT_TYPE_SELECT = 'select'
      
 Details
 Details
- value
- select
Properties
$_maxSyncDelay
 $_maxSyncDelay = '300'Max sync delay in seconds. Default is to 5 minutes
 Details
 Details
- visibility
- protected
- default
- 300
- final
- false
- static
- false
$_rowClass
 $_rowClass = 'Kwf_Model_MirrorCache_Row'
 Details
 Details
- visibility
- protected
- default
- Kwf_Model_MirrorCache_Row
- final
- false
- static
- false
$_sourceModel
 $_sourceModel = ''
 Details
 Details
- visibility
- protected
- default
- final
- false
- static
- false
$_syncTimeField
 $_syncTimeField = 'null'
 Details
 Details
- visibility
- protected
- default
- null
- final
- false
- static
- false
$_syncTimeFieldIsUnique
 $_syncTimeFieldIsUnique = 'true'
 Details
 Details
- visibility
- protected
- default
- true
- final
- false
- static
- false
$_truncateBeforeFullImport
 $_truncateBeforeFullImport = 'false'
 Details
 Details
- visibility
- protected
- default
- false
- final
- false
- static
- false
Methods
__construct
__construct(
           $config
              =
              array
          )
        
        :
        Arguments
- $config
 Details
 Details
- visibility
- public
- final
- false
- static
- false
_afterSync
_afterSync(
          
          )
        
        :
        
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_beforeSynchronize
_beforeSynchronize(
          
          )
        
        :
        Wird aufgerufen bevor ein sync stattfindet, nicht wenn kein sync notwendig ist
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_getSynchronizeSelect
_getSynchronizeSelect(
           $overrideMaxSyncDelay
          )
        
        :
        Rückgabewert false: kein sync notwendig null: alles syncen Kwf_Model_Select: das was im select steht syncen Ab KWF 1.9: Darf nicht mehr überschrieben werden, das ist keine verwendbare API mit diesen null / false Rückgabewerten.
Arguments
- $overrideMaxSyncDelay
 Details
 Details
- visibility
- protected
- final
- true
- static
- false
- deprecated
- KWF 1.9, 07.05.2010
- see
- _getSynchronizeVars
_getSynchronizeVars
_getSynchronizeVars(
          \$syncType $syncType
          )
        
        :
        array
Arguments
- $syncType
- \$syncType
 Any of SYNC_ALWAYS, SYNC_AFTER_DELAY or SYNC_ONCE
Output
- array
- $ret An Array with keys 'type' => any of: SYNC_SELECT_TYPE_NOSYNC, SYNC_SELECT_TYPE_ALL, SYNC_SELECT_TYPE_SELECT 'select' => the select object for syncing or null (depending on type)
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
checkCache
checkCache(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- false
- deprecated
- Use synchronize instead
countRows
countRows(
           $where
              =
              array
          )
        
        :
        Arguments
- $where
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getIds
getIds(
           $where
              =
              null,  $order
              =
              null,  $limit
              =
              null,  $start
              =
              null
          )
        
        :
        Arguments
- $where
- $order
- $limit
- $start
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getRow
getRow(
           $select
          )
        
        :
        \Kwf_Model_Row_Interface
Arguments
- $select
Output
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getRows
getRows(
           $where
              =
              array,  $order
              =
              null,  $limit
              =
              null,  $start
              =
              null
          )
        
        :
        Arguments
- $where
- $order
- $limit
- $start
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getSourceModel
getSourceModel(
          
          )
        
        :
        
 Details
 Details
- visibility
- public
- final
- false
- static
- false
synchronize
synchronize(
           $overrideMaxSyncDelay
              =
              self
          )
        
        :
        Arguments
- $overrideMaxSyncDelay
 Details
 Details
- visibility
- public
- final
- true
- static
- false
synchronizeAndInsertRow
synchronizeAndInsertRow(
           $data
          )
        
        :
        Arguments
- $data
 Details
 Details
- visibility
- public
- final
- false
- static
- false
synchronizeAndUpdateRow
synchronizeAndUpdateRow(
           $data
          )
        
        :
        Arguments
- $data
 Details
 Details
- visibility
- public
- final
- false
- static
- false