Zymba Documentation
ZeyOS.Object
Text
object @ZeyOS.Object(@Base) {
construct(string $entity, ?int $id) {}
addTags(object $names): $this {}
canDelete(): bool {}
clear(): $this {}
delete(): bool {}
erase(?function $callback): bool {}
eraseRaw(): bool {}
exists(): bool {}
getEntity(): string {}
getField(string $name): ?string {}
getFieldArray(string $name): ?object {}
getFieldJSON(string $name): ?object {}
getID(): int {}
hasAccess(bool $writable): bool {}
hasField(string $name): bool {}
listExtData(): object {}
listFieldNames(): object {}
listFields(): object {}
listTags(): object {}
readBinFile(string $name): string {}
reload(): $this {}
removeFields(object $names): $this {}
removeTags(object $names): $this {}
resetTags(object $names): $this {}
save(?function $callback, object $extdata, object $tags): $this {}
saveRaw(): $this {}
selectExtData(): object {}
selectTags(): object {}
setExtData(object $fields): $this {}
setField(string $name, ?string $value): $this {}
setFieldArray(string $name, ?object $array): $this {}
setFieldEncrypted(string $name, ?string $value): $this {}
setFieldJSON(string $name, ?object $array): $this {}
setFields(object $fields): $this {}
writeBinFile(string $name, string $data): $this {}
}
Prototype
Methods
CODE
$this.construct(string $entity, ?int $id): void
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| entity | string | "" | |
| id | ?int | new |