boolean canBeViewedInline(
)
|
|
Data items that can be viewed inline (photos, movies, etc) should return true. Items that can't be viewed inline (word documents, text, etc) should return false.
Classes that return true for this query must implement getWidth() and getHeight()
API Tags:
Return: | true if this data item can be viewed inline |
Redefined in descendants as:
Create a new GalleryDerivative
Parameters:
int |
$parentId: |
the id of the parent GalleryItem |
API Tags:
Redefinition of:
- GalleryChildEntity::create()
- Create this item in our persistent store
Redefined in descendants as:
Expire the cache.
API Tags:
array fetchFinalOperations(
)
|
|
Get the complete set of operations required by this derivative. This will return the original source GalleryDataItem or preferred GalleryDerivative and an array of all the operations that must be performed in order to create the correct output file, including the post filter.
API Tags:
Return: | GalleryStatus a status code GalleryDataItem data item or GalleryDerivative preferred derivative array the operations |
Get the full path to the data file.
API Tags:
Return: | GalleryStatus a status code, string a path where children can store their data files |
string getBrokenDerivativePath(
)
|
|
Return path for broken derivative placeholder which is shown when we fail to generate a derivative item. Descendent classes can override this method to use their own broken derivative placeholder, which can be of any mime type, eg. a wav file for broken audio derivatives, etc.
API Tags:
Return: | the path of the broken derivative medium |
void getDerivativeOperations(
)
|
|
void getDerivativeOrder(
)
|
|
void getDerivativeSize(
)
|
|
void getDerivativeSourceId(
)
|
|
void getDerivativeType(
)
|
|
void getPostFilterOperations(
)
|
|
boolean hasNoOperations(
)
|
|
Return true if we have no derivative or postfilter operations
Is the cache for this item still current? If the cache is expired, it can be rebuilt with rebuildCache()
API Tags:
Return: | GalleryStatus a status code, boolean false if the item is expired (ie, empty cache) |
Rebuild the cache. This should never be called directly; instead you should call GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent($derivativeId)
Rebuilds the cache and marks the derivative as broken if we failed.
API Tags:
Redefined in descendants as:
Render this item in the given format. For example, GalleryDerivativeImage may want to render as an <img> tag in the HTML format.
Parameters:
string |
$format: |
the format (eg. HTML) |
GalleryDataItem |
$item: |
the data item |
array |
$params: |
format specific key value pairs |
API Tags:
Redefined in descendants as:
void save(
[
$expire = true], [
$postEvent = true]
)
|
|
Parameters:
API Tags:
Redefinition of:
- GalleryEntity::save()
- Save the changes to this GalleryEntity.
void setDerivativeOperations(
$derivativeOperations
)
|
|
Parameters:
void setDerivativeOrder(
$derivativeOrder
)
|
|
Parameters:
void setDerivativeSize(
$derivativeSize
)
|
|
Parameters:
void setDerivativeSourceId(
$derivativeSourceId
)
|
|
Parameters:
void setDerivativeType(
$derivativeType
)
|
|
Parameters:
void setIsBroken(
$isBroken
)
|
|
Parameters:
void setMimeType(
$mimeType
)
|
|
Parameters:
void setPostFilterOperations(
$postFilterOperations
)
|
|
Parameters:
Rebuild the cache. This should never be called directly; instead you should call GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent($derivativeId)
API Tags:
Return: | a status code |
Access: | private |