Documentation

tab_tenants_appointments
in package

Class tab_tenants_details

Tags
author

Lutz Boldt boldt@bitstore-online.de

Table of Contents

Properties

$allowedcols  : array<string|int, mixed>
Declares an array of allowed column names.
$db  : db_master

Methods

__construct()  : mixed
Konstruktor der Klasse Initialisiert die $db Variable mit der globalen $dbm Instanz
__destruct()  : void
Destructor method.
delete()  : bool
Löscht einen Datensatz
get()  : array<string|int, mixed>|bool
Holt einen Datensatz
insert()  : string|bool
Fügt einen neuen Datensatz hinzu
update()  : bool
Aktualisiert einen Datensatz

Properties

$allowedcols

Declares an array of allowed column names.

protected array<string|int, mixed> $allowedcols = ['id', 'tenant', 'active', 'username', 'password', 'calname']

Each element in the array represents a column name that is allowed in a query.

Methods

__construct()

Konstruktor der Klasse Initialisiert die $db Variable mit der globalen $dbm Instanz

public __construct() : mixed

__destruct()

Destructor method.

public __destruct() : void

This method is called when an object of the class is destroyed. It will unset the "db" property of the object, releasing the memory used by it.

delete()

Löscht einen Datensatz

public delete(string $val[, string $col = 'tenant' ]) : bool
Parameters
$val : string

Wert, nach dem gelöscht werden soll

$col : string = 'tenant'

Spalte, in der Wert stehen muss (Standard: tenant)

Return values
bool
  • Im Erfolgsfall True, sonst False

get()

Holt einen Datensatz

public get(string $val[, string $col = 'tenant' ]) : array<string|int, mixed>|bool
Parameters
$val : string

Wert, nach dem in Spalte geschaut werden soll

$col : string = 'tenant'

Spalte für den Wert

Return values
array<string|int, mixed>|bool
  • Im Erfolgsfall ein Array, sonst False

insert()

Fügt einen neuen Datensatz hinzu

public insert(string $tid, string $active, string $username, string $password[, string $calname = '' ]) : string|bool
Parameters
$tid : string

ID des Mieters

$active : string

Aktivitätsstatus

$username : string

Benutzername

$password : string

Passwort

$calname : string = ''

Kalendername (optional)

Return values
string|bool
  • Bei erfolgreichem Hinzufügen wird die ID des neuen Datensatzes zurückgegeben, sonst False

update()

Aktualisiert einen Datensatz

public update(string $col, string $val, string $tid) : bool
Parameters
$col : string

Spalte, die aktualisiert werden soll

$val : string

Wert, auf den die Spalte aktualisiert werden soll

$tid : string

ID des Mandanten

Return values
bool
  • True, wenn die Aktualisierung erfolgreich war, sonst False

        
On this page

Search results