ePages 6.17.52 - DE_EPAGES/MultiStoreCommon/API/ObjectUpdate.pm

Package DE_EPAGES::MultiStoreCommon::API::ObjectUpdate

MultiStoreCommon ObjectUpdate

Base
Exporter
@EXPORT_OK
InsertObjectUpdate
TestObjectClass
IsSuperProduct
ObjectPathToFilePath

Functions

InsertObjectUpdate
IsSuperProduct
ObjectPathToFilePath
TestObjectClass

InsertObjectUpdate

Inserts a data record into table ObjectUpdate for bookmarking that it has been touched.

Syntax
InsertObjectUpdate($Object, $RemoveObject, $MasterPath)
Example
InsertObjectUpdate($Object)
InsertObjectUpdate($Object, 1)
InsertObjectUpdate($Object, 1, 1)
Input
$Object (DE_EPAGES::Content::API::Object::ContentObject)
content object - (optional - may be omited, if $Shop and $Path are passed)
$RemoveObject (boolean)
label object as deleted (optional, default:false)
$MasterPath (boolean)
use the 'MasterPath' instead of the relative path (optional, default:false)
$Value (string)
json string with hash with set-handler param (optional)
$MasterPathValue (string)
path of this object inside the mastershop

IsSuperProduct

Determines if the given product is a super product.

Syntax
my $IsSuperProduct = IsSuperProduct($Product);
Input
$Product (DE_EPAGES::Prodct::API::Object::Product)
product
Return
$IsSuperProduct (boolean)
is this a super product (true/false)

ObjectPathToFilePath

Converts an object path into a file path.

Syntax
my $FilePath = ObjectPathToFilePath($ObjectPath);
Input
$ObjectPath (String)
object path
Return
$FilePath (String)
file path

TestObjectClass

Determines if the object is an instance of or inherited from one of the given classes. Returns the class name if it matches else undef.

Syntax
TestObjectClass($Object, $aClassesListenedTo)
Input
$Object (DE_EPAGES::Content::API::Object::ContentObject)
content object
$aClassesListenedTo (ref.array.string)
list of classes multistore has to deal with at its hooks
Return
$ClassName (string)
class name