Zum Hauptinhalt springen

Zymba Documentation

ZeyOS.Object

object @ZeyOS.Object(@Base) {
construct(string $entity, ?int $id) {}
clear(): $this {}
delete(?function $callback): bool {}
deleteRaw(): bool {}
exists(): bool {}
getEntity(): string {}
getField(string $name): ?string {}
getFieldArray(string $name): ?object {}
getFieldJSON(string $name): ?object {}
getID(): int {}
hasField(string $name): bool {}
listFieldNames(): object {}
listFields(): object {}
load(): $this {}
readBinFile(string $name): string {}
removeFields(object $names): $this {}
save(?function $callback, object $extdata, object $tags): $this {}
saveRaw(): $this {}
selectExtData(): object {}
selectTags(): object {}
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, string $prefix): $this {}
writeBinFile(string $name, string $data): $this {}
}

Prototype

Base

Methods

$this.construct(string $entity, ?int $id): void
Parameters
NameTypeValueDefault
entitystring""
id?intnew
$this.clear(): this
Returns
TypeValue
$this
$this.delete(?function $callback): bool
Parameters
NameTypeValueDefault
callback?functionno callback
Returns
TypeValue
bool
$this.deleteRaw(): bool
Returns
TypeValue
bool
$this.exists(): bool
Returns
TypeValue
bool
$this.getEntity(): string
Returns
TypeValue
string
$this.getField(string $name): ?string
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
?string
$this.getFieldArray(string $name): ?object
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
?object
$this.getFieldJSON(string $name): ?object
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
?object
$this.getID(): int
Returns
TypeValue
int
null
$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.load(): this
Returns
TypeValue
$this
$this.readBinFile(string $name): string
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
string
$this.removeFields(object $names): this
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
$this
$this.save(?function $callback, object $extdata, object $tags): this
Parameters
NameTypeValueDefault
callback?functionno callback
extdataobject[name: value, ...][]
tagsobject[name, ...][]
Returns
TypeValue
$this
$this.saveRaw(): this
Returns
TypeValue
$this
$this.selectExtData(): @ZeyOS.ExtData
Returns
TypeValue
@ZeyOS.ExtData
null
$this.selectTags(): @ZeyOS.Tags
Returns
TypeValue
@ZeyOS.Tags
null
$this.setField(string $name, ?string $value): this
Parameters
NameTypeValueDefault
namestring""
value?stringnull
Returns
TypeValue
$this
$this.setFieldArray(string $name, ?object $array): this
Parameters
NameTypeValueDefault
namestring""
array?object[value, ...]null
Returns
TypeValue
$this
$this.setFieldEncrypted(string $name, ?string $value): this
Parameters
NameTypeValueDefault
namestring""
value?stringnull
Returns
TypeValue
$this
$this.setFieldJSON(string $name, ?object $array): this
Parameters
NameTypeValueDefault
namestring""
array?objectnull
Returns
TypeValue
$this
$this.setFields(object $fields, string $prefix): this
Parameters
NameTypeValueDefault
fieldsobject[name: value, ...][]
prefixstring""
Returns
TypeValue
$this
$this.writeBinFile(string $name, string $data): this
Parameters
NameTypeValueDefault
namestring""
datastring""
Returns
TypeValue
$this