eZPublish
4.5
|
Handles content classes in the package system. More...
Public Member Functions | |
add ($packageType, $package, $cli, $parameters) | |
contentclassDirectory () | |
explainInstallItem ($package, $installItem, $requestedInfo=array( 'name', 'identifier', 'description', 'language_info')) | |
eZContentClassPackageHandler () | |
handleAddParameters ($packageType, $package, $cli, $arguments) | |
install ($package, $installType, $parameters, $name, $os, $filename, $subdirectory, $content, &$installParameters, &$installData) | |
uninstall ($package, $installType, $parameters, $name, $os, $filename, $subdirectory, $content, &$installParameters, &$installData) | |
![]() | |
createDependencyNode ($package, &$dependencyNode, $dependencyItem, $dependencySection) | |
createDependencyText ($package, $dependencyItem, $dependencySection) | |
createInstallNode ($package, $installNode, $installItem, $installType) | |
extractInstallContent () | |
eZPackageHandler ($handlerType, $parameters=array()) | |
handlerType () | |
isErrorElement ($elementID, &$installParameters) | |
parseDependencyNode ($package, &$dependencyNode, &$dependencyParameters, $dependencySection) | |
parseInstallNode ($package, $installNode, &$installParameters, $isInstall) | |
reset () | |
Static Public Member Functions | |
static | addClass ($package, $classID, $classIdentifier=false) |
static | classDOMTree ($class) |
![]() | |
static | errorChoosenAction ($errorCode, &$installParameters, $description, $handlerType, $resetError=true) |
Public Attributes | |
const | ACTION_DELETE = 4 |
const | ACTION_NEW = 3 |
const | ACTION_REPLACE = 1 |
const | ACTION_SKIP = 2 |
const | ERROR_EXISTS = 1 |
const | ERROR_HAS_OBJECTS = 101 |
Private Member Functions | |
handleParameters ($packageType, $package, $cli, $type, $arguments) | |
Handles content classes in the package system.
|
virtual |
Adds items defined in $parameters to the package $package.
Implements eZPackageHandler.
|
static |
Adds the content class with ID $classID to the package. If $classIdentifier is false
then it will be fetched from the class.
Referenced by add(), and eZContentObjectPackageHandler\generatePackage().
|
static |
Creates the DOM tree for the content class $class and returns the root node.
Referenced by addClass().
eZContentClassPackageHandler::contentclassDirectory | ( | ) |
|
virtual |
Returns an explanation for the content class install item. Use $requestedInfo to request portion of info.
Implements eZPackageHandler.
eZContentClassPackageHandler::eZContentClassPackageHandler | ( | ) |
Constructor
|
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.
$packageType | The type that was specified when using the add command, which is either the name of this handler or an alias for it. |
$package | The package object. |
$cli | Command line interface object, can be used to output errors etc. |
$arguments | An array with string values taken from the command line after the add command. |
Implements eZPackageHandler.
|
private |
Referenced by handleAddParameters().
|
virtual |
Creates a new contentclass as defined in the xml structure.
Implements eZPackageHandler.
|
virtual |
Uninstalls all previously installed content classes.
Implements eZPackageHandler.
const eZContentClassPackageHandler::ACTION_DELETE = 4 |
const eZContentClassPackageHandler::ACTION_NEW = 3 |
const eZContentClassPackageHandler::ACTION_REPLACE = 1 |
const eZContentClassPackageHandler::ACTION_SKIP = 2 |
const eZContentClassPackageHandler::ERROR_EXISTS = 1 |
const eZContentClassPackageHandler::ERROR_HAS_OBJECTS = 101 |