API docs     >     General     >     PropertySettings

PropertySettings->add

Description

add ( $name, $identifier, $type = 'TEXT', $visible = 1, $listorder = 9999 )
Adds a new Property to the Object

Parameters

$name
string
Property Name
$identifier
string
Property identifier
$type
string
(optional) Property Type (TEXT, TEXTAREA, RICHTEXT, CHECKBOX, LIST, LINK, TAG, CBLOCK, PAGE, FILE PASSWORD, DATE, DATETIME, HEADLINE)
$visible
int
(optional) Specifies if the Property is visible in the UI (1 = visible, 0 = invisible)
$listorder
int
(optional) Order position

Returns

int|false
New Property Id or FALSE in case of an error