eZPublish  4.5
eZImageFile Class Reference

The class eZImageFile handles registered images. More...

+ Inheritance diagram for eZImageFile:
+ Collaboration diagram for eZImageFile:

Public Member Functions

 eZImageFile ($row)
 
- 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 appendFilepath ($contentObjectAttributeID, $filepath, $ignoreUnique=false)
 
static create ($contentObjectAttributeID, $filepath)
 
static definition ()
 
static fetchByFilepath ($contentObjectAttributeID, $filepath, $asObject=true)
 
static fetchForContentObjectAttribute ($contentObjectAttributeID, $asObject=false)
 
static fetchImageAttributesByFilepath ($filepath, $contentObjectAttributeID)
 Looks up ezcontentobjectattribute entries matching an image filepath and a contentobjectattribute ID. More...
 
static moveFilepath ($contentObjectAttributeID, $oldFilepath, $newFilepath)
 
static removeFilepath ($contentObjectAttributeID, $filepath)
 
static removeForContentObjectAttribute ($contentObjectAttributeID)
 
- 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
 
 $Filepath
 
 $ID
 
- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

The class eZImageFile handles registered images.

Member Function Documentation

static eZImageFile::appendFilepath (   $contentObjectAttributeID,
  $filepath,
  $ignoreUnique = false 
)
static
static eZImageFile::create (   $contentObjectAttributeID,
  $filepath 
)
static

Referenced by appendFilepath().

static eZImageFile::definition ( )
static
eZImageFile::eZImageFile (   $row)

Referenced by create().

static eZImageFile::fetchByFilepath (   $contentObjectAttributeID,
  $filepath,
  $asObject = true 
)
static
static eZImageFile::fetchForContentObjectAttribute (   $contentObjectAttributeID,
  $asObject = false 
)
static
static eZImageFile::fetchImageAttributesByFilepath (   $filepath,
  $contentObjectAttributeID 
)
static

Looks up ezcontentobjectattribute entries matching an image filepath and a contentobjectattribute ID.

Parameters
string$filePathfile path to look up as URL in the XML string
int$contentObjectAttributeID
Returns
array An array of content object attribute ids and versions of image files where the url is referenced
Todo:
Rewrite ! A where data_text LIKE 'xxx' is a resource hog !

Referenced by eZImageAliasHandler\removeAliases().

static eZImageFile::moveFilepath (   $contentObjectAttributeID,
  $oldFilepath,
  $newFilepath 
)
static
static eZImageFile::removeFilepath (   $contentObjectAttributeID,
  $filepath 
)
static
static eZImageFile::removeForContentObjectAttribute (   $contentObjectAttributeID)
static

Member Data Documentation

eZImageFile::$ContentObjectAttributeID
eZImageFile::$Filepath
eZImageFile::$ID

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