<?php
|
|
/**
|
|
* ObjectArray.test.php
|
|
* Test Base controller.
|
|
* @version 150629:1
|
|
* @author karminski <code.karminski@outlook.com>
|
|
*
|
|
*/
|
|
|
|
require(dirname(__FILE__).'/../protected/lib/base/ObjectArray.php');
|
|
|
|
|
|
class DefaultRequest extends ObjectArray{
|
|
|
|
}
|
|
|
|
$input = array(
|
|
'id' => 12,
|
|
'type' => 'a',
|
|
'callback' => 'json_callback_21453534534',
|
|
'src' => 'pc_452345',
|
|
);
|
|
|
|
$DefaultRequest = new DefaultRequest($input);
|
|
|
|
$DefaultRequest['tar'] = 'zxvf';
|
|
|
|
var_dump(json_encode($DefaultRequest));
|
|
|