class Config extends AbstractModel (View source)

Properties

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

$this
setValues(array $data = array())

No description

$this
setValue($key, $value)

No description

array
__sleep()

No description

mixed
__call($method, $args)

No description

void
__clone()

No description

array
getObjectVars()

returns object values without the dao

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 
getPreviewConfig()

No description

getForWebserviceExport()

Returns thumbnail config for webservice export.

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

No description

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

No description

void
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

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

boolean
isPreserveColor()

No description

setPreserveColor(boolean $preserveColor)

No description

boolean
isPreserveMetaData()

No description

setPreserveMetaData(boolean $preserveMetaData)

No description

Details

at line line 26
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

$this setValues(array $data = array())

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

void __clone()

Return Value

void

array getObjectVars()

returns object values without the dao

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

at line line 105
static Config|bool getByAutoDetect($config)

Parameters

$config

Return Value

Config|bool

at line line 135
static null|Config getByName($name)

Parameters

$name

Return Value

null|Config

at line line 166
static getPreviewConfig()

at line line 186
getForWebserviceExport()

Returns thumbnail config for webservice export.

at line line 210
bool addItem($name, $parameters, $media = null)

Parameters

$name
$parameters
$media

Return Value

bool

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

Parameters

$position
$name
$parameters
$media

Return Value

bool

at line line 254
void resetItems()

Return Value

void

at line line 264
bool selectMedia($name)

Parameters

$name

Return Value

bool

at line line 285
setDescription(string $description)

Parameters

string $description

at line line 295
string getDescription()

Return Value

string

at line line 303
setItems(array $items)

Parameters

array $items

at line line 313
array getItems()

Return Value

array

at line line 321
setName(string $name)

Parameters

string $name

at line line 331
string getName()

Return Value

string

at line line 339
setFormat(string $format)

Parameters

string $format

at line line 349
string getFormat()

Return Value

string

at line line 357
setQuality(mixed $quality)

Parameters

mixed $quality

at line line 369
mixed getQuality()

Return Value

mixed

at line line 377
setHighResolution(float $highResolution)

Parameters

float $highResolution

at line line 385
float getHighResolution()

Return Value

float

at line line 393
setMedias(array $medias)

Parameters

array $medias

at line line 401
array getMedias()

Return Value

array

at line line 409
bool hasMedias()

Return Value

bool

at line line 417
setFilenameSuffix(string $filenameSuffix)

Parameters

string $filenameSuffix

at line line 425
string getFilenameSuffix()

Return Value

string

at line line 435
static Config getByArrayConfig($config)

Parameters

$config

Return Value

Config

at line line 467
static Config getByLegacyConfig($config)

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

Parameters

$config

Return Value

Config

at line line 546
getEstimatedDimensions($asset)

Parameters

$asset

at line line 628
setColorspace(string $colorspace)

Parameters

string $colorspace

at line line 636
string getColorspace()

Return Value

string

at line line 644
int getModificationDate()

Return Value

int

at line line 652
setModificationDate(int $modificationDate)

Parameters

int $modificationDate

at line line 660
int getCreationDate()

Return Value

int

at line line 668
setCreationDate(int $creationDate)

Parameters

int $creationDate

at line line 676
boolean isPreserveColor()

Return Value

boolean

at line line 684
setPreserveColor(boolean $preserveColor)

Parameters

boolean $preserveColor

at line line 692
boolean isPreserveMetaData()

Return Value

boolean

at line line 700
setPreserveMetaData(boolean $preserveMetaData)

Parameters

boolean $preserveMetaData