DuoFernGateway/module.php
/**
     * Forwards data to parent and handles data
     *
     * @param string $JSONString
     * @return string result data
     */
Forwards data to parent and handles data
@param string $JSONString
@return string result data
Forwards data to parent and handles data @param string $JSONString @return string result data
public function ForwardData($JSONString)
    {
        $data = json_decode($JSONString);
        if (isset ($data->UpdateChildrenData) && $data->UpdateChildrenData == "true") {
            $this->UpdateChildrenData();
            return "UpdateChildrenData";
        }
        if ($this->GetStatus() == self::IS_INIT_PENDING) {
            $this->SendDebug("DISCARD TRANSMIT", $data, 1);
            return false;
        }
        $msg = $this->ConvertMsgToDisplay(utf8_decode($data->Buffer));
        $result = $this->SendMsg($msg);
        return $result;
    }
public function ForwardData ( $ JSONString ) { $ data = json_decode ( $ JSONString ) ; if ( isset ( $ data -> UpdateChildrenData ) && $ data -> UpdateChildrenData == " true " ) { $ this -> UpdateChildrenData ( ) ; return " UpdateChildrenData " ; } if ( $ this -> GetStatus ( ) == self :: IS_INIT_PENDING ) { $ this -> SendDebug ( " DISCARD TRANSMIT " , $ data , 1 ) ; return false ; } $ msg = $ this -> ConvertMsgToDisplay ( utf8_decode ( $ data -> Buffer ) ) ; $ result = $ this -> SendMsg ( $ msg ) ; return $ result ; }
Forwards data to parent and handles data
 @param string $JSONString
 @return string result data
Forwards data to parent and handles data @param string $JSONString @return string result data
// decode data // catch update children data request from child // discard when init is pending // get msg // send to parent io