Zum Hauptinhalt springen

Zymba Documentation

ZeyOS.ExtData

Text
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): $this {}
}

Prototype

Base

Methods

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