Package DE_EPAGES::ShopConfiguration::API::Object::RemoteObject
Provides access from the site database to an object in a store database.
Example |
my $RemoteObject = DE_EPAGES::ShopConfiguration::API::Object::RemoteObject->new( Store => $Store, ObjectID => $ObjectID ); $RemoteObject->set( { WebServer => 'www.server.com' } ); |
Functions
- child
- delete
- existsChild
- factoryService
- folder
- get
- getLoop
- id
- insertChild
- new
- objectService
- set
- store
child
Returns the direct child object with the given alias name.
Syntax |
$RemoteChildObject = $RemoteObject->child( $Alias ); |
Input |
|
Return |
|
delete
Deletes the remote object.
Syntax |
$RemoteObject->delete; |
existsChild
Returns true if the direct child object with the given alias name exists.
Syntax |
$Exists = $RemoteObject->existsChild( $Alias ); |
Return |
|
factoryService
Returns a web service client of the FactoryService.
Syntax |
$FactoryService = $self->factoryService; $FactoryService = $self->factoryService( $Store ); |
Input |
|
Return |
|
folder
Returns the folder object with the given alias name.
Syntax |
$RemoteFolderObject = $RemoteObject->folder( $Alias ); |
Input |
|
Return |
|
get
Returns attribute values of an object.
Syntax |
$hValues = $RemoteObject->get( $aNames ); $hValues = $RemoteObject->get( $aNames, $LanguageCode ); |
Example |
$Position = $RemoteObject->get( ['Position'] )->{'Position'}; |
Input |
|
Return |
|
getLoop
Returns attribute values of multiple objects.
Syntax |
$ahValues = $RemoteObject->getLoop( $aObjectIDs, $aNames ); $ahValues = $RemoteObject->getLoop( $aObjectIDs, $aNames, $LanguageCode ); |
Input |
|
Return |
|
id
Returns or sets the object id within the remote database.
Syntax |
$ObjectID = $self->id; $self->id( $ObjectID ); |
Input |
|
Return |
|
insertChild
Returns a new inserted child object.
Syntax |
$RemoteChildObject = $RemoteObject->insertChild($RemoteClassObject, $hValues ); |
Input |
|
Return |
|
new
Creates a RemoteObject.
Syntax |
$RemoteObject = DE_EPAGES::ShopConfiguration::API::Object::RemoteObject->new( Store => $Store, ObjectID => $ObjectID ); |
Input |
|
Return |
|
objectService
Returns a web service client of the ObjectService.
Syntax |
$ObjectService = $self->objectService; $ObjectService = $self->objectService( $Store ); |
Input |
|
Return |
|
set
Sets attribute values of an object.
Syntax |
$RemoteObject->set( $hValues ); $RemoteObject->set( $hValues, $LanguageCode ); |
Example |
$RemoteObject->set( { Position => 21 } ); |
Input |
|
store
Returns the store database object where the shop data is stored.
Syntax |
$Store = $self->store; |
Return |
|