Documentation

DataType extends BaseNode
in package

FinalYes

Table of Contents

Properties

$nodeClass  : string
$browseName  : string
$description  : string
$displayName  : string
$enumFields  : array<string|int, mixed>
$nodeId  : string

Methods

__construct()  : mixed
According to the OPC UA specification, DataType nodes describe the syntax of a Variable’s value. In addition to the base attributes, a DataType node has:
toArray()  : array<string|int, mixed>
Converts the node and its attributes to an associative array.

Properties

$browseName

protected string $browseName

$description

protected string $description = ''

$displayName

protected string $displayName

$enumFields

protected array<string|int, mixed> $enumFields = []

Methods

__construct()

According to the OPC UA specification, DataType nodes describe the syntax of a Variable’s value. In addition to the base attributes, a DataType node has:

public __construct(string $nodeId, string $browseName, string $displayName[, string $description = '' ][, array<string|int, mixed> $enumFields = [] ]) : mixed
  • isAbstract: A boolean indicating whether the DataType is abstract.
  • encodings: An array of encoding names (for example, "Default Binary" or "Default XML") that define how instances of the DataType can be serialized.
  • enumStrings (optional): For enumeration DataTypes, an array of human‐readable strings corresponding to each enumeration value.
Parameters
$nodeId : string
  • Unique identifier for the DataType node.
$browseName : string
  • The non-localized name used for browsing the node.
$displayName : string
  • The localized name displayed to users.
$description : string = ''
  • Optional description of the DataType.
$enumFields : array<string|int, mixed> = []
Tags
see
https://reference.opcfoundation.org/Core/Part3/v104/docs/5.8

OPC UA DataTypes CreateDataTypeDTO constructor.

For compatibility with the OPC UA Web Api we have left the following values out:

  • isAbstract
  • encoding

We are currently supporting the following:

toArray()

Converts the node and its attributes to an associative array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

The node represented as an associative array.


        
On this page

Search results