|
eZ Publish
[4.2]
|
Interface for all content upload handlers. More...
Public Member Functions | |
| eZContentUploadHandler ($name, $identifier) | |
| handleFile (&$upload, &$result, $filePath, $originalFilename, $mimeInfo, $location, $existingNode) | |
Public Attributes | |
| $Identifier | |
| The identifier of the handler. | |
| $Name | |
| The name of the handler, can be displayed to the end user. | |
Interface for all content upload handlers.
This defines the interface for upload handlers for content objects. The handler will be used if upload.ini is configured for a specific MIME type. The uploading system is general and will be used both by Web uploads as well as WebDAV PUT requests.
The handler must inherit this class and implement the following methods:
Also the constructor must pass a proper name and identifier to the eZContentUploadHandler.
Definition at line 50 of file ezcontentuploadhandler.php.
| eZContentUploadHandler::eZContentUploadHandler | ( | $ | name, |
| $ | identifier | ||
| ) |
Initialises the handler with the name.
Definition at line 55 of file ezcontentuploadhandler.php.
| eZContentUploadHandler::handleFile | ( | &$ | upload, |
| &$ | result, | ||
| $ | filePath, | ||
| $ | originalFilename, | ||
| $ | mimeInfo, | ||
| $ | location, | ||
| $ | existingNode | ||
| ) | [pure virtual] |
Handles the file $filePath and creates one ore more content objects.
| $upload | The eZContentUpload object that instantiated the request, public methods on this can be used. |
| $filePath | Path to file which should be stored, do not remove or move this file. |
| $mimeInfo | Contains MIME-Type information on the file. |
| $result | Result data, will be filled with information which the client can examine, contains:
|
| $location | The node ID which the new object will be placed or the string 'auto' for automatic placement of type. |
| $existingNode | Pass a contentobjecttreenode object to let the uploading be done to an existing object, if not it will create one from scratch. |
false if something failed or true if succesful. Definition at line 77 of file ezcontentuploadhandler.php.
| eZContentUploadHandler::$Identifier |
The identifier of the handler.
Definition at line 88 of file ezcontentuploadhandler.php.
| eZContentUploadHandler::$Name |
The name of the handler, can be displayed to the end user.
Definition at line 86 of file ezcontentuploadhandler.php.