Page

Properties

id

public int $id

slug

public ?string $slug

name

public ?string $name

type

public ?string $type

body

public ?string $body

permissions

public ?array $permissions

status

public ?string $status

description

public ?string $description

mode

private \EnvisionPortal\PageModeInterface $mode

views

public int $views

Methods

__construct

public __construct(int $id, ?string $slug, ?string $name, ?string $type, ?string $body, ?array $permissions, ?string $status, ?string $description, int $views): mixed

Parameters:

Parameter Type Description
$id int  
$slug ?string  
$name ?string  
$type ?string  
$body ?string  
$permissions ?array  
$status ?string  
$description ?string  
$views int  

getName

public getName(): ?string

getBody

public getBody(): ?string

isAllowed

public isAllowed(): bool

getDescription

public getDescription(): ?string

getId

public getId(): int

Inherited methods

offsetExists

Check whether the given offset exists.

public offsetExists(mixed $offset): bool

Parameters:

Parameter Type Description
$offset mixed The offset to check.

Return Value:

True if the offset exists, false otherwise.

offsetGet

Retrieve the value of the given offset.

public offsetGet(mixed $offset): mixed|null

Parameters:

Parameter Type Description
$offset mixed The offset to retrieve.

Return Value:

The value of the offset, or null if it does not exist.

offsetSet

Set the value of the given offset.

public offsetSet(mixed $offset, mixed $value): void

Parameters:

Parameter Type Description
$offset mixed The offset to set.
$value mixed The value to assign to the offset.

offsetUnset

Unset the given offset.

public offsetUnset(mixed $offset): void

Parameters:

Parameter Type Description
$offset mixed  

Automatically generated on 2024-05-12