eZPublishCommunityProject(LegacyStack)  2013.6
eZDBPackageHandler Class Reference

Handles SQL files in the package system. More...

+ Inheritance diagram for eZDBPackageHandler:
+ Collaboration diagram for eZDBPackageHandler:

Public Member Functions

 add ($packageType, $package, $cli, $parameters)
 
 createInstallNode ($package, $installNode, $installItem, $installType)
 
 eZDBPackageHandler ()
 
 handleAddParameters ($packageType, $package, $cli, $arguments)
 
 handleParameters ($packageType, $package, $cli, $type, $arguments)
 
 install ($package, $installType, $parameters, $name, $os, $filename, $subdirectory, $content, &$installParameters, &$installData)
 
 parseInstallNode ($package, $installNode, &$installParameters, $isInstall)
 
 sqlDirectory ()
 
 sqlFileExists (&$sqlFile, &$databaseType, &$triedFiles)
 
- Public Member Functions inherited from eZPackageHandler
 createDependencyNode ($package, &$dependencyNode, $dependencyItem, $dependencySection)
 
 createDependencyText ($package, $dependencyItem, $dependencySection)
 
 explainInstallItem ($package, $installItem, $requestedInfo=array())
 
 extractInstallContent ()
 
 eZPackageHandler ($handlerType, $parameters=array())
 
 handlerType ()
 
 isErrorElement ($elementID, &$installParameters)
 
 parseDependencyNode ($package, &$dependencyNode, &$dependencyParameters, $dependencySection)
 
 reset ()
 
 uninstall ($package, $installType, $parameters, $name, $os, $filename, $subdirectory, $content, &$installParameters, &$installData)
 

Additional Inherited Members

- Static Public Member Functions inherited from eZPackageHandler
static errorChoosenAction ($errorCode, &$installParameters, $description, $handlerType, $resetError=true)
 

Detailed Description

Handles SQL files in the package system.

Member Function Documentation

eZDBPackageHandler::add (   $packageType,
  $package,
  $cli,
  $parameters 
)
virtual

Adds items defined in $parameters to the package $package.

Implements eZPackageHandler.

eZDBPackageHandler::createInstallNode (   $package,
  $installNode,
  $installItem,
  $installType 
)
virtual

Fills in extra information on the install node $installNode which is specific to the current handler.

Parameters
$packageThe current package.
$installItemContains all variables for the install
$installTypeThe type of install, can be 'install' or 'uninstall'

Implements eZPackageHandler.

eZDBPackageHandler::eZDBPackageHandler ( )

Constructor

eZDBPackageHandler::handleAddParameters (   $packageType,
  $package,
  $cli,
  $arguments 
)
virtual

Called when command line parameters must be handled by the package handler. This function must return an array with values which can easily be used in the add() function.

Parameters
$packageTypeThe type that was specified when using the add command, which is either the name of this handler or an alias for it.
$packageThe package object.
$cliCommand line interface object, can be used to output errors etc.
$argumentsAn array with string values taken from the command line after the add command.

Implements eZPackageHandler.

eZDBPackageHandler::handleParameters (   $packageType,
  $package,
  $cli,
  $type,
  $arguments 
)

Referenced by handleAddParameters().

eZDBPackageHandler::install (   $package,
  $installType,
  $parameters,
  $name,
  $os,
  $filename,
  $subdirectory,
  $content,
$installParameters,
$installData 
)
virtual

Installs the package type

Implements eZPackageHandler.

eZDBPackageHandler::parseInstallNode (   $package,
  $installNode,
$installParameters,
  $isInstall 
)
virtual

Parses the XML node $installNode and fills in extra information not handled by the package parser.

Parameters
$packageThe current package.
$installParametersReference to an array which must be filled with specific data for the current handler.
$isInstallIs true if this is an install node, false if it is an uninstall node

Implements eZPackageHandler.

eZDBPackageHandler::sqlDirectory ( )

Referenced by createInstallNode(), and install().

eZDBPackageHandler::sqlFileExists ( $sqlFile,
$databaseType,
$triedFiles 
)

Referenced by handleParameters().


The documentation for this class was generated from the following file: