eZPublish  4.5
eZMedia Class Reference

The class eZMedia handles registered media files. More...

+ Inheritance diagram for eZMedia:
+ Collaboration diagram for eZMedia:

Public Member Functions

 eZMedia ($row)
 
 filePath ()
 
 fileSize ()
 
 mimeTypeCategory ()
 
 mimeTypePart ()
 
 storedFileInfo ()
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

Static Public Member Functions

static create ($contentObjectAttributeID, $version)
 
static definition ()
 
static fetch ($id, $version, $asObject=true)
 
static fetchByContentObjectID ($contentObjectID, $languageCode=null, $asObject=true)
 Fetch media objects by content object id. More...
 
static fetchByFileName ($filename, $version=null, $asObject=true)
 
static removeByID ($id, $version)
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Public Attributes

 $ContentObjectAttributeID
 
 $Controls
 
 $Filename
 
 $HasController
 
 $Height
 
 $IsAutoplay
 
 $IsLoop
 
 $MimeType
 
 $OriginalFilename
 
 $Pluginspage
 
 $Quality
 
 $Width
 
- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

The class eZMedia handles registered media files.

Member Function Documentation

static eZMedia::definition ( )
static

Referenced by fetch(), fetchByFileName(), and removeByID().

eZMedia::eZMedia (   $row)

Referenced by create().

static eZMedia::fetchByContentObjectID (   $contentObjectID,
  $languageCode = null,
  $asObject = true 
)
static

Fetch media objects by content object id.

Parameters
int$contentObjectIDcontentobject id
string$languageCodelanguage code
boolean$asObjectif return object
Returns
array

Referenced by eZMediaType\deleteStoredObjectAttribute().

static eZMedia::fetchByFileName (   $filename,
  $version = null,
  $asObject = true 
)
static
eZMedia::filePath ( )
eZMedia::fileSize ( )
eZMedia::mimeTypeCategory ( )
eZMedia::mimeTypePart ( )
static eZMedia::removeByID (   $id,
  $version 
)
static
eZMedia::storedFileInfo ( )

Referenced by filePath(), and fileSize().

Member Data Documentation

eZMedia::$ContentObjectAttributeID
eZMedia::$Controls
eZMedia::$Filename
eZMedia::$HasController
eZMedia::$Height
eZMedia::$IsAutoplay
eZMedia::$IsLoop
eZMedia::$MimeType
eZMedia::$OriginalFilename
eZMedia::$Pluginspage
eZMedia::$Quality
eZMedia::$Width

The documentation for this class was generated from the following file: