kernel/classes/ezcontentupload.php
File containing the eZContentUpload class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZContentUpload
File containing the eZContentUpload class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Properties
Methods

detectLocations(
$classIdentifier, $class, $location, $parentNodes, $parentMainNode
)
:
void| Name | Type | Description |
|---|---|---|
| $classIdentifier | ||
| $class | ||
| $location | ||
| $parentNodes | ||
| $parentMainNode |

fetchHTTPFile(
$httpFileIdentifier, $errors, $file, $mimeData
)
:
boolFetches the HTTP-File into $file and fills in MIME-Type information into $mimeData.
| Name | Type | Description |
|---|---|---|
| $httpFileIdentifier | ||
| $errors | ||
| $file | ||
| $mimeData |
| Type | Description |
|---|---|
| bool | false if something went wrong. |

findHTTPFileAttribute(
$dataMap, $fileAttribute
)
:
void| Name | Type | Description |
|---|---|---|
| $dataMap | ||
| $fileAttribute |

findRegularFileAttribute(
$dataMap, $fileAttribute
)
:
void| Name | Type | Description |
|---|---|---|
| $dataMap | ||
| $fileAttribute |

findStringAttribute(
$dataMap, $nameAttribute
)
:
void| Name | Type | Description |
|---|---|---|
| $dataMap | ||
| $nameAttribute |

handleLocalFile(
array $result, string $filePath, mixed $location, \eZContentObjectTreeNode | false $existingNode, string $nameString
=
'', string | false $localeCode
=
false
)
:
booleanFetches the local file, figures out its MIME-type and creates the proper content object out of it.
| Name | Type | Description |
|---|---|---|
| $result | array | Result data, will be filled with information which the client can examine, contains: errors An array with errors, each element is an array with a 'description' entry containing the text |
| $filePath | string | Path to file which should be stored |
| $location | mixed | The node ID which the new object will be placed or the string 'auto' for automatic placement of type. |
| $existingNode | \eZContentObjectTreeNode | false | Pass a contentobjecttreenode object to let the uploading be done to an existing object, if not it will create one from scratch. |
| $nameString | string | The name of the new object/new version |
| $localeCode | string | false | Locale code (eg eng-GB, fre-FR, ...) to use when creating the object or the version. |
| Type | Description |
|---|---|
| boolean |

handleUpload(
array $result, string $httpFileIdentifier, mixed $location, \eZContentObjectTreeNode | false $existingNode, string $nameString
=
'', string | false $localeCode
=
false
)
:
booleanFetches the uploaded file, figures out its MIME-type and creates the proper content object out of it.
| Name | Type | Description |
|---|---|---|
| $result | array | Result data, will be filled with information which the client can examine, contains: errors An array with errors, each element is an array with a 'description' entry containing the text |
| $httpFileIdentifier | string | The HTTP identifier of the uploaded file, this must match the name of the input tag. |
| $location | mixed | The node ID which the new object will be placed or the string 'auto' for automatic placement of type. |
| $existingNode | \eZContentObjectTreeNode | false | Pass a contentobjecttreenode object to let the uploading be done to an existing object, if not it will create one from scratch. |
| $nameString | string | The name of the new object/new version |
| $localeCode | string | false | Locale code (eg eng-GB, fre-FR, ...) to use when creating the object or the version. |
| Type | Description |
|---|---|
| boolean |

processNamePattern(
$variables, $namePattern
)
:
void| Name | Type | Description |
|---|---|---|
| $variables | ||
| $namePattern |

publishObject(
$result, $errors, $notices, $object, $publishVersion, $class, $parentNodes, $parentMainNode
)
:
void| Name | Type | Description |
|---|---|---|
| $result | ||
| $errors | ||
| $notices | ||
| $object | ||
| $publishVersion | ||
| $class | ||
| $parentNodes | ||
| $parentMainNode |

result(
$actionName, $cleanup
=
true
)
:
void| Name | Type | Description |
|---|---|---|
| $actionName | ||
| $cleanup |