void addExistingItemToAlbum(
$item,
$albumId, [
$isNew = false]
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::addExistingItemToAlbum |
void addItemToAlbum(
$fileName,
$itemName,
$title,
$summary,
$description,
$mimeType,
$albumId, [
$symlink = false]
)
|
|
Parameters:
|
$fileName: |
|
|
$itemName: |
|
|
$title: |
|
|
$summary: |
|
|
$description: |
|
|
$mimeType: |
|
|
$albumId: |
|
|
$symlink: |
|
API Tags:
See: | GalleryCoreApi::addItemToAlbum |
void applyDerivativePreferences(
$item,
$albumId, [
$isNew = false]
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::applyDerivativePreferences |
void fetchAllItemIds(
$itemType, [
$permission = 'core.view']
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::fetchAllItemIds |
void fetchAllItemIdsByOwnerId(
$ownerId
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::fetchAllItemIdsByOwnerId |
void fetchOriginationTimestamp(
$item
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::fetchOriginationTimestamp |
void handleEvent(
$event
)
|
|
Handler for Gallery::ViewableTreeChange event.
Event sends array('userId'=>id or array of ids or null, 'itemId'=>id or array of ids or null)
Parameters:
API Tags:
See: | GalleryEventListener::handleEvent |
GalleryStatus invalidateDescendentCountCaches(
mixed
$userId, mixed
$itemId
)
|
|
Invalidate our descendent count cache, any time we make a change that
would possibly affect any of our counts:
- adding a new item
- deleting an item
- moving an item
- changing view permissions on an item
- adding a user to a group
- removing a user from a group
If you provide just a user id, it will invalidate all cached values for that user. If you provide just an item id, it'll invalidate that id and all of its parents for all users. If you provide both, it will only invalidate for the intersection of the user and the item ids.
Parameters:
mixed |
$userId: |
user id or array of ids or null |
mixed |
$itemId: |
item id or array of ids or null |
API Tags:
void newItemByMimeType(
$mimeType
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::newItemByMimeType |
void setThumbnailFromItem(
$itemId,
$fromItemId
)
|
|
Parameters:
API Tags:
See: | GalleryCoreApi::setThumbnailFromItem |