src/EntryPoint/Abstracts/DELETE/AbstractDeleteEntryPoint.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
use SugarAPI\SDK\Request\DELETE; |
| 10 |
|
use SugarAPI\SDK\Response\JSON; |
| 11 |
|
|
| 12 |
|
abstract class AbstractDeleteEntryPoint extends AbstractEntryPoint { |
| 13 |
|
|
| 14 |
|
public function __construct($url, array $options = array()) { |
| 15 |
|
$this->setRequest(new DELETE()); |
| 16 |
|
parent::__construct($url, $options); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function execute($data = NULL) { |
| 20 |
|
parent::execute($data); |
| 21 |
|
$this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 22 |
|
return $this; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |
src/EntryPoint/Abstracts/GET/AbstractGetEntryPoint.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
use SugarAPI\SDK\Request\GET; |
| 10 |
|
use SugarAPI\SDK\Response\JSON; |
| 11 |
|
|
| 12 |
|
abstract class AbstractGetEntryPoint extends AbstractEntryPoint { |
| 13 |
|
|
| 14 |
|
public function __construct($url, array $options = array()) { |
| 15 |
|
$this->setRequest(new GET()); |
| 16 |
|
parent::__construct($url, $options); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function execute($data = null) { |
| 20 |
|
parent::execute($data); |
| 21 |
|
$this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 22 |
|
return $this; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |
src/EntryPoint/Abstracts/POST/AbstractPostEntryPoint.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
use SugarAPI\SDK\Request\POST; |
| 10 |
|
use SugarAPI\SDK\Response\JSON; |
| 11 |
|
|
| 12 |
|
abstract class AbstractPostEntryPoint extends AbstractEntryPoint { |
| 13 |
|
|
| 14 |
|
public function __construct($url, array $options = array()) { |
| 15 |
|
$this->setRequest(new POST()); |
| 16 |
|
parent::__construct($url, $options); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function execute($data = null) { |
| 20 |
|
parent::execute($data); |
| 21 |
|
$this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 22 |
|
return $this; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |
src/EntryPoint/Abstracts/POST/AbstractPostFileEntryPoint.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
use SugarAPI\SDK\Request\POSTFile; |
| 10 |
|
use SugarAPI\SDK\Response\JSON; |
| 11 |
|
|
| 12 |
|
abstract class AbstractPostFileEntryPoint extends AbstractEntryPoint { |
| 13 |
|
|
| 14 |
|
public function __construct($url, array $options = array()){ |
| 15 |
|
$this->setRequest(new POSTFile()); |
| 16 |
|
parent::__construct($url, $options); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function execute($data = null){ |
| 20 |
|
parent::execute($data); |
| 21 |
|
$this->setResponse(new JSON($this->Request->getResponse(), $this->Request->getCurlObject())); |
| 22 |
|
return $this; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |
src/EntryPoint/Abstracts/PUT/AbstractPutEntryPoint.php 1 location
|
@@ 12-25 (lines=14) @@
|
| 9 |
|
use SugarAPI\SDK\Request\PUT; |
| 10 |
|
use SugarAPI\SDK\Response\JSON; |
| 11 |
|
|
| 12 |
|
abstract class AbstractPutEntryPoint extends AbstractEntryPoint { |
| 13 |
|
|
| 14 |
|
public function __construct($url, array $options = array()) { |
| 15 |
|
$this->setRequest(new PUT()); |
| 16 |
|
parent::__construct($url, $options); |
| 17 |
|
} |
| 18 |
|
|
| 19 |
|
public function execute($data = null) { |
| 20 |
|
parent::execute($data); |
| 21 |
|
$this->setResponse(new JSON($this->Request->getResponse(),$this->Request->getCurlObject())); |
| 22 |
|
return $this; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
} |