\FAA\Obj\GenericBaseLesson

Class Basic

This is the basic content that all subtypes may extend

Summary

Methods
Properties
Constants
Images()
MainImage()
GetPrimaryPicture()
__construct()
HasSubscription()
Next()
SearchFields()
$
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$

$ :boolean|null

is_timed

Type

boolean|null

Methods

Images()

Images(boolean  $resolved = false): array|array<mixed,\FAA\Obj\Generic\Asset>

List images

Get the content of the images attribute relation Will generate and return an empty array hen attribute is not filled

Parameters

boolean $resolved

Returns

array|array<mixed,\FAA\Obj\Generic\Asset>

MainImage()

MainImage(): \FAA\Obj\Generic\Asset|null

Get main image

Returns

\FAA\Obj\Generic\Asset|null

GetPrimaryPicture()

GetPrimaryPicture(): \FAA\Obj\Generic\Traits\?Asset

Get the primary picture

Returns

\FAA\Obj\Generic\Traits\?Asset

__construct()

__construct(null|integer  $id = null,null|string  $language = null,null|string  $type = 'baselesson')

The lesson constructor.

Parameters

null|integer $id

The lesson id

null|string $language

The local language or null

null|string $type

The sub type

HasSubscription()

HasSubscription(  $user): \FAA\Obj\Result

Parameters

$user

User

Returns

\FAA\Obj\Result —

A system result object

SearchFields()

SearchFields(): array

Returns

array