array addItem(
string
$mimeType, int
$parentId, string
$filename, string
$tmpfile, string
$fileMimeType, [array
$knownSize = array()], [ThumbnailImage
$item = null]
)
|
|
Add new ThumbnailImage
Parameters:
|
string |
$mimeType: |
mime type to be supported, or null |
|
int |
$parentId: |
parent item id, or null |
|
string |
$filename: |
name for image |
|
string |
$tmpfile: |
path to image file |
|
string |
$fileMimeType: |
mime type of image file |
|
array |
$knownSize: |
known width and height of image (used if toolkit unable to get size) |
|
ThumbnailImage |
$item: |
(optional -- if you don't provide it we'll get one from the Factory) |
API Tags:
| Return: | GalleryStatus a status code, int id of newly created object |
Create or update thumbnail derivative to be sourced from a ThumbnailImage
Parameters:
|
GalleryItem |
$item: |
|
|
int |
$thumbnailId: |
id of ThumbnailImage |
|
|
&$item: |
|
API Tags:
array fetchMimeTypeMap(
)
|
|
Get supported mime types
API Tags:
| Return: | GalleryStatus a status code array of mimeType=>itemId |
array fetchThumbnail(
int
$itemId
)
|
|
Fetch ThumbnailImage for given item
Parameters:
API Tags:
| Return: | GalleryStatus a status code ThumbnailImage or null |
array fetchThumbnails(
[boolean
$listAll = false], [int
$count = null], [int
$offset = null], [string
$substring = null]
)
|
|
Return a map of itemId => fileName for ThumbnailImage entities
You can specify how many items to list, and where the windows is in the list of all items.
Parameters:
|
boolean |
$listAll: |
(optional) true to list all; by default only items with mimeTypeList |
|
int |
$count: |
(optional) the number of items desired |
|
int |
$offset: |
(optional) the start of the range |
|
string |
$substring: |
(optional) a substring to match |
API Tags:
| Return: | GalleryStatus a status code array of itemId=>fileName |
array fetchToolkitSupport(
[boolean
$byMimeType = true]
)
|
|
Get information about thumbnail support from other toolkits
Parameters:
|
boolean |
$byMimeType: |
(optional) true for data by-mimeType, false for data by-toolkit |
API Tags:
| Return: | GalleryStatus a status code, :by-mimeType: array of mimeType=>array(toolkit ids) or by-toolkit: array of toolkitId=>array(mimeTypes), :by-mimeType: null or by-toolkit: array of mimeType conflicts |
Return mime types and applicable file extensions
API Tags:
| Return: | GalleryStatus a status code array (string mime type => string list of extensions) |
Register toolkit operation for given mime type(s).
Parameters:
|
mixed |
$mimeTypes: |
array or single string |
API Tags:
GalleryStatus updateItem(
int
$itemId, string
$mimeType, [boolean
$isAdd = true]
)
|
|
Add or delete a mime type from an existing ThumbnailImage
Parameters:
|
int |
$itemId: |
id of the ThumbnailImage |
|
string |
$mimeType: |
mime type |
|
boolean |
$isAdd: |
(optional) true to add mime type, false to delete |
API Tags: