Media
in package
Media class.
Table of Contents
- TABLE_NAME_MEDIA = 'u_#__file_upload'
- $images : array<string|int, mixed>
- Images.
- getImage() : array<string|int, mixed>
- Get image data.
- getImageHtml() : string
- Get image HTML.
- getImages() : array<string|int, mixed>
- getImageUrl() : string
- Get image URL.
- removeImage() : bool
- Delete image file.
Constants
TABLE_NAME_MEDIA
public
string
TABLE_NAME_MEDIA
= 'u_#__file_upload'
Media table name.
Properties
$images
Images.
protected
static array<string|int, mixed>
$images
Methods
getImage()
Get image data.
public
static getImage(string $key) : array<string|int, mixed>
Parameters
- $key : string
Return values
array<string|int, mixed> —getImageHtml()
Get image HTML.
public
static getImageHtml(string $value) : string
Parameters
- $value : string
-
json
Return values
string —getImages()
public
static getImages() : array<string|int, mixed>
Return values
array<string|int, mixed> —getImageUrl()
Get image URL.
public
static getImageUrl(string $key) : string
Parameters
- $key : string
Return values
string —removeImage()
Delete image file.
public
static removeImage(string $key) : bool
Parameters
- $key : string