CSMetaDataValue
in package
This class handles the metadata value.
Tags
Table of Contents
- TYPE_BOOL = 2
- TYPE_DATE = 8
- TYPE_FLOAT = 16
- TYPE_INT = 4
- TYPE_STRING = 1
- __construct() : mixed
- __toString() : mixed
- getDateFormat() : string
- returns Date Format
- getStringValue() : string
- Returns the value with string casting via the magic method __toString().
- getType() : int
- Returns the current type of the metadata value.
- getValue() : mixed
- Returns the value in the defined type.
- setDateFormat() : mixed
- Sets the Date Format.
- setType() : void
- Sets the value type.
- setValue() : void
- Sets the metadata value.
Constants
TYPE_BOOL
public
mixed
TYPE_BOOL
= 2
Tags
TYPE_DATE
public
mixed
TYPE_DATE
= 8
Tags
TYPE_FLOAT
public
mixed
TYPE_FLOAT
= 16
Tags
TYPE_INT
public
mixed
TYPE_INT
= 4
Tags
TYPE_STRING
public
mixed
TYPE_STRING
= 1
Tags
Methods
__construct()
public
final __construct(mixed $mValue[, mixed $iType = self::TYPE_STRING ]) : mixed
Parameters
- $mValue : mixed
- $iType : mixed = self::TYPE_STRING
Tags
Return values
mixed —__toString()
public
__toString() : mixed
Tags
Return values
mixed —getDateFormat()
returns Date Format
public
getDateFormat() : string
Tags
Return values
string —getStringValue()
Returns the value with string casting via the magic method __toString().
public
getStringValue() : string
Tags
Return values
string —getType()
Returns the current type of the metadata value.
public
getType() : int
Tags
Return values
int —getValue()
Returns the value in the defined type.
public
getValue() : mixed
Tags
Return values
mixed —setDateFormat()
Sets the Date Format.
public
setDateFormat(string $sFormat) : mixed
Parameters
- $sFormat : string
Tags
Return values
mixed —setType()
Sets the value type.
public
setType(int $iType) : void
Parameters
- $iType : int
Tags
Return values
void —setValue()
Sets the metadata value.
public
setValue(mixed $mValue) : void
Parameters
- $mValue : mixed
