ePages 6.17.39 - DE_EPAGES/Design/API/Object/NavBarElement.pm

Package DE_EPAGES::Design::API::Object::NavBarElement

object interface for NavBarElement.

Base
DE_EPAGES::Object::API::Object::Object

Functions

canInvalidatePageCache
className
clone
dbPackage
findPath
template

canInvalidatePageCache

Overwrites method DE_EPAGES::Object::API::Object::Object->canInvalidatePageCache to invalidate page cache.

Syntax
$Object->canInvalidatePageCache;

className

Returns the class name, used for DAL access.

Syntax
$ClassName = $NavBarElement->className;
Return
$ClassName (String)
class name

clone

Inserts a new object into the database as copy from old object.

Syntax
$Clone = $NavBarElement->clone ($hInfo);
$Clone = $NavBarElement->clone( $hInfo, $Recursive );
Input
$hInfo (hash ref)
hash with attribute values that are different in the clone object.
Note that the clone cannot have the same parent and the same alias.
$Recursive (boolean)
clone child objects, too (optional, default is false)
Return
$Clone (object)
the new object

dbPackage

Returns the database package, used for DAL access.

Syntax
$DbPackage = $NavBarElement->dbPackage;
Return
$DbPackage (String)
database package name

findPath

find the object via path started from current object. the path can be absolute "/Object1/Object2" or relative "Store/Catalog/Product" to the object. Replace #ShopPath with $Shop->get('Path').

Syntax
$ObjectID = $Object->findPath($Path);
Input
$Path (string)
path
Return
$ObjectID (integer)
object identifier

template

This function is used to overwrite the given template for the purpose that each navelement can defined there own editor template (visualisation).

Syntax
$Name = $Object->template($Name, $ObjectPageType);
Input
$Name (string)
include name
$ObjectPageType (DE_EPAGES::Presentation::API::Object::ObjectPageType)
object related pagetype
Return
$Name (string)
include name