\Components\Website\Media::
Use this API get the contents of media folders.
Methods
Invoke via \Components\Website\Media::method()
Click a method name to copy it.
Returns all media underneath a folder
Returns a URL of an image at the size supplied.
If $iWidth or $iHeight is not specified, a resize will occur only in the specified dimension.
When $bMaintainAspect is true, the image is restricted to the smaller dimension.
Parameters
$strOriginalFilePath
mixed
$iWidth
int
Width in pixels
$iHeight
int
Height in pixels
$bMaintainAspect
bool
Whether or not to maintain aspect ratio. If set to 'crop' the image will be scaled and cropped.
Database Fields
The following fields are used when retrieving and saving entities.
media_server_path
string
(255)
media_url_target
string
(255)