GalleryDatabaseImport GalleryDatabaseImport(
)
|
|
array importToDb(
string
$fileName, string
$progressCallback
)
|
|
Imports a file in Gallery export format.
This method will load an XML file, in the Gallery export format to the data base. It will restore the config.ini file and reset the versions.dat file.
Parameters:
string |
$fileName: |
Name of the file containing file database backup to restore. |
string |
$progressCallback: |
Name of the routine to return call with progress reports |
API Tags:
Return: | GalleryStatus array Array of GalleryStatus's containing errors encountered or null on success |
array verifyVersions(
string
$fileName
)
|
|
This method prescans the exported Gallery database before doing an upload
Parameters:
string |
$fileName: |
Filename to be imported. |
API Tags:
Return: | List of error messages and warning messages generated by status check. Errors are contained in the key 'errors' and the warnings are contained in the key 'warnings'. |
void _doStatusCheck(
array
$versions, mixed
&$errors
)
|
|
Do the version validation prior actually reloading the Gallery installation
Parameters:
array |
$versions: |
The plugin status as extracted from the <plugin-status> tag. $versions[1] - The plugin id $versions[2] - Required Core Api $versions[3] - Require Api (Module or Theme) $versions[4] - Plugin Version number $versions[5] - The plugin active flag. $versions[6] - The plugin type module | theme. |
void _processStartElement(
$tag,
$attributes
)
|
|
Parameters:
API Tags:
Access: | protected |
See: | GalleryXmlHandler::_processStartElement |
Redefinition of:
- GalleryXmlHandler::_processStartElement()
- XML Callback to process start elements