Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
Creates a value only from a file path. | |
getFileSize ( ) : integer | Returns the image file size in byte. |
public __construct ( array $imageData = [] ) | ||
$imageData | array |
public static fromString ( string $path ) : |
||
$path | string | |
Результат |
public getFileSize ( ) : integer | ||
Результат | integer |
public mixed $imageId | ||
Результат | mixed |