---
title: "ZeyOS.Tags"
description: "Base"
canonical_url: "https://www.zeyos.com/zymba/ref/zeyos/zeyos-tags"
markdown_url: "https://www.zeyos.com/ai/guide/zymba/ref/zeyos/zeyos-tags.md"
section: "zymba-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/zymbaref.json"
source_sha256: "05a361c6ddc32e74f4a6dc16fd06f218210ff1b7ce57f26ca1994bfffc407915"
---

# ZeyOS.Tags

## 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()`


```code
$this.construct(string $entity, int $id): void
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| entity | `string`  |  | "" |
| id | `int`  |  | 0 |




### `$this.addTags()`


```code
$this.addTags(object $names): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| names | `object`  | [name, ...] | [] |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.clear()`


```code
$this.clear(): this
```

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.countTags()`


```code
$this.countTags(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |




### `$this.getEntity()`


```code
$this.getEntity(): string
```

##### Returns

| Type | Value |
| --- | ---  |
| `string` |  |




### `$this.getID()`


```code
$this.getID(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |




### `$this.hasAllTags()`


```code
$this.hasAllTags(object $names): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| names | `object`  | [name, ...] | [] |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.hasAnyTags()`


```code
$this.hasAnyTags(object $names): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| names | `object`  | [name, ...] | [] |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.hasTag()`


```code
$this.hasTag(string $name): bool
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| name | `string`  |  | "" |

##### Returns

| Type | Value |
| --- | ---  |
| `bool` |  |




### `$this.listTags()`


```code
$this.listTags(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [name, ...] |




### `$this.removeTags()`


```code
$this.removeTags(object $names): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| names | `object`  | [name, ...] | [] |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |




### `$this.resetTags()`


```code
$this.resetTags(object $names): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| names | `object`  | [name, ...] | [] |

##### Returns

| Type | Value |
| --- | ---  |
| `$this` |  |
