AMI Web Framework API > Global > Global variables and functions
Global variables and functions
Methods
$AMINamespace($name, $descropt)
Creates a new namespace
Parameters
| Name | Type | Description | Default | Optional | Nullable |
|---|---|---|---|---|---|
| $name | string | the namespace name | |||
| $descr | Object.<string, *> | the namespace body | {} | ✓ |
$AMIInterface($name, $descropt)
Creates a new interface
Parameters
| Name | Type | Description | Default | Optional | Nullable |
|---|---|---|---|---|---|
| $name | string | the interface name | |||
| $descr | Object.<string, *> | the interface body | {} | ✓ |
$AMIClass($name, $descropt)
Creates a new class
Parameters
| Name | Type | Description | Default | Optional | Nullable |
|---|---|---|---|---|---|
| $name | string | the class name | |||
| $descr | Object.<string, *> | the class body | {} | ✓ |