Revision 7732,
461 bytes
checked in by pereira.jair, 12 years ago
(diff) |
Ticket #3267 - Re-implementação do Recurso para utilizar a nova Agenda do Expresso.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[7342] | 1 | <?php |
---|
| 2 | |
---|
| 3 | class ExpressoVersionResource extends ExpressoAdapter { |
---|
[7732] | 4 | |
---|
| 5 | public function get ($request) { |
---|
| 6 | return $this->post($request); |
---|
| 7 | } |
---|
| 8 | |
---|
[7342] | 9 | public function post($request){ |
---|
| 10 | // to Receive POST Params (use $this->params) |
---|
| 11 | parent::post($request); |
---|
| 12 | |
---|
| 13 | $result = array('expressoVersion' => $this->getExpressoVersion(), |
---|
| 14 | 'apiVersion' => '1.0'); |
---|
| 15 | $this->setResult($result); |
---|
| 16 | |
---|
| 17 | //to Send Response (JSON RPC format) |
---|
| 18 | return $this->getResponse(); |
---|
| 19 | } |
---|
| 20 | |
---|
[7732] | 21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.