| 1 | <?php |
||
| 13 | class JsonpEncoder extends JsonEncoder |
||
| 14 | { |
||
| 15 | /** the config key for the client side method to invoke */ |
||
| 16 | const KEY_CLIENT_METHOD = 'clientMethod'; |
||
| 17 | |||
| 18 | /** The method the client is invoking. */ |
||
| 19 | private $clientMethod; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor for the encoder. |
||
| 23 | * @param array $options (optional) The array of plugin options. |
||
| 24 | */ |
||
| 25 | 2 | public function __construct($options = array()) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param AbstractResponse $response The response to be encoded. |
||
| 36 | * @return Returns the response encoded in JSON. |
||
| 37 | */ |
||
| 38 | 1 | public function encode(AbstractResponse $response) |
|
| 46 | } |
||
| 47 |