Skip to main content

Zymba Documentation

ZeyOS.ExtData

object @ZeyOS.ExtData(@Base) {
construct(string $entity, int $id) {}
clear(): $this {}
countFields(): int {}
getEntity(): string {}
getField(string $name): ?string {}
getID(): int {}
hasField(string $name): bool {}
listFieldNames(): object {}
listFields(): object {}
removeFields(object $names): $this {}
setField(string $name, ?string $value): $this {}
setFields(object $fields, string $prefix): $this {}
}

Prototype

Base

Methods

$this.construct(string $entity, int $id): void
Parameters
NameTypeValueDefault
entitystring""
idint0
$this.clear(): this
Returns
TypeValue
$this
$this.countFields(): int
Returns
TypeValue
int
$this.getEntity(): string
Returns
TypeValue
string
$this.getField(string $name): ?string
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
?string
$this.getID(): int
Returns
TypeValue
int
$this.hasField(string $name): bool
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
bool
$this.listFieldNames(): object
Returns
TypeValue
object[name, ...]
$this.listFields(): object
Returns
TypeValue
object[name: value, ...]
$this.removeFields(object $names): this
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
$this
$this.setField(string $name, ?string $value): this
Parameters
NameTypeValueDefault
namestring""
value?stringnull
Returns
TypeValue
$this
$this.setFields(object $fields, string $prefix): this
Parameters
NameTypeValueDefault
fieldsobject[name: value, ...][]
prefixstring""
Returns
TypeValue
$this