| @@ 46-57 (lines=12) @@ | ||
| 43 | /** |
|
| 44 | * @return bool|mixed |
|
| 45 | */ |
|
| 46 | public function save() |
|
| 47 | { |
|
| 48 | $this->composeFields(); |
|
| 49 | $this->request->performRequest($this->getLink(), $this->fields); |
|
| 50 | $this->response = $this->request->getResponse(); |
|
| 51 | ||
| 52 | if ($this->checkResponse()) { |
|
| 53 | return $this->getResponse(); |
|
| 54 | } |
|
| 55 | ||
| 56 | return false; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @return array|bool |
|
| @@ 56-67 (lines=12) @@ | ||
| 53 | /** |
|
| 54 | * @return bool|mixed |
|
| 55 | */ |
|
| 56 | public function save() |
|
| 57 | { |
|
| 58 | $this->composeFields(); |
|
| 59 | $this->request->performRequest($this->getLink(), $this->fields, 'application/x-www-form-urlencoded'); |
|
| 60 | $this->response = $this->request->getResponse(); |
|
| 61 | ||
| 62 | if ($this->checkResponse()) { |
|
| 63 | return $this->getResponse(); |
|
| 64 | } |
|
| 65 | ||
| 66 | return false; |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Fill fields for save request |
|