Documentation

BaseNode
in package

AbstractYes

Table of Contents

Properties

$nodeClass  : string
$browseName  : string
$description  : string
$displayName  : string
$nodeId  : string

Methods

__construct()  : mixed
This abstract class represents the core structure of an OPC UA node as defined by the OPC UA Address Space Model (OPC UA Part 3, Section 5.2 - Base NodeClass). It encapsulates the attributes common to all nodes in an OPC UA address space.
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

Methods

__construct()

This abstract class represents the core structure of an OPC UA node as defined by the OPC UA Address Space Model (OPC UA Part 3, Section 5.2 - Base NodeClass). It encapsulates the attributes common to all nodes in an OPC UA address space.

public __construct(string $nodeId, string $nodeClass, string $browseName, string $displayName[, string $description = '' ]) : mixed

For the purposes of compatibility with the OPC UA Web API we have left out the following attributes:

  • UserWriteMask
  • WriteMask

Bellow are the current attributes that this current implementation supports.

Parameters
$nodeId : string
  • The unique identifier of the node.
$nodeClass : string
  • The OPC UA NodeClass (e.g., "Object", "Variable").
$browseName : string
  • The non-localized BrowseName for the node.
$displayName : string
  • The human-readable DisplayName for the node.
$description : string = ''
  • An optional description of the node. Defaults to an empty string.

toArray()

Converts the node and its attributes to an associative array.

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

The node represented as an associative array.


        
On this page

Search results