\midcom\datamanager\storageimages

Experimental storage class

Summary

Methods
Properties
Constants
load()
save()
set_value()
get_value()
__construct()
recreate()
No public properties found
No constants found
generate_unique_name()
save_attachment_list()
load_attachment_list()
prepare_attachment()
cast()
set_imagedata()
apply_filter()
$map
$value
$initialized
$object
$config
N/A
No private methods found
No private properties found
N/A

Properties

$value

$value : 

Type

$initialized

$initialized : 

Type

$config

$config : array

Type

array

Methods

load()

load() : mixed

Returns

mixed —

Current value

save()

save() 

{@inheritdoc}

set_value()

set_value(  $value) 

Parameters

$value

get_value()

get_value() 

__construct()

__construct(\midcom_core_dbaobject  $object, array  $config) 

Parameters

\midcom_core_dbaobject $object
array $config

recreate()

recreate() 

generate_unique_name()

generate_unique_name(  $filename) 

Make sure we have unique filename

Parameters

$filename

save_attachment_list()

save_attachment_list() : boolean

Returns

boolean

load_attachment_list()

load_attachment_list() : array

Returns

array

prepare_attachment()

prepare_attachment(\midcom_db_attachment  $attachment, string  $filename, string  $title, string  $mimetype) 

Parameters

\midcom_db_attachment $attachment
string $filename
string $title
string $mimetype

Throws

\midcom_error

cast()

cast(  $value) 

Parameters

$value

set_imagedata()

set_imagedata(\midcom_db_attachment  $attachment) 

Parameters

\midcom_db_attachment $attachment

apply_filter()

apply_filter(\midcom_db_attachment  $source, string  $filterchain, \midcom_db_attachment  $target = null) 

Applies a filter chain

Parameters

\midcom_db_attachment $source

The image to apply to

string $filterchain

The midcom_helper_imagefilter filter chain to apply

\midcom_db_attachment $target

The attachment where the changes should be saved