« Back to Product

Documentation

RequireParent

Require: IP-Symcon >= 4.0

 void RequireParent (string $ParentGUID) 

Parameters

ParentGUID

GUID

Returns

No Return

Description

If there is no connection, a parent instance with the GUID ParentGUID is created. Even if there was a compatible parent instance.

Warning

The normal case for the function is a splitter module, which requires its own I/O instance when it is created. Alternatively, ForceParent may also be suitable.

Warning

Normally, this function is called only in the Create() or ApplyChanges() method.

Example

public function Create() {

    // Never remove the line!
    parent::Create();

    // Connect to the newly created splitter if there is no connection yet
    $this->RequireParent("{46C969BF-3465-4E3E-B2A5-E404FB969735}");
        
}
Any questions?