1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
json_encode(array( 'metaData' => array(
'totalProperty' => 'total',
'root' => 'records',
'id' => 'id',
'fields' => array(
array('name' => 'id', 'type' => 'int'),
array('name' => 'idOpe', 'type' => 'int'),
array('name' => 'title', 'type' => 'string'),
array('name' => 'mail', 'type' => 'string'),
array('name' => 'open', 'type' => 'date'),
array('name' => 'close', 'type' => 'date'),
array('name' => 'solde', 'type' => 'float')
)
),
'records' => array(
array(
'id' => '1',
'idOpe' => '10',
'title' => 'f452sdf',
'mail' => '<a href="mailto:falalanne.extia@tf1.fr">example@example.fr</a>',
'open' => date('m d Y', time()),
'close' => date('m d Y', time() + 50000000),
'solde' => '10'
),
array(
'id' => '1',
'idOpe' => '11',
'title' => 'f452sdf',
'mail' => '<a href="mailto:falalanne.extia@tf1.fr">example2@example</a><a href="mailto:flalanne.extia@gmail.com">.com</a>',
'open' => date('m d Y', time()),
'close' => date('m d Y', time() + 50000000),
'solde' => '10'
)
),
'total' => 2)); |
Partager