/**
  * Prepares the header.
  *
  * @return array
  */
 private function PrepareHeaders()
 {
     $details = $this->login->GetLoginInformation();
     $array = array('userID' => $this->userid);
     if ($array["userID"] == $details["userID"]) {
         return array_merge($array, $details);
     }
     $array["sc"] = $details["sc"];
     $array["password"] = $details["password"];
     return $array;
 }
 /**
  * Prepares our headers.
  *
  * @return array
  */
 private function PrepareHeaders()
 {
     $array = array();
     if ($this->action == BANK_WIDTHDRAW) {
         $array["withdraw"] = $this->amount;
     } else {
         $array["deposit"] = $this->amount;
     }
     $array = array_merge($array, $this->login->GetLoginInformation());
     return $array;
 }
Example #3
0
 /**
  * Prepares the headers for this transaction
  *
  * @return array
  */
 public function PrepareHeaders()
 {
     $array = array('pagetime' => time(), 'action' => 'newbuy', 'expected_itemprice' => $this->expected_price, 'creditsum' => '0', 'renameto' => '', 'expected_itemtype2' => '', 'expected_itemtype' => '', 'itemnum2' => 0, 'itemnum' => 0, 'price' => 0, 'buynum' => $this->itemid);
     return array_merge($array, $this->login->GetLoginInformation());
 }