예제 #1
1
파일: record.php 프로젝트: dapepe/tymio
 /**
  * Sends the form data to a remote URL
  *
  * @param string $strURL
  * @param array $arrArguements
  * @param string $strMethod
  * @return string Server response
  */
 public function send($strURL, $arrArguements = array(), $strMethod = 'POST', $user = null, $password = null)
 {
     if (sizeof($this->arrErrors) == 0) {
         $rest = new RESTclient();
         $this->strAnswer = $rest->request(array_merge($arrArguements, $this->arrData), $strURL, $strMethod, $user, $password);
     }
     return $this->strAnswer;
 }