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:
GalleryStatus create(
int
$parentId, string
$inputFileName, string
$mimeType, [string
$targetName = null], [boolean
$symlink = false]
)
|
|
Create a new instance of this type in the persistent store.
Parameters:
int |
$parentId: |
the id of the parent GalleryItem |
string |
$inputFileName: |
the path to a data file to be contained |
string |
$mimeType: |
the mime type of the new item |
string |
$targetName: |
(optional) the desired name of the new item |
boolean |
$symlink: |
(optional) a boolean true if we should symlink instead of copy (default is false). |
API Tags:
Redefinition of:
- GalleryItem::create()
- Create a new instance of this GalleryEntity in the persistent store.
Redefined in descendants as:
Delete this GalleryEntity
API Tags:
Redefinition of:
- GalleryItem::delete()
- Delete this GalleryEntity. Delete all of its children also, if it has any.
API Tags:
See: | GalleryEntity::detachLink |
Redefinition of:
- GalleryEntity::detachLink()
- Detach this entity from the entity it is linked to by the simple expedient of overwriting over all non-null members with the equivalent from the link target.
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 |
Redefinition of:
- GalleryFileSystemEntity::fetchPath()
- Return the full path of this item. Note that this path is only valid as long as the entire tree is at least read locked.
void render(
$format,
$params
)
|
|
Parameters:
API Tags:
See: | GalleryRenderer::render |
Information Tags:
Todo: | Change this API to match that of GalleryRenderer::render() on the next major GalleryModule API bump. |
Redefined in descendants as:
Scan this item's data for changes.
API Tags:
Redefined in descendants as:
void setMimeType(
$mimeType
)
|
|
Parameters:
boolean _canBeViewedInline(
[array
$mimeList = null]
)
|
|
Helper function to check renderer and list of mime types for canBeViewedInline.
Parameters:
array |
$mimeList: |
(optional) list of mime types that render() will support |
API Tags:
Return: | true if this data item can be viewed inline |
Access: | protected |