onOffice WP Plugin

FieldTypes
in package

Table of Contents

FIELD_TYPE_BLOB  = 'blob'
FIELD_TYPE_BOOLEAN  = 'boolean'
FIELD_TYPE_DATE  = 'date'
FIELD_TYPE_DATETIME  = 'datetime'
FIELD_TYPE_FLOAT  = 'float'
FIELD_TYPE_INTEGER  = 'integer'
FIELD_TYPE_MULTISELECT  = 'multiselect'
FIELD_TYPE_SINGLESELECT  = 'singleselect'
FIELD_TYPE_TEXT  = 'text'
FIELD_TYPE_VARCHAR  = 'varchar'
INPUT_VAR_SANITIZERS  = [ self::FIELD_TYPE_MULTISELECT => FILTER_SANITIZE_STRING, self::FIELD_TYPE_SINGLESELECT => FILTER_SANITIZE_STRING, self::FIELD_TYPE_TEXT => FILTER_SANITIZE_STRING, self::FIELD_TYPE_INTEGER => FILTER_VALIDATE_INT, self::FIELD_TYPE_VARCHAR => FILTER_SANITIZE_STRING, self::FIELD_TYPE_FLOAT => FILTER_SANITIZE_STRING, // locale-specific processing needed self::FIELD_TYPE_BOOLEAN => FILTER_SANITIZE_STRING, // needs difference between null and false self::FIELD_TYPE_DATE => FILTER_SANITIZE_STRING, self::FIELD_TYPE_BLOB => FILTER_UNSAFE_RAW, self::FIELD_TYPE_DATETIME => FILTER_SANITIZE_STRING, ]
TYPES_MULTI_SELECT  = [\onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_MULTISELECT, \onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_SINGLESELECT, 'displayAll', 'displayLive', 'limitExceeded']
TYPES_NUMERIC  = ['urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:decimal', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:float', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:integer', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:int', self::FIELD_TYPE_INTEGER, self::FIELD_TYPE_FLOAT]
TYPES_RANGE  = ['urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:decimal', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:float', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:integer', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:int', \onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_FLOAT, \onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_INTEGER]
TYPES_REG_ADDITION_SEARCHCRITERIA  = ['displayAll', 'displayLive', 'limitExceeded']
TYPES_STRING  = [self::FIELD_TYPE_TEXT, self::FIELD_TYPE_VARCHAR, 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:varchar', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:Text']
TYPES_SUPPORT  = ['integer', 'float', 'varchar', 'text', 'date', 'datetime', 'boolean']
getInputVarSanitizers()  : array<string|int, mixed>
isDateOrDateTime()  : bool
isMultipleSelectType()  : bool
isNumericType()  : bool
isRangeType()  : bool
isRegZusatzSearchcritTypes()  : bool
isStringType()  : bool
isSupportType()  : bool

Constants

FIELD_TYPE_BLOB

public mixed FIELD_TYPE_BLOB = 'blob'

FIELD_TYPE_BOOLEAN

public mixed FIELD_TYPE_BOOLEAN = 'boolean'

FIELD_TYPE_DATE

public mixed FIELD_TYPE_DATE = 'date'

FIELD_TYPE_DATETIME

public mixed FIELD_TYPE_DATETIME = 'datetime'

FIELD_TYPE_FLOAT

public mixed FIELD_TYPE_FLOAT = 'float'

FIELD_TYPE_INTEGER

public mixed FIELD_TYPE_INTEGER = 'integer'

FIELD_TYPE_MULTISELECT

public mixed FIELD_TYPE_MULTISELECT = 'multiselect'

FIELD_TYPE_SINGLESELECT

public mixed FIELD_TYPE_SINGLESELECT = 'singleselect'

FIELD_TYPE_TEXT

public mixed FIELD_TYPE_TEXT = 'text'

FIELD_TYPE_VARCHAR

public mixed FIELD_TYPE_VARCHAR = 'varchar'

INPUT_VAR_SANITIZERS

public array<string|int, mixed> INPUT_VAR_SANITIZERS = [ self::FIELD_TYPE_MULTISELECT => FILTER_SANITIZE_STRING, self::FIELD_TYPE_SINGLESELECT => FILTER_SANITIZE_STRING, self::FIELD_TYPE_TEXT => FILTER_SANITIZE_STRING, self::FIELD_TYPE_INTEGER => FILTER_VALIDATE_INT, self::FIELD_TYPE_VARCHAR => FILTER_SANITIZE_STRING, self::FIELD_TYPE_FLOAT => FILTER_SANITIZE_STRING, // locale-specific processing needed self::FIELD_TYPE_BOOLEAN => FILTER_SANITIZE_STRING, // needs difference between null and false self::FIELD_TYPE_DATE => FILTER_SANITIZE_STRING, self::FIELD_TYPE_BLOB => FILTER_UNSAFE_RAW, self::FIELD_TYPE_DATETIME => FILTER_SANITIZE_STRING, ]

TYPES_MULTI_SELECT

public array<string|int, string> TYPES_MULTI_SELECT = [\onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_MULTISELECT, \onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_SINGLESELECT, 'displayAll', 'displayLive', 'limitExceeded']

TYPES_NUMERIC

public array<string|int, mixed> TYPES_NUMERIC = ['urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:decimal', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:float', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:integer', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:int', self::FIELD_TYPE_INTEGER, self::FIELD_TYPE_FLOAT]

TYPES_RANGE

public array<string|int, string> TYPES_RANGE = ['urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:decimal', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:float', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:integer', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:int', \onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_FLOAT, \onOffice\WPlugin\Types\FieldTypes::FIELD_TYPE_INTEGER]

TYPES_REG_ADDITION_SEARCHCRITERIA

public array<string|int, string> TYPES_REG_ADDITION_SEARCHCRITERIA = ['displayAll', 'displayLive', 'limitExceeded']

TYPES_STRING

public array<string|int, mixed> TYPES_STRING = [self::FIELD_TYPE_TEXT, self::FIELD_TYPE_VARCHAR, 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:varchar', 'urn:onoffice-de-ns:smart:2.5:dbAccess:dataType:Text']

TYPES_SUPPORT

public mixed TYPES_SUPPORT = ['integer', 'float', 'varchar', 'text', 'date', 'datetime', 'boolean']

Methods

getInputVarSanitizers()

public static getInputVarSanitizers() : array<string|int, mixed>
Return values
array<string|int, mixed>

isDateOrDateTime()

public static isDateOrDateTime(string $type) : bool
Parameters
$type : string
Return values
bool

isMultipleSelectType()

public static isMultipleSelectType(string $type) : bool
Parameters
$type : string
Return values
bool

isNumericType()

public static isNumericType(string $type) : bool
Parameters
$type : string
Return values
bool

isRangeType()

public static isRangeType(string $type) : bool
Parameters
$type : string
Return values
bool

isRegZusatzSearchcritTypes()

public static isRegZusatzSearchcritTypes(string $type) : bool
Parameters
$type : string
Return values
bool

isStringType()

public static isStringType(string $type) : bool
Parameters
$type : string
Return values
bool

isSupportType()

public static isSupportType(string $type) : bool
Parameters
$type : string
Return values
bool

Search results