ePages 6.10 - 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

clone
invalidatePageCache
template
updatePageCache

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

invalidatePageCache

Invalidates page cache (mark at site).

Syntax
$Object->invalidatePageCache;

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

updatePageCache

Updates page cache date of the object's site if the object is an instance of one of the pre-defined classes (this classes implement invalidatePageCache method). These classes influence the content which is shown on storefront pages.

Syntax
$Object->updatePageCache;