Documentation

DefaultPropertyConfig

Used for PropertyFactory config

Tags

Table of Contents

CAPTION Property caption/label for users to see. 'caption'
ID An optional unique identifier for some property 'id'
VALUE Default value 'value'
SETTER Callback used for setting a properties value when it is an object. 'setter'
GETTER Callback used for setting a properties value when it is an object. 'getter'
MSETTER Callback used for setting a properties value when it is an object. 'msetter'
MGETTER Callback used for setting a properties value when it is an object. 'mgetter'
TYPE Data type. "type"
FLAGS Property flags. "flags"
CLAZZ Class name used with object properties "clazz"
INIT A callback used to initialize the default value within the model. "initialize"
MIN Minimum value/length "min"
MAX Maximum value/length "max"
VALIDATE Closure for validating prior to save [bool is valid] = function( IProperty, [input value] ) "validate"
PATTERN Validation regex "pattern"
CONFIG A config array "config"
PREFIX A prefix used by the default property set, which can proxy a get/set value call to a nested IModel instance. 'prefix'
CHANGE On Change event f( IProperty, oldValue, newValue ) : void 'onchange'
HTMLINPUT For a give property, create an htmlproperty\IElement instance used as an html form input. 'htmlinput'
IS_EMPTY Is empty check event. 'isempty'
TAG An optional tag for the attribute. 'tag'

Constants

SETTER

Callback used for setting a properties value when it is an object.

public mixed $SETTER = 'setter'
f( IProperty, mixed $value ) : mixed

GETTER

Callback used for setting a properties value when it is an object.

public mixed $GETTER = 'getter'
f( IProperty, mixed $value ) : mixed

MSETTER

Callback used for setting a properties value when it is an object.

public mixed $MSETTER = 'msetter'
f( IModel, IProperty, mixed $value ) : mixed

MGETTER

Callback used for setting a properties value when it is an object.

public mixed $MGETTER = 'mgetter'
f( IModel, IProperty, mixed $value ) : mixed

FLAGS

Property flags.

public mixed $FLAGS = "flags"
This must map to a comma-delimited list of valid SPropertyFlags values

INIT

A callback used to initialize the default value within the model.

public mixed $INIT = "initialize"
This is called only once, when the model is first loaded. Default value is supplied, and the returned value is used as the new default value. f( mixed $defaultValue ) : mixed

VALIDATE

Closure for validating prior to save [bool is valid] = function( IProperty, [input value] )

public mixed $VALIDATE = "validate"

PREFIX

A prefix used by the default property set, which can proxy a get/set value call to a nested IModel instance.

public mixed $PREFIX = 'prefix'

HTMLINPUT

For a give property, create an htmlproperty\IElement instance used as an html form input.

public mixed $HTMLINPUT = 'htmlinput'
f( IModel $model, IProperty $property, string $name, string $id, string $value ) : IElement

IS_EMPTY

Is empty check event.

public mixed $IS_EMPTY = 'isempty'
Tests that the property value is empty f( IProperty, value ) : bool

TAG

An optional tag for the attribute.

public mixed $TAG = 'tag'
This can be any string, and can be used for whatever.

Search results