static array getInstalledVersions(
)
|
|
Get the version of the core module and of Gallery itself. We store this on disk to avoid having to load up the database (which can be problematic if we're doing an upgrade and don't want to count a specific database schema). If the versions.dat file indicates that Gallery is in maintenance mode, then set the configuration value to indicate this.
API Tags:
Return: | 'core' => core module version, 'gallery' => gallery version |
void getGalleryVersion(
)
|
|
Get the current version of Gallery.
void getItemAdminViews(
$item
)
|
|
Parameters:
API Tags:
See: | GalleryModule::getItemAdminViews |
Redefinition of:
- GalleryModule::getItemAdminViews()
- Get the list of GalleryViews containing the various item administration views for this module. The module should check permissions and item type to determine which views are applicable for the authenticated user. As with getSiteAdminViews(), the view title text must be localized.
void getItemLinks(
$items,
$wantsDetailedLinks,
$permissions,
$userId
)
|
|
Parameters:
|
$items: |
|
|
$wantsDetailedLinks: |
|
|
$permissions: |
|
|
$userId: |
|
API Tags:
See: | GalleryModule::getItemLinks |
Redefinition of:
- GalleryModule::getItemLinks()
- Return 0 or more item-specific links to an arbitrary module view.
void getSiteAdminViews(
)
|
|
API Tags:
See: | GalleryModule::getSiteAdminViews |
Redefinition of:
- GalleryModule::getSiteAdminViews()
- Get the name of the GalleryView containing the various site administration views for this module. Note that the text value is localized since they will be displayed directly to the user. Include group/groupLabel in data to override the values from getGroup().
API Tags:
See: | GalleryModule::getSystemLinks |
Redefinition of:
- GalleryModule::getSystemLinks()
- Return 0 or more system-specific links to an arbitrary module view. Get the name of the GalleryView containing the administration view specifically for configuring this module.
void getUserAdminViews(
$user
)
|
|
Parameters:
API Tags:
See: | GalleryModule::getUserAdminViews |
Redefinition of:
- GalleryModule::getUserAdminViews()
- Get the list of GalleryViews containing the various user administration views for this module. The module should check permissions and item type to determine which views are applicable for the authenticated user. As with getSiteAdminViews(), the view title text must be localized.
void performFactoryRegistrations(
)
|
|
API Tags:
See: | GalleryModule::performFactoryRegistrations |
Redefinition of:
- GalleryModule::performFactoryRegistrations()
- Register any factory implementations. This is called at module activation time.
void setGalleryVersion(
$version
)
|
|
Set the current version of Gallery.
Parameters:
void upgrade(
$currentVersion,
$statusMonitor
)
|
|
We pushed all this code into its own file since we need it very rarely so it doesn't make sense to load it every single time.
Parameters:
|
$currentVersion: |
|
|
$statusMonitor: |
|
API Tags:
See: | GalleryModule::install |
Redefinition of:
- GalleryPlugin::upgrade()
- Perform any upgrade tasks required at this point. This method is called