Contentserv PHP API

CSMetaDataValue
in package

This class handles the metadata value.

Tags
since

CS15.1

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

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
access

public

Return values
mixed

setType()

Sets the value type.

public setType(int $iType) : void
Parameters
$iType : int
Tags
see
CSMetaDataValue

constants

access

public

Return values
void

setValue()

Sets the metadata value.

public setValue(mixed $mValue) : void
Parameters
$mValue : mixed
Tags
access

public

Return values
void

        

Search results