|
eZ Publish
[trunk]
|
The class eZMediaType handles storage and playback of media files. More...
Inheritance diagram for eZMediaType:
Collaboration diagram for eZMediaType:Public Member Functions | |
| checkFileUploads () | |
| customObjectAttributeHTTPAction ($http, $action, $contentObjectAttribute, $parameters) | |
| deleteStoredObjectAttribute ($contentObjectAttribute, $version=null) | |
| eZMediaType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fixupClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fromString ($objectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| hasStoredFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| insertHTTPFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $httpFile, $mimeData, &$result) | |
| insertRegularFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $filePath, &$result) | |
| isHTTPFileInsertionSupported () | |
| isRegularFileInsertionSupported () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| postInitializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| serializeContentObjectAttribute ($package, $objectAttribute) | |
| storeClassAttribute ($attribute, $version) | |
| storeDefinedClassAttribute ($attribute) | |
| storedFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| storeObjectAttribute ($contentObjectAttribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($contentObjectAttribute, $name="original_filename") | |
| toString ($objectAttribute) | |
| trashStoredObjectAttribute ($contentObjectAttribute, $version=null) | |
| unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode) | |
| validateClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
Static Public Member Functions | |
| pluginPage ($mediaType) | |
Public Attributes | |
| const | DATA_TYPE_STRING = "ezmedia" |
| const | MAX_FILESIZE_FIELD = 'data_int1' |
| const | MAX_FILESIZE_VARIABLE = '_ezmedia_max_filesize_' |
| const | TYPE_FIELD = "data_text1" |
| const | TYPE_VARIABLE = "_ezmedia_type_" |
The class eZMediaType handles storage and playback of media files.
Definition at line 18 of file ezmediatype.php.
Checks if file uploads are enabled, if not it gives a warning.
Definition at line 220 of file ezmediatype.php.
Referenced by fetchObjectAttributeHTTPInput().
| eZMediaType::customObjectAttributeHTTPAction | ( | $ | http, |
| $ | action, | ||
| $ | objectAttribute, | ||
| $ | parameters | ||
| ) |
Executes a custom action for an object attribute which was defined on the web page.
Reimplemented from eZDataType.
Definition at line 360 of file ezmediatype.php.
| eZMediaType::deleteStoredObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | version = null |
||
| ) |
Delete stored attribute
Reimplemented from eZDataType.
Definition at line 120 of file ezmediatype.php.
Referenced by customObjectAttributeHTTPAction().
Definition at line 26 of file ezmediatype.php.
| eZMediaType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 582 of file ezmediatype.php.
| eZMediaType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 272 of file ezmediatype.php.
| eZMediaType::fixupClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as class attribute input.
Reimplemented from eZDataType.
Definition at line 578 of file ezmediatype.php.
| eZMediaType::fromString | ( | $ | objectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 658 of file ezmediatype.php.
| eZMediaType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 613 of file ezmediatype.php.
| eZMediaType::hasStoredFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
We support file information
Reimplemented from eZDataType.
Definition at line 544 of file ezmediatype.php.
| eZMediaType::insertHTTPFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | httpFile, | ||
| $ | mimeData, | ||
| &$ | result | ||
| ) |
Inserts the file using the eZMedia class.
Reimplemented from eZDataType.
Definition at line 391 of file ezmediatype.php.
| eZMediaType::insertRegularFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | filePath, | ||
| &$ | result | ||
| ) |
Inserts the file using the eZMedia class.
Reimplemented from eZDataType.
Definition at line 459 of file ezmediatype.php.
Referenced by fromString().
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 375 of file ezmediatype.php.
Regular file insertion is supported.
Reimplemented from eZDataType.
Definition at line 383 of file ezmediatype.php.
| eZMediaType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 636 of file ezmediatype.php.
| eZMediaType::objectAttributeContent | ( | $ | objectAttribute | ) |
Returns the content data for the given content object attribute.
Reimplemented from eZDataType.
Definition at line 624 of file ezmediatype.php.
| eZMediaType::pluginPage | ( | $ | mediaType | ) | [static] |
Returns plugin page by media type
Definition at line 241 of file ezmediatype.php.
Referenced by fetchObjectAttributeHTTPInput(), insertHTTPFile(), insertRegularFile(), and postInitializeObjectAttribute().
| eZMediaType::postInitializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets value according to current version
Reimplemented from eZDataType.
Definition at line 35 of file ezmediatype.php.
| eZMediaType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 673 of file ezmediatype.php.
| eZMediaType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 700 of file ezmediatype.php.
| eZMediaType::storeClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
Stores the datatype data to the database which is related to the class attribute. The $version parameter determines which version is currently being stored, 0 is the real version while 1 is the temporary version.
Reimplemented from eZDataType.
Definition at line 565 of file ezmediatype.php.
| eZMediaType::storeDefinedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Reimplemented from eZDataType.
Definition at line 569 of file ezmediatype.php.
| eZMediaType::storedFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Extracts file information for the media entry.
Reimplemented from eZDataType.
Definition at line 553 of file ezmediatype.php.
| eZMediaType::storeObjectAttribute | ( | $ | objectAttribute | ) |
Stores the datatype data to the database which is related to the object attribute.
Reimplemented from eZDataType.
Definition at line 356 of file ezmediatype.php.
Reimplemented from eZDataType.
Definition at line 793 of file ezmediatype.php.
| eZMediaType::title | ( | $ | contentObjectAttribute, |
| $ | name = "original_filename" |
||
| ) |
Returns the object title.
Reimplemented from eZDataType.
Definition at line 601 of file ezmediatype.php.
| eZMediaType::toString | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 644 of file ezmediatype.php.
| eZMediaType::trashStoredObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | version = null |
||
| ) |
The object is being moved to trash, do any necessary changes to the attribute. Rename file and update db row with new name, so that access to the file using old links no longer works.
Reimplemented from eZDataType.
Definition at line 69 of file ezmediatype.php.
| eZMediaType::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented from eZDataType.
Definition at line 690 of file ezmediatype.php.
| eZMediaType::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode object |
Reimplemented from eZDataType.
Definition at line 739 of file ezmediatype.php.
| eZMediaType::validateClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Validates the input for a class attribute and returns a validation state as defined in eZInputValidator.
Reimplemented from eZDataType.
Definition at line 573 of file ezmediatype.php.
| eZMediaType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validates the input and returns true if the input was valid for this datatype.
Reimplemented from eZDataType.
Definition at line 177 of file ezmediatype.php.
| const eZMediaType::DATA_TYPE_STRING = "ezmedia" |
Definition at line 20 of file ezmediatype.php.
| const eZMediaType::MAX_FILESIZE_FIELD = 'data_int1' |
Definition at line 21 of file ezmediatype.php.
| const eZMediaType::MAX_FILESIZE_VARIABLE = '_ezmedia_max_filesize_' |
Definition at line 22 of file ezmediatype.php.
| const eZMediaType::TYPE_FIELD = "data_text1" |
Definition at line 23 of file ezmediatype.php.
| const eZMediaType::TYPE_VARIABLE = "_ezmedia_type_" |
Definition at line 24 of file ezmediatype.php.