libs/ips.php
/**
     * Checks if parent instance is active
     *
     * @return boolean true if yes, false if not
     */
Checks if parent instance is active
@return boolean true if yes, false if not
Checks if parent instance is active @return boolean true if yes false if not
private function IsParentInstanceActive()
    {
        $instance = IPS_GetInstance($this->InstanceID);
        if ($instance['ConnectionID'] > 0) {
            $parent = IPS_GetInstance($instance['ConnectionID']);
            if ($parent['InstanceStatus'] == IS_ACTIVE) {
                return true;
            }
        }
        return false;
    }
private function IsParentInstanceActive ( ) { $ instance = IPS_GetInstance ( $ this -> InstanceID ) ; if ( $ instance [ 'ConnectionID' ] > 0 ) { $ parent = IPS_GetInstance ( $ instance [ 'ConnectionID' ] ) ; if ( $ parent [ 'InstanceStatus' ] == IS_ACTIVE ) { return true ; } } return false ; }
Checks if parent instance is active
 @return boolean true if yes, false if not
Checks if parent instance is active @return boolean true if yes false if not