|
eZ Publish
[trunk]
|
Handles content classes in the package system. More...
Inheritance diagram for eZContentClassPackageHandler:
Collaboration diagram for eZContentClassPackageHandler: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) | |
Static Public Member Functions | |
| static | addClass ($package, $classID, $classIdentifier=false) |
| static | classDOMTree ($class) |
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.
Definition at line 17 of file ezcontentclasspackagehandler.php.
| eZContentClassPackageHandler::add | ( | $ | packageType, |
| $ | package, | ||
| $ | cli, | ||
| $ | parameters | ||
| ) | [virtual] |
Adds items defined in $parameters to the package $package.
Implements eZPackageHandler.
Definition at line 409 of file ezcontentclasspackagehandler.php.
| static eZContentClassPackageHandler::addClass | ( | $ | package, |
| $ | classID, | ||
| $ | classIdentifier = false |
||
| ) | [static] |
Adds the content class with ID $classID to the package. If $classIdentifier is false then it will be fetched from the class.
Definition at line 426 of file ezcontentclasspackagehandler.php.
Referenced by add(), and eZContentObjectPackageHandler\generatePackage().
| static eZContentClassPackageHandler::classDOMTree | ( | $ | class | ) | [static] |
Creates the DOM tree for the content class $class and returns the root node.
Definition at line 535 of file ezcontentclasspackagehandler.php.
Referenced by addClass().
Definition at line 713 of file ezcontentclasspackagehandler.php.
| eZContentClassPackageHandler::explainInstallItem | ( | $ | package, |
| $ | installItem, | ||
| $ | requestedInfo = array( 'name', 'identifier', 'description', 'language_info' ) |
||
| ) | [virtual] |
Returns an explanation for the content class install item. Use $requestedInfo to request portion of info.
Implements eZPackageHandler.
Definition at line 40 of file ezcontentclasspackagehandler.php.
Constructor
Definition at line 30 of file ezcontentclasspackagehandler.php.
| eZContentClassPackageHandler::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.
| $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.
Definition at line 447 of file ezcontentclasspackagehandler.php.
| eZContentClassPackageHandler::handleParameters | ( | $ | packageType, |
| $ | package, | ||
| $ | cli, | ||
| $ | type, | ||
| $ | arguments | ||
| ) | [private] |
Definition at line 455 of file ezcontentclasspackagehandler.php.
Referenced by handleAddParameters().
| eZContentClassPackageHandler::install | ( | $ | package, |
| $ | installType, | ||
| $ | parameters, | ||
| $ | name, | ||
| $ | os, | ||
| $ | filename, | ||
| $ | subdirectory, | ||
| $ | content, | ||
| &$ | installParameters, | ||
| &$ | installData | ||
| ) | [virtual] |
Creates a new contentclass as defined in the xml structure.
Implements eZPackageHandler.
Definition at line 156 of file ezcontentclasspackagehandler.php.
| eZContentClassPackageHandler::uninstall | ( | $ | package, |
| $ | installType, | ||
| $ | parameters, | ||
| $ | name, | ||
| $ | os, | ||
| $ | filename, | ||
| $ | subdirectory, | ||
| $ | content, | ||
| &$ | installParameters, | ||
| &$ | installData | ||
| ) | [virtual] |
Uninstalls all previously installed content classes.
Implements eZPackageHandler.
Definition at line 103 of file ezcontentclasspackagehandler.php.
Definition at line 25 of file ezcontentclasspackagehandler.php.
| const eZContentClassPackageHandler::ACTION_NEW = 3 |
Definition at line 24 of file ezcontentclasspackagehandler.php.
Referenced by install().
Definition at line 22 of file ezcontentclasspackagehandler.php.
Referenced by install().
Definition at line 23 of file ezcontentclasspackagehandler.php.
Referenced by install().
Definition at line 19 of file ezcontentclasspackagehandler.php.
| const eZContentClassPackageHandler::ERROR_HAS_OBJECTS = 101 |
Definition at line 20 of file ezcontentclasspackagehandler.php.