Arikaim CMS

FieldInterface

Field interface

Table of Contents

Constants

BOOLEAN_TYPE  = 'bool'
CUSTOM  = 'custom'
DATE  = 'date'
EMAIL  = 'email'
IMAGE  = 'image'
LIST  = 'list'
NUMBER  = 'number'
PASSWORD  = 'password'
PHP_CLASS  = 'php.class'
TEXT  = 'text'
TEXT_AREA  = 'text.area'
TYPES_LIST  = [Self::TEXT, Self::NUMBER, Self::CUSTOM, Self::BOOLEAN_TYPE, Self::LIST, Self::PHP_CLASS, Self::PASSWORD, Self::URL, Self::EMAIL, Self::TEXT_AREA, Self::DATE, Self::IMAGE]
Field type list
URL  = 'url'

Methods

getName()  : string
Get field name
getTitle()  : string|null
Get field title
getType()  : string
Get field type
getValue()  : mixed
Get field value
setValue()  : void
Set field value

Constants

TYPES_LIST

Field type list

public mixed TYPES_LIST = [Self::TEXT, Self::NUMBER, Self::CUSTOM, Self::BOOLEAN_TYPE, Self::LIST, Self::PHP_CLASS, Self::PASSWORD, Self::URL, Self::EMAIL, Self::TEXT_AREA, Self::DATE, Self::IMAGE]

Methods

getName()

Get field name

public getName() : string
Return values
string

getTitle()

Get field title

public getTitle() : string|null
Return values
string|null

getType()

Get field type

public getType() : string
Return values
string

setValue()

Set field value

public setValue(mixed $value) : void
Parameters
$value : mixed

        
On this page

Search results