This commit is contained in:
Romain Neutron
2013-05-29 21:21:02 +02:00
parent e36e7ad085
commit 38f38290c8
35 changed files with 1577 additions and 1592 deletions

View File

@@ -87,12 +87,12 @@ class caption_record implements caption_interface, cache_cacheableInterface
return $dumper->dump($this->toArray($includeBusinessFields), 3);
}
protected function serializeJSON($includeBusinessFields)
{
return \p4string::jsonencode($this->toArray($includeBusinessFields));
}
protected function toArray($includeBusinessFields)
{
$buffer = array();
@@ -112,6 +112,7 @@ class caption_record implements caption_interface, cache_cacheableInterface
$buffer[$field->get_name()] = ctype_digit($val) ? (int) $val : $val;
}
}
return array('record' => array('description' => $buffer));
}