File PublishServices (working, pre init reworking).lua
Functions
PublishServices:computeCollLookup () | Call to assure fresh data before looking up collections based on id. |
PublishServices:getCollectionByLocalIdentifier (id) | Get collection by local identifier. |
PublishServices:getPublishCollectionInfo (pluginId) | Get table of published collections as keys, publish service as value. |
PublishServices:getPublishedInfo (targetPhotos, pluginId) | Get table of published info (published-photo, published-collection, published-service, indexed by photo. |
PublishServices:getPublishedPhotoInfo (pluginId) | Get table of info indexed by published photo, elements: publish-service (yep: it's a one element table for now - built for future expansion). |
PublishServices:getPublishedPhotos (pluginId) | Get all published photos, across all collections, all services defined for this plugin. |
PublishServices:getSelectedPublishedPhotos () | Get published photos corresponding to all selected photos. |
PublishServices:new (t) | Constructor for new instance. |
PublishServices:newClass (t) | Constructor for extending class. |
Functions
- PublishServices:computeCollLookup ()
-
Call to assure fresh data before looking up collections based on id.
Usage:
Called automatically if need be, but can be called externally as part of init.
- PublishServices:getCollectionByLocalIdentifier (id)
-
Get collection by local identifier.
Parameters:
-
id
: local identifier as obtained via sdk, or sql.
-
- PublishServices:getPublishCollectionInfo (pluginId)
-
Get table of published collections as keys, publish service as value.
Parameters:
-
pluginId
:
-
- PublishServices:getPublishedInfo (targetPhotos, pluginId)
-
Get table of published info (published-photo, published-collection, published-service, indexed by photo.
Parameters:
-
targetPhotos
: -
pluginId
:
-
- PublishServices:getPublishedPhotoInfo (pluginId)
-
Get table of info indexed by published photo, elements: publish-service (yep: it's a one element table for now - built for future expansion).
Parameters:
-
pluginId
:
-
- PublishServices:getPublishedPhotos (pluginId)
-
Get all published photos, across all collections, all services defined for this plugin.
Parameters:
-
pluginId
:
-
- PublishServices:getSelectedPublishedPhotos ()
-
Get published photos corresponding to all selected photos.
Return values:
- array of published photos from one collection in one service - may be empty, but never nil.
- Publish service - may be nil.
- Publish collection - may be nil.
- PublishServices:new (t)
-
Constructor for new instance.
Parameters:
-
t
:
Usage:
Represents the collection of all publish services defined under for a plugin.
-
- PublishServices:newClass (t)
-
Constructor for extending class.
Parameters:
-
t
:
-