/** * Data Interface tp Parent (IO-TX) * Forward commands to IO Instance * @param String $Data * @return bool */ private function SendText($Data) { $res = false; $json = json_encode(array("DataID" => $this->module_interfaces['IO-TX'], "Buffer" => utf8_encode($Data))); if ($this->HasActiveParent()) { $this->debug(__FUNCTION__, $Data); $res = parent::SendDataToParent($json); } else { $this->debug(__FUNCTION__, 'No Parent'); } return $res; }
/** * Forward command to Splitter parent * @param $Data * @return bool */ public function SendDataToParent($Data) { $json = json_encode($Data); $this->debug(__FUNCTION__, $json); $res = parent::SendDataToParent($json); return $res; }