ePages 6.10 - DE_EPAGES/Presentation/API/PageType.pm

Package DE_EPAGES::Presentation::API::PageType

API for working with page types.

@EXPORT_OK
ExistsPageTypeByAlias
LoadAllPageTypes
LoadPageTypeByAlias
LoadPageTypeByViewAction

Functions

ExistsPageTypeByAlias
LoadAllPageTypes
LoadPageTypeByAlias
LoadPageTypeByViewAction

ExistsPageTypeByAlias

Returns true if a page type with the given name exists.

Syntax
$Exists = ExistsPageTypeByAlias( $Alias );
Input
$Alias (string)
page type name
Return
$Exists (boolean)
true if the page type exists

LoadAllPageTypes

Loads all page types.

Syntax
$aPageTypes = LoadAllPageTypes;
Return
$aPageType (ref.array.object)
list of page type objects

LoadPageTypeByAlias

Loads an existing page type by name.

Syntax
$PageType = LoadPageTypeByAlias( $Alias );
Input
$Alias (string)
page type name
Return
$PageType (object)
page type object

LoadPageTypeByViewAction

Loads an existing page given an URL action.

Syntax
$PageType = LoadPageTypeByViewAction( $Action );
Input
$Action (object)
action object
Return
$PageType (object)
page type object