PHP Class eZ\Publish\Core\FieldType\Image\Value

Inheritance: extends eZ\Publish\Core\FieldType\Value
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Свойство Type Description
$alternativeText string | null The alternative image text (for example "Picture of an apple.").
$fileName string Required.
$fileSize integer Required.
$height integer Original image height.
$id mixed Required.
$imageId mixed External image ID (required by REST for now, see https://jira.ez.no/browse/EZP-20831).
$inputUri string Input image file URI.
$uri string The image's HTTP URI.
$width integer Original image width.

Méthodes publiques

Méthode Description
__construct ( array $imageData = [] ) Construct a new Value object.
__get ( $propertyName )
__set ( $propertyName, $propertyValue )
__toString ( )
fromString ( string $path ) : Value Creates a value only from a file path.
getFileSize ( ) : integer Returns the image file size in byte.

Method Details

__construct() public méthode

Construct a new Value object.
public __construct ( array $imageData = [] )
$imageData array

__get() public méthode

public __get ( $propertyName )

__set() public méthode

public __set ( $propertyName, $propertyValue )

__toString() public méthode

See also: eZ\Publish\Core\FieldType\Value
public __toString ( )

fromString() public static méthode

Creates a value only from a file path.
Deprecation: Starting with 5.3.3, handled by Image\Type::acceptValue()
public static fromString ( string $path ) : Value
$path string
Résultat Value

getFileSize() public méthode

Returns the image file size in byte.
public getFileSize ( ) : integer
Résultat integer

Property Details

$alternativeText public_oe property

The alternative image text (for example "Picture of an apple.").
public string|null $alternativeText
Résultat string | null

$fileName public_oe property

Required.
public string $fileName
Résultat string

$fileSize public_oe property

Required.
public int $fileSize
Résultat integer

$height public_oe property

Original image height.
public int $height
Résultat integer

$id public_oe property

Required.
public mixed $id
Résultat mixed

$imageId public_oe property

External image ID (required by REST for now, see https://jira.ez.no/browse/EZP-20831).
public mixed $imageId
Résultat mixed

$inputUri public_oe property

Input image file URI.
public string $inputUri
Résultat string

$uri public_oe property

The image's HTTP URI.
public string $uri
Résultat string

$width public_oe property

Original image width.
public int $width
Résultat integer