ePages 6.17.17 - DE_EPAGES/Object/API/Constants.pm

Package DE_EPAGES::Object::API::Constants

Constants for automatic renumbering of Position attributes and buffer size for next object IDs. Used by DE_EPAGES::Object::API::Object::Object::renumberChildren.

@EXPORT_OK
POSITION_START
POSITION_STEP
NEXTID_MAX
USERDEFINED_ATTRIBUTE_PACKAGES
ISFILEPATHPARTUSED
EXPANDWWWDOMAIN
TYPEINFO

Functions

TYPEINFO

POSITION_START (integer)

first position number: 10

POSITION_STEP (integer)

increment: 10

NEXTID_MAX (integer)

buffer size for next object IDs : 20

ISFILEPATHPARTUSED (boolean)

used by Attribute Site.IsFilePathPartUsed : 0

EXPANDWWWDOMAIN (boolean)

(default: false (0))
allow the use of domain names beginning with or without "www.".

TYPEINFO

Gets default values for creating user-defined attributes. Throws an error if the type is unknown.

Syntax
$aTypeInfo = TYPEINFO($Type);
Input
$Type (string)
type name, e.g. 'String', 'Money' etc.
Return
(attribute name => value hash for new attributes
  • Type - type name - string
  • Package - attribute package name - string
  • IsObject - true if attribute value is an object - boolean
  • IsArray - true if attribute value is an array ref - boolean
  • IsCacheable - true if attribute value is cacheable - boolean
)
$hTypeInfo