예제 #1
0
 /**
  * @param string $sLine
  * @return bool
  */
 public function WriteLine($sLine, $aHideValues = array())
 {
     $sLine = $sLine . "\r\n";
     $sLogLine = 0 < count($aHideValues) ? str_replace($aHideValues, '*******', $sLine) : $sLine;
     CApi::Log('NET > ' . api_Utils::ShowCRLF($sLogLine));
     if (!@fputs($this->rConnect, $sLine)) {
         CApi::Log('NET[Error] < Could not send user request', ELogLevel::Error);
         return false;
     }
     return true;
 }