Documentation

MediaType
in package

Table of Contents

Properties

$accessIds  : array<string|int, mixed>
Array with access ids to use with \Permission::checkAccess($id, 'static', true)
$directory  : array<string|int, mixed>
Array with the web and normal path to the directory.
$humanName  : string
Human readable name
$name  : string
Name of the mediatype e.g. files, shop, media1
$position  : int

Methods

__construct()  : mixed
checkAccess()  : bool
getAccessIds()  : array<string|int, mixed>
getDirectory()  : array<string|int, mixed>
getHumanName()  : string
getName()  : string
getPosition()  : int
setAccessIds()  : mixed
setDirectory()  : mixed
setHumanName()  : mixed
setName()  : mixed
setPosition()  : mixed

Properties

$accessIds

Array with access ids to use with \Permission::checkAccess($id, 'static', true)

protected array<string|int, mixed> $accessIds = array()

$directory

Array with the web and normal path to the directory.

protected array<string|int, mixed> $directory = array()

e.g: array( $this->cx->getWebsiteImagesContentPath(), $this->cx->getWebsiteImagesContentWebPath(), )

$name

Name of the mediatype e.g. files, shop, media1

protected string $name

Methods

__construct()

public __construct([mixed $name = '' ][, mixed $humanName = '' ][, mixed $directory = array() ][, mixed $accessIds = array() ][, mixed $position = '' ]) : mixed
Parameters
$name : mixed = ''
$humanName : mixed = ''
$directory : mixed = array()
$accessIds : mixed = array()
$position : mixed = ''

getAccessIds()

public getAccessIds() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDirectory()

public getDirectory() : array<string|int, mixed>
Return values
array<string|int, mixed>

setAccessIds()

public setAccessIds(array<string|int, mixed> $accessIds) : mixed
Parameters
$accessIds : array<string|int, mixed>

setDirectory()

public setDirectory(array<string|int, mixed> $directory) : mixed
Parameters
$directory : array<string|int, mixed>

setHumanName()

public setHumanName(string $humanName) : mixed
Parameters
$humanName : string

setName()

public setName(string $name) : mixed
Parameters
$name : string

setPosition()

public setPosition(int $position) : mixed
Parameters
$position : int

        
On this page

Search results