LargeText extends Text implements TypeInterface
The LargeText complex data type.
Tags
Interfaces, Classes and Traits
- TypeInterface
- The interface for all complex data types.
Table of Contents
- MAX_SIZE = 16777215
- The absolute maximum size of the value for the this LargeText.
- $helper : string
- The error message for the string type when validation fails.
- $size : int
- The size of the value for the this LargeText.
- $allowHTML : bool
- Used to determine if the LargeText object can support HTML content or not. Defaults to true, if set to false then HTML content should be filtered.
- $validationRule : string
- The validation rule for the LargeText type.
- $value : string
- The value of the LargeText object.
- __construct() : mixed
- Constructor.
- __toString() : string
- Used to convert the object to a printable string.
- getAllowHTML() : bool
- Get the $allowHTML value.
- getHelper() : string
- Used to get the validation helper message string.
- getRule() : string
- Get the validation rule.
- getSize() : int
- Get the allowable size of the Double in the database field.
- getValue() : string
- Getter for the value.
- setAllowHTML() : mixed
- Set the $allowHTML value.
- setHelper() : mixed
- Set the validation helper text.
- setRule() : mixed
- Setter to override the default validation rule.
- setSize() : mixed
- Used to set the allowable size of the Text in the database field.
- setValue() : mixed
- Setter for the value.
Constants
MAX_SIZE
The absolute maximum size of the value for the this LargeText.
public
int
MAX_SIZE
= 16777215
Tags
Properties
$helper
The error message for the string type when validation fails.
protected
string
$helper
= 'Not a valid LargeText value!'
Tags
$size
The size of the value for the this LargeText.
protected
int
$size
= 16777215
Tags
$allowHTML
Used to determine if the LargeText object can support HTML content or not. Defaults to true, if set to false then HTML content should be filtered.
private
bool
$allowHTML
= true
Tags
$validationRule
The validation rule for the LargeText type.
private
string
$validationRule
Tags
$value
The value of the LargeText object.
private
string
$value
Tags
Methods
__construct()
Constructor.
public
__construct([string $val = '' ]) : mixed
Parameters
- $val : string = ''
Tags
Return values
mixed —__toString()
Used to convert the object to a printable string.
public
__toString() : string
Tags
Return values
string —getAllowHTML()
Get the $allowHTML value.
public
getAllowHTML() : bool
Tags
Return values
bool —getHelper()
Used to get the validation helper message string.
public
getHelper() : string
Tags
Return values
string —getRule()
Get the validation rule.
public
getRule() : string
Tags
Return values
string —getSize()
Get the allowable size of the Double in the database field.
public
getSize() : int
Tags
Return values
int —getValue()
Getter for the value.
public
getValue() : string
Tags
Return values
string —setAllowHTML()
Set the $allowHTML value.
public
setAllowHTML(bool $allowHTML) : mixed
Parameters
- $allowHTML : bool
Tags
Return values
mixed —setHelper()
Set the validation helper text.
public
setHelper(string $helper) : mixed
Parameters
- $helper : string
Tags
Return values
mixed —setRule()
Setter to override the default validation rule.
public
setRule(string $rule) : mixed
Parameters
- $rule : string
Tags
Return values
mixed —setSize()
Used to set the allowable size of the Text in the database field.
public
setSize(int $size) : mixed
Parameters
- $size : int
Tags
Return values
mixed —setValue()
Setter for the value.
public
setValue(string $val) : mixed
Parameters
- $val : string