Package DE_EPAGES::MultiStoreConnector::API::MSSynchronization
abstract synchronization class
Functions
- clearPageCache
- clearSiteCache
- dbh
- dbi
- getAttributeMandatory
- getAttributeNames
- getAttributeParameterType
- isArray
- isBool
- isInteger
- isNumber
- isObject
- isParamVerificationActivated
- isString
- new
- resetAttributeCache
- resetContentObjectCache
- resetGlobalContentObjectCache
- resetObjectCache
- resetObjectDALCache
- resetObjectGUIDCache
- synchronizeCache
- transformInputParameters
- updatePageCache
- verifyContent
- verifySubshops
clearPageCache
clear page cache for a object in a shop
Syntax |
$Result = $Synchronization->clearPageCache($Shop,$Object); |
Input |
|
clearSiteCache
clear site cache for a shop
Syntax |
$Result = $Synchronization->clearSiteCache($Shop); |
Input |
|
dbh
return the SQLite database handler object
Syntax |
$DBH = $HardCoreSynchronization->dbh(); |
Example |
$self->dbh()->prepare('...'); |
Return |
|
dbi
return the SQLite database handler object
Syntax |
$DBH = $HardCoreSynchronization->dbi(); |
Example |
$self->dbi()->prepare('...'); |
Return |
|
getAttributeMandatory
get parameter type of attribute name
Syntax |
$Mandatory = $self->getAttributeMandatory($AttributeName); |
Input |
|
Return |
|
getAttributeNames
get all existing attribute names
Syntax |
$aAttributeNames = $self->getAttributeNames(); |
Return |
|
getAttributeParameterType
get parameter type of attribute name
Syntax |
$ParameterType = $self->getAttributeParameterType($AttributeName); |
Input |
|
Return |
|
isArray
returns true if variable is a JSON array (array reference)
Syntax |
$IsObject = $Synchronization->isArray($Check); |
Input |
|
Return |
|
isBool
returns true if variable is a boolean
Syntax |
$IsBool = $Synchronization->isBool($Check); |
Input |
|
Return |
|
isInteger
returns true if variable is an integer
Syntax |
$IsInteger = $Synchronization->isInteger($Check); |
Input |
|
Return |
|
isNumber
returns true if variable is a number
Syntax |
$IsNumber = $Synchronization->isNumber($Check); |
Input |
|
Return |
|
isObject
returns true if variable is a JSON object (hash reference)
Syntax |
$IsObject = $Synchronization->isObject($Check); |
Input |
|
Return |
|
isParamVerificationActivated
returns true if parameter verification is activated for synchronisation
Syntax |
$IsActivated = $Synchronization->isParamVerificationActivated(); |
Return |
|
isString
returns true if variable is a string
Syntax |
$IsString = $Synchronization->isString($Check); |
Input |
|
Return |
|
new
Creates a new synchronization object of DE_EPAGES::MultiStoreConnector::API::MSSynchronization.
Syntax |
$Synchronization = DE_EPAGES::MultiStoreConnector::API::MSSynchronization->new(%options); |
Input |
|
Return |
|
resetAttributeCache
resets the cache of attributes for the given attribute class
Syntax |
$Result = $Synchronization->resetAttributeCache($AttributeClassID); |
Input |
|
resetContentObjectCache
removes complete cache for a object
Syntax |
$Result = $Synchronization->resetContentObjectCache($ShopID); |
Input |
|
resetGlobalContentObjectCache
removes complete cache for all content objects
Syntax |
$Result = $Synchronization->resetGlobalContentObjectCache(); |
Return |
|
resetObjectCache
removes complete cache for a object
Syntax |
$Result = $Synchronization->resetObjectCache(); |
Input |
|
resetObjectDALCache
removes DAL cache for a object
Syntax |
$Result = $Synchronization->resetObjectDALCache($ObjectID); |
Input |
|
resetObjectGUIDCache
removes complete cache for a object by accessing with guid
Syntax |
$Result = $Synchronization->resetObjectGUIDCache($GUID); |
Input |
|
synchronizeCache
synchronize the cache for epages installation
Syntax |
$Result = $Synchronization->synchronizeCache(); |
transformInputParameters
transform attributes e.g. 'true' -> 1 etc.
Syntax |
$self->transformInputParameters($hParameters); |
Input |
|
updatePageCache
updates page cache for a object
Syntax |
$Result = $Synchronization->updatePageCache($Object); |
Input |
|
Return |
|
verifyContent
verify attributes parameter, throws error if verification fails
Syntax |
$self->verifyContent($hContent); |
Input |
|
verifySubshops
Checks if the given shop aliases are in the database (store) If at least one alias is invalid, an error is thrown, otherwise the method returns without error.
Syntax |
$Synchronization->verifySubshops($aMultiStoreSubShops, $StoreName); |
Input |
|