What can we improve?

Documentation

(Edit)

HasActiveParent

Requires: IP-Symcon >= 5.1

boolean HasActiveParent ()

Returns

TRUE, if all physical parent instances are active, otherwise FALSE

Description

This function checks whether all physical parent instances are active. If at least one instance in the chain is not active, the function returns FALSE. If all instances are active, the function returns TRUE.

If there is no parent, the function also returns FALSE.

Example

// Abort with an error message if the splitter or I/O are not ready
if (!$this->HasActiveParent()) {
  echo "error: Parent instances are not active ";
  return;
}
 
// ...
Deutsche Webseite verfügbar
Go to cart
Any questions?