/**
  * Processes the transaction
  */
 public function ProcessTransaction()
 {
     $result = $this->post->Send();
     if ($result == null) {
         throw new TradeException();
     }
 }
 /**
  * Processes the transaction.
  *
  * @return bool
  */
 public function ProcessTransaction()
 {
     $result = $this->post->Send();
     if ($result == null) {
         throw new UserException("Result is unidentified");
     }
     if (preg_match("/<td>An Error Has Occurred!<\\/td>/", $result)) {
         throw new UserException("User is not logged in");
     }
     return true;
 }
 /**
  * Gets that player
  *
  * @param $output
  *
  * @return array|null
  */
 private function FindPlayer($output = FORMAT_PRETTY)
 {
     if ($this->post == null) {
         throw new UserException("Result is unidentified");
     }
     $result = $this->post->Send();
     if ($result == null) {
         throw new UserException("Result is unidentified");
     }
     $array = KeyConverter::Convert($result);
     if ($output == FORMAT_PRETTY) {
         //return $this->FormatResult( $array );
     }
     return $array;
 }
 /**
  * Sends the post request and returns the trades
  *
  * @param $output
  *
  * @return array|null
  */
 private function SearchTrades($output = FORMAT_PRETTY)
 {
     if ($this->post == null) {
         throw new TradeException("Result is unidentified");
     }
     $result = $this->post->Send();
     if ($result == null) {
         throw new TradeException("Result is unidentified");
     }
     $array = KeyConverter::Convert($result);
     if ($output == FORMAT_PRETTY) {
         return $this->FormatResult($array);
     }
     return $array;
 }