class Config extends AbstractModel (View source)

Properties

protected AbstractDao $dao from AbstractModel
array $items format of array: array( array( "method" => "myName", "arguments" => array( "width" => 345, "height" => 200 ) ) )
array $medias
string $name
string $description
string $format
mixed $quality
float $highResolution
bool $preserveColor
bool $preserveMetaData
int $modificationDate
int $creationDate
string $filenameSuffix

Methods

Dao
getDao()

No description

setDao($dao)

No description

getResource() deprecated

No description

initDao(null $key = null, bool $forceDetection = false)

No description

static string|null
locateDaoClass(string $modelClass)

No description

$this
setValues(array $data = [])

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

__clone()

No description

array
getObjectVars()

returns object values without the dao

array
__debugInfo()

No description

void
beginTransaction()

No description

void
commit()

No description

void
rollBack()

No description

void
configure()

No description

array
getValidTableColumns(string $table, bool $cache)

No description

void
resetValidTableColumnsCache(string $table)

No description

static Config|bool
getByAutoDetect($config)

No description

static null|Config
getByName($name)

No description

static Config
getPreviewConfig()

No description

getForWebserviceExport()

Returns thumbnail config for webservice export.

createMediaIfNotExists(string $name)

No description

bool
addItem($name, $parameters, $media = null)

No description

bool
addItemAt($position, $name, $parameters, $media = null)

No description

resetItems()

No description

bool
selectMedia($name)

No description

setDescription(string $description)

No description

string
getDescription()

No description

setItems(array $items)

No description

array
getItems()

No description

setName(string $name)

No description

string
getName()

No description

setFormat(string $format)

No description

string
getFormat()

No description

setQuality(mixed $quality)

No description

mixed
getQuality()

No description

setHighResolution(float $highResolution)

No description

float
getHighResolution()

No description

setMedias(array $medias)

No description

array
getMedias()

No description

bool
hasMedias()

No description

setFilenameSuffix(string $filenameSuffix)

No description

string
getFilenameSuffix()

No description

static Config
getByArrayConfig($config)

No description

static Config
getByLegacyConfig($config)

This is just for compatibility, this method will be removed with the next major release

array
getEstimatedDimensions($asset)

No description

setColorspace(string $colorspace)

No description

string
getColorspace()

No description

int
getModificationDate()

No description

setModificationDate(int $modificationDate)

No description

int
getCreationDate()

No description

setCreationDate(int $creationDate)

No description

bool
isPreserveColor()

No description

setPreserveColor(bool $preserveColor)

No description

bool
isPreserveMetaData()

No description

setPreserveMetaData(bool $preserveMetaData)

No description

Details

Dao getDao()

Return Value

Dao

AbstractModel setDao($dao)

Parameters

$dao

Return Value

AbstractModel

AbstractDao getResource() deprecated

deprecated

Return Value

AbstractDao

initDao(null $key = null, bool $forceDetection = false)

Parameters

null $key
bool $forceDetection

Exceptions

Exception

static string|null locateDaoClass(string $modelClass)

Parameters

string $modelClass

Return Value

string|null

$this setValues(array $data = [])

Parameters

array $data

Return Value

$this

$this setValue($key, $value)

Parameters

$key
$value

Return Value

$this

array __sleep()

Return Value

array

mixed __call($method, $args)

Parameters

$method
$args

Return Value

mixed

Exceptions

Exception

__clone()

array getObjectVars()

returns object values without the dao

Return Value

array

array __debugInfo()

Return Value

array

void beginTransaction()

Return Value

void

void commit()

Return Value

void

void rollBack()

Return Value

void

void configure()

Return Value

void

array getValidTableColumns(string $table, bool $cache)

Parameters

string $table
bool $cache

Return Value

array

void resetValidTableColumnsCache(string $table)

Parameters

string $table

Return Value

void

static Config|bool getByAutoDetect($config)

Parameters

$config

Return Value

Config|bool

static null|Config getByName($name)

Parameters

$name

Return Value

null|Config

static Config getPreviewConfig()

Return Value

Config

getForWebserviceExport()

Returns thumbnail config for webservice export.

protected createMediaIfNotExists(string $name)

Parameters

string $name

bool addItem($name, $parameters, $media = null)

Parameters

$name
$parameters
$media

Return Value

bool

bool addItemAt($position, $name, $parameters, $media = null)

Parameters

$position
$name
$parameters
$media

Return Value

bool

resetItems()

bool selectMedia($name)

Parameters

$name

Return Value

bool

setDescription(string $description)

Parameters

string $description

string getDescription()

Return Value

string

setItems(array $items)

Parameters

array $items

array getItems()

Return Value

array

setName(string $name)

Parameters

string $name

string getName()

Return Value

string

setFormat(string $format)

Parameters

string $format

string getFormat()

Return Value

string

setQuality(mixed $quality)

Parameters

mixed $quality

mixed getQuality()

Return Value

mixed

setHighResolution(float $highResolution)

Parameters

float $highResolution

float getHighResolution()

Return Value

float

setMedias(array $medias)

Parameters

array $medias

array getMedias()

Return Value

array

bool hasMedias()

Return Value

bool

setFilenameSuffix(string $filenameSuffix)

Parameters

string $filenameSuffix

string getFilenameSuffix()

Return Value

string

static Config getByArrayConfig($config)

Parameters

$config

Return Value

Config

static Config getByLegacyConfig($config)

This is just for compatibility, this method will be removed with the next major release

Parameters

$config

Return Value

Config

array getEstimatedDimensions($asset)

Parameters

$asset

Return Value

array

setColorspace(string $colorspace)

Parameters

string $colorspace

string getColorspace()

Return Value

string

int getModificationDate()

Return Value

int

setModificationDate(int $modificationDate)

Parameters

int $modificationDate

int getCreationDate()

Return Value

int

setCreationDate(int $creationDate)

Parameters

int $creationDate

bool isPreserveColor()

Return Value

bool

setPreserveColor(bool $preserveColor)

Parameters

bool $preserveColor

bool isPreserveMetaData()

Return Value

bool

setPreserveMetaData(bool $preserveMetaData)

Parameters

bool $preserveMetaData