Transformations
class Transformations (View source)
Transformations class
Methods
Returns array of options from string with options separated by comma, removes quotes
Gets all available MIME-types
No description
Returns the description of the transformation
Returns the name of the transformation
Fixups old MIME or transformation name to new one
Gets the mimetypes for all columns of a table
Set a single mimetype to a certain value.
Delete related transformation details after deleting database. table or column
Details
array
getOptions(string $optionString)
Returns array of options from string with options separated by comma, removes quotes
getOptions("'option ,, quoted',abd,'2,3',");
// array {
// 'option ,, quoted',
// 'abc',
// '2,3',
// '',
// }
array
getAvailableMimeTypes()
Gets all available MIME-types
TransformationsInterface|null
getPluginInstance(string $filename)
No description
string
getDescription(string $file)
Returns the description of the transformation
string
getName(string $file)
Returns the name of the transformation
string
fixUpMime(string $value)
Fixups old MIME or transformation name to new one
- applies some hardcoded fixups
- adds spaces after _ and numbers
- capitalizes words
- removes back spaces
array|null
getMime(string $db, string $table, bool $strict = false, bool $fullName = false)
Gets the mimetypes for all columns of a table
bool
setMime(string $db, string $table, string $key, string $mimetype, string $transformation, string $transformationOpts, string $inputTransform, string $inputTransformOpts, bool $forcedelete = false)
Set a single mimetype to a certain value.
bool
clear(string $db, string $table = '', string $column = '')
Delete related transformation details after deleting database. table or column