ePages 7.47.0 - 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
MAX_INT

Functions

TYPEINFO

POSITION_START (integer)

first position number: 10

POSITION_STEP (integer)

increment: 10

NEXTID_MAX (integer)

buffer size for next object IDs : 20

MAX_INT (integer)

maximum positive integer value 2^31 - 1,
it is not possible to use a higher integer value,
if you exceed it, you will get either an error (true for the
mysql database) or an overflow

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