Zum Hauptinhalt springen

Zymba Documentation

ZeyOS.Tags

object @ZeyOS.Tags(@Base) {
construct(string $entity, int $id) {}
addTags(object $names): $this {}
clear(): $this {}
countTags(): int {}
getEntity(): string {}
getID(): int {}
hasAllTags(object $names): bool {}
hasAnyTags(object $names): bool {}
hasTag(string $name): bool {}
listTags(): object {}
removeTags(object $names): $this {}
resetTags(object $names): $this {}
}

Prototype

Base

Methods

$this.construct(string $entity, int $id): void
Parameters
NameTypeValueDefault
entitystring""
idint0
$this.addTags(object $names): this
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
$this
$this.clear(): this
Returns
TypeValue
$this
$this.countTags(): int
Returns
TypeValue
int
$this.getEntity(): string
Returns
TypeValue
string
$this.getID(): int
Returns
TypeValue
int
$this.hasAllTags(object $names): bool
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
bool
$this.hasAnyTags(object $names): bool
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
bool
$this.hasTag(string $name): bool
Parameters
NameTypeValueDefault
namestring""
Returns
TypeValue
bool
$this.listTags(): object
Returns
TypeValue
object[name, ...]
$this.removeTags(object $names): this
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
$this
$this.resetTags(object $names): this
Parameters
NameTypeValueDefault
namesobject[name, ...][]
Returns
TypeValue
$this