|
eZ Publish
[trunk]
|
The class eZBinaryFile handles registered binaryfiles. More...
Inheritance diagram for eZBinaryFile:
Collaboration diagram for eZBinaryFile:Public Member Functions | |
| eZBinaryFile ($row) | |
| filePath () | |
| fileSize () | |
| metaData () | |
| mimeTypeCategory () | |
| mimeTypePart () | |
| storedFileInfo () | |
Static Public Member Functions | |
| static | create ($contentObjectAttributeID, $version) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($id, $version=null, $asObject=true) |
| static | fetchByFileName ($filename, $version=null, $asObject=true) |
| static | removeByID ($id, $version) |
Public Attributes | |
| $ContentObjectAttributeID | |
| $Filename | |
| $MimeType | |
| $OriginalFilename | |
The class eZBinaryFile handles registered binaryfiles.
Definition at line 18 of file ezbinaryfile.php.
| static eZBinaryFile::create | ( | $ | contentObjectAttributeID, |
| $ | version | ||
| ) | [static] |
Definition at line 99 of file ezbinaryfile.php.
| static eZBinaryFile::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 25 of file ezbinaryfile.php.
Referenced by fetch(), fetchByFileName(), and removeByID().
| eZBinaryFile::eZBinaryFile | ( | $ | row | ) |
Definition at line 20 of file ezbinaryfile.php.
Referenced by create().
| static eZBinaryFile::fetch | ( | $ | id, |
| $ | version = null, |
||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 110 of file ezbinaryfile.php.
Referenced by eZBinaryFileType\deleteStoredObjectAttribute(), eZBinaryFileHandler\downloadFileObject(), eZBinaryFileHandler\downloadType(), eZBinaryFileType\fetchObjectAttributeHTTPInput(), eZBinaryFileType\handleDownload(), eZBinaryFileType\hasObjectAttributeContent(), eZBinaryFileType\initializeObjectAttribute(), eZBinaryFileType\insertHTTPFile(), eZBinaryFileType\insertRegularFile(), eZBinaryFileType\objectAttributeContent(), eZBinaryFileType\storedFileInformation(), eZBinaryFileType\title(), eZBinaryFileType\trashStoredObjectAttribute(), and eZBinaryFileType\validateObjectAttributeHTTPInput().
| static eZBinaryFile::fetchByFileName | ( | $ | filename, |
| $ | version = null, |
||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 131 of file ezbinaryfile.php.
Referenced by eZBinaryFileType\deleteStoredObjectAttribute(), and eZBinaryFileType\trashStoredObjectAttribute().
Definition at line 81 of file ezbinaryfile.php.
Definition at line 67 of file ezbinaryfile.php.
Definition at line 172 of file ezbinaryfile.php.
Definition at line 87 of file ezbinaryfile.php.
Definition at line 93 of file ezbinaryfile.php.
| static eZBinaryFile::removeByID | ( | $ | id, |
| $ | version | ||
| ) | [static] |
Definition at line 152 of file ezbinaryfile.php.
Referenced by eZBinaryFileType\deleteStoredObjectAttribute().
Definition at line 222 of file ezbinaryfile.php.
Referenced by filePath(), fileSize(), and metaData().
| eZBinaryFile::$ContentObjectAttributeID |
Definition at line 236 of file ezbinaryfile.php.
| eZBinaryFile::$Filename |
Definition at line 237 of file ezbinaryfile.php.
| eZBinaryFile::$MimeType |
Definition at line 239 of file ezbinaryfile.php.
| eZBinaryFile::$OriginalFilename |
Definition at line 238 of file ezbinaryfile.php.