eZPublishCommunityProject  2013.9
eZ\Publish\Core\FieldType\Image\Value Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Image\Value:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Image\Value:

Public Member Functions

 __construct (array $imageData=array())
 Construct a new Value object. More...
 
 __get ($propertyName)
 
 __set ($propertyName, $propertyValue)
 
 __toString ()
 
 getFileSize ()
 Returns the image file size in byte. More...
 
- Public Member Functions inherited from eZ\Publish\Core\FieldType\Value
 __toString ()
 Returns a string representation of the field value. More...
 
- Public Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 __construct (array $properties=array())
 Construct object optionally with a set of properties. More...
 
 __get ($property)
 Magic get function handling read to non public properties. More...
 
 __isset ($property)
 Magic isset function handling isset() to non public properties. More...
 
 __set ($property, $value)
 Magic set function handling writes to non public properties. More...
 
 __unset ($property)
 Magic unset function handling unset() to non public properties. More...
 
 attribute ($property)
 Internal function for Legacy template engine compatibility to get property value. More...
 
 attributes ()
 Internal function for Legacy template engine compatibility to get properties. More...
 
 hasAttribute ($property)
 Internal function for Legacy template engine compatibility to check existence of property. More...
 

Static Public Member Functions

static fromString ($path)
 Creates a value only from a file path. More...
 
- Static Public Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
static __set_state (array $array)
 Returns a new instance of this class with the data specified by $array. More...
 

Public Attributes

 $alternativeText
 
 $fileName
 
 $fileSize
 
 $id
 
 $imageId
 
 $uri
 

Additional Inherited Members

- Protected Member Functions inherited from eZ\Publish\API\Repository\Values\ValueObject
 getProperties ($dynamicProperties=array())
 Function where list of properties are returned. More...
 

Constructor & Destructor Documentation

eZ\Publish\Core\FieldType\Image\Value::__construct ( array  $imageData = array())

Construct a new Value object.

Parameters
array$imageData

Member Function Documentation

eZ\Publish\Core\FieldType\Image\Value::__get (   $propertyName)
eZ\Publish\Core\FieldType\Image\Value::__set (   $propertyName,
  $propertyValue 
)
eZ\Publish\Core\FieldType\Image\Value::__toString ( )
See Also
static eZ\Publish\Core\FieldType\Image\Value::fromString (   $path)
static

Creates a value only from a file path.

Parameters
string$path
Returns
Value

Referenced by eZ\Publish\Core\FieldType\Image\Type\createValueFromInput().

eZ\Publish\Core\FieldType\Image\Value::getFileSize ( )

Returns the image file size in byte.

Returns
integer

Member Data Documentation

eZ\Publish\Core\FieldType\Image\Value::$alternativeText
eZ\Publish\Core\FieldType\Image\Value::$fileName
eZ\Publish\Core\FieldType\Image\Value::$fileSize
eZ\Publish\Core\FieldType\Image\Value::$id
eZ\Publish\Core\FieldType\Image\Value::$imageId
eZ\Publish\Core\FieldType\Image\Value::$uri

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