FileAccess Orion

Booking extends BaseDbContent
in package

Define system booking object

Tags
category

Core content type

author

Tobias Teichner webmaster@teichner.biz

since

File available since v6.14.0

Table of Contents

$  : string
$  : int
$  : int
$db_fields  : array<string|int, mixed>
$dbal  : DBAL|null
The database abstraction layer buffer
__construct()  : mixed
Notice constructor.
Article()  : Article|null
Basket()  : User|null
Delete()  : Result|null
Delete from database
Owner()  : User|null
Save()  : Result|null
SearchFields()  : array<string|int, array<string|int, mixed>>
Get search fields
database()  : BookingsDBAL|null
Get the database instance
loadFromSrc()  : void
Fetch from db

Properties

$

public string $

created_at The creation date

$

public int $

status The status code

$

public int $

persons The guests count for this pack

$db_fields

protected array<string|int, mixed> $db_fields = []

Methods

__construct()

Notice constructor.

public __construct([int|string $id = null ][, null|string $language = null ]) : mixed
Parameters
$id : int|string = null

The booking id (in database, mostly an integer)

$language : null|string = null

The local language or null

Return values
mixed

Delete()

Delete from database

public Delete([false $skip = false ]) : Result|null
Parameters
$skip : false = false
Return values
Result|null

Save()

public Save([false $force_new_id = false ]) : Result|null
Parameters
$force_new_id : false = false
Return values
Result|null

SearchFields()

Get search fields

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

loadFromSrc()

Fetch from db

protected loadFromSrc() : void
Return values
void

Search results