Model/MirrorCache.php
- package
- Model
- Classes
- Kwf_Model_MirrorCache
Description
\Kwf_Model_MirrorCache
- Extends from
- \Kwf_Model_Proxy
- package
- Model
- Constants
- SYNC_AFTER_DELAY
- SYNC_ALWAYS
- SYNC_ONCE
- SYNC_SELECT_TYPE_ALL
- SYNC_SELECT_TYPE_NOSYNC
- SYNC_SELECT_TYPE_SELECT
- Properties
- $_maxSyncDelay
- $_rowClass
- $_sourceModel
- $_syncTimeField
- $_syncTimeFieldIsUnique
- $_truncateBeforeFullImport
- 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
- value
- false
SYNC_ONCE
SYNC_ONCE = 'true'
Details
- value
- true
SYNC_ALWAYS
SYNC_ALWAYS = '2'
Details
- value
- 2
SYNC_SELECT_TYPE_NOSYNC
SYNC_SELECT_TYPE_NOSYNC = 'nosync'
Details
- value
- nosync
SYNC_SELECT_TYPE_ALL
SYNC_SELECT_TYPE_ALL = 'all'
Details
- value
- all
SYNC_SELECT_TYPE_SELECT
SYNC_SELECT_TYPE_SELECT = 'select'
Details
- value
- select
Properties
$_maxSyncDelay
$_maxSyncDelay = '300'
Max sync delay in seconds. Default is to 5 minutes
Details
- visibility
- protected
- default
- 300
- final
- false
- static
- false
$_rowClass
$_rowClass = 'Kwf_Model_MirrorCache_Row'
Details
- visibility
- protected
- default
- Kwf_Model_MirrorCache_Row
- final
- false
- static
- false
$_sourceModel
$_sourceModel = ''
Details
- visibility
- protected
- default
- final
- false
- static
- false
$_syncTimeField
$_syncTimeField = 'null'
Details
- visibility
- protected
- default
- null
- final
- false
- static
- false
$_syncTimeFieldIsUnique
$_syncTimeFieldIsUnique = 'true'
Details
- visibility
- protected
- default
- true
- final
- false
- static
- false
$_truncateBeforeFullImport
$_truncateBeforeFullImport = 'false'
Details
- visibility
- protected
- default
- false
- final
- false
- static
- false
Methods
__construct
__construct(
$config
=
array
)
:
Arguments
- $config
Details
- visibility
- public
- final
- false
- static
- false
_afterSync
_afterSync(
)
:
Details
- visibility
- protected
- final
- false
- static
- false
_beforeSynchronize
_beforeSynchronize(
)
:
Wird aufgerufen bevor ein sync stattfindet, nicht wenn kein sync notwendig ist
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
- 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
- visibility
- protected
- final
- false
- static
- false
checkCache
checkCache(
)
:
Details
- visibility
- public
- final
- false
- static
- false
- deprecated
- Use synchronize instead
countRows
countRows(
$where
=
array
)
:
Arguments
- $where
Details
- visibility
- public
- final
- false
- static
- false
getIds
getIds(
$where
=
null, $order
=
null, $limit
=
null, $start
=
null
)
:
Arguments
- $where
- $order
- $limit
- $start
Details
- visibility
- public
- final
- false
- static
- false
getRow
getRow(
$select
)
:
\Kwf_Model_Row_Interface
Arguments
- $select
Output
Details
- visibility
- public
- final
- false
- static
- false
getRows
getRows(
$where
=
array, $order
=
null, $limit
=
null, $start
=
null
)
:
Arguments
- $where
- $order
- $limit
- $start
Details
- visibility
- public
- final
- false
- static
- false
getSourceModel
getSourceModel(
)
:
Details
- visibility
- public
- final
- false
- static
- false
synchronize
synchronize(
$overrideMaxSyncDelay
=
self
)
:
Arguments
- $overrideMaxSyncDelay
Details
- visibility
- public
- final
- true
- static
- false
synchronizeAndInsertRow
synchronizeAndInsertRow(
$data
)
:
Arguments
- $data
Details
- visibility
- public
- final
- false
- static
- false
synchronizeAndUpdateRow
synchronizeAndUpdateRow(
$data
)
:
Arguments
- $data
Details
- visibility
- public
- final
- false
- static
- false