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

# ZeyOS.ExtData

## ZeyOS.ExtData

```
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


### `$this.construct()`


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

##### Parameters

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




### `$this.clear()`


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

##### Returns

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




### `$this.countFields()`


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

##### Returns

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




### `$this.getEntity()`


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

##### Returns

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




### `$this.getField()`


```code
$this.getField(string $name): ?string
```

##### Parameters

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

##### Returns

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




### `$this.getID()`


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

##### Returns

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




### `$this.hasField()`


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

##### Parameters

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

##### Returns

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




### `$this.listFieldNames()`


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

##### Returns

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




### `$this.listFields()`


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

##### Returns

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




### `$this.removeFields()`


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

##### Parameters

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

##### Returns

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




### `$this.setField()`


```code
$this.setField(string $name, ?string $value): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| name | `string`  |  | "" |
| value | `?string`  |  | null |

##### Returns

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




### `$this.setFields()`


```code
$this.setFields(object $fields): this
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| fields | `object`  | [name: value, ...] | [] |

##### Returns

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