PHP Класс eZ\Publish\Core\FieldType\Image\Value

Наследование: extends eZ\Publish\Core\FieldType\Value
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

__get() публичный Метод

public __get ( $propertyName )

__set() публичный Метод

public __set ( $propertyName, $propertyValue )

__toString() публичный Метод

См. также: eZ\Publish\Core\FieldType\Value
public __toString ( )

fromString() публичный статический Метод

Creates a value only from a file path.
Устаревший: Starting with 5.3.3, handled by Image\Type::acceptValue()
public static fromString ( string $path ) : Value
$path string
Результат Value

getFileSize() публичный Метод

Returns the image file size in byte.
public getFileSize ( ) : integer
Результат integer

Описание свойств

$alternativeText публичное свойство

The alternative image text (for example "Picture of an apple.").
public string|null $alternativeText
Результат string | null

$fileName публичное свойство

Required.
public string $fileName
Результат string

$fileSize публичное свойство

Required.
public int $fileSize
Результат integer

$height публичное свойство

Original image height.
public int $height
Результат integer

$id публичное свойство

Required.
public mixed $id
Результат mixed

$imageId публичное свойство

External image ID (required by REST for now, see https://jira.ez.no/browse/EZP-20831).
public mixed $imageId
Результат mixed

$inputUri публичное свойство

Input image file URI.
public string $inputUri
Результат string

$uri публичное свойство

The image's HTTP URI.
public string $uri
Результат string

$width публичное свойство

Original image width.
public int $width
Результат integer