Contentserv PHP API

CSItemMedium
in package

A medium object to store various options from a medium type

Tags
since

CS12.1.0

Table of Contents

API  = 'API'
COMPARATOR  = 'COMPARATOR'
DEFAULT  = ''
EDITOR  = 'EDITOR'
EXPORT  = 'EXPORT'
HTML  = 'HTML'
MASSEDITOR  = 'MASSEDITOR'
TABLEAPI  = 'TABLEAPI'
TEXT  = 'TEXT'
TRANSLATIONMANAGER  = 'TMS'
__construct()  : mixed
getOption()  : mixed
Gets an option for a given key
getOptions()  : array<string|int, mixed>
Gets stored options from the medium
getType()  : string
Gets the medium type
setOption()  : void
Sets an option at the options array
setOptions()  : void
Sets various options from the medium

Constants

TRANSLATIONMANAGER

public mixed TRANSLATIONMANAGER = 'TMS'
Tags

Methods

__construct()

public __construct([mixed $sType = self::TEXT ]) : mixed
Parameters
$sType : mixed = self::TEXT
Tags
Return values
mixed

getOption()

Gets an option for a given key

public getOption(string $sKey[, string $sDefault = '' ]) : mixed
Parameters
$sKey : string

A string with the key for a special option

$sDefault : string = ''

A string with the default value if the option key is not set

Tags
access

public

Return values
mixed

The option value for the given key

getOptions()

Gets stored options from the medium

public getOptions() : array<string|int, mixed>
Tags
access

public

Return values
array<string|int, mixed>

An array with various options from the medium

getType()

Gets the medium type

public getType() : string
Tags
access

public

Return values
string

setOption()

Sets an option at the options array

public setOption(string $sKey, mixed $mValue) : void
Parameters
$sKey : string

The name of the new option

$mValue : mixed

The value of the new option

Tags
access

public

Return values
void

setOptions()

Sets various options from the medium

public setOptions(array<string|int, mixed> $aOptions) : void
Parameters
$aOptions : array<string|int, mixed>

An array with various options from the medium

Tags
access

public

Return values
void

        

Search results