VIEW_LIST
VIEW_LIST
setObjectRender(\WebserviceOutputInterface $obj_render) : $this
Set the render object for set the output format.
Set the Content-type for the http header.
\WebserviceOutputInterface | $obj_render |
if the object render is not an instance of WebserviceOutputInterface
getObjectRender() : \WebserviceOutputInterface
getter
getHeaderParams(null|string $key = null) : array|string
null|string | $key | if null get all header params otherwise the params specified by the key |
if the key is corrupted (use Validate::isCleanHtml method)
if the asked key does'nt exists.
getContent(array $objects, null|string $schema_to_display = null, string|array $fields_to_display = 'minimum', integer $depth, integer $type_of_view = self::VIEW_LIST, $override = true) : string
Method is used for each content type Different content types are : - list of entities, - tree diagram of entity details (full or minimum), - schema (synopsis & blank),
array | $objects | each object created by entity asked @see WebserviceOutputBuilder::executeEntityGetAndHead |
null|string | $schema_to_display | if null display the entities list or entity details. |
string|array | $fields_to_display | the fields allow for the output |
integer | $depth | depth for the tree diagram output. |
integer | $type_of_view | use the 2 constants WebserviceOutputBuilder::VIEW_LIST WebserviceOutputBuilder::VIEW_DETAILS |
$override |
in the output format specified by WebserviceOutputBuilder::objectRender
renderField(\ObjectModel $object, array $ws_params, string $field_name, array $field, integer $depth) : string
Build a field and use recursivity depend on the depth parameter.
\ObjectModel | $object | create by the entity |
array | $ws_params | webserviceParams from the entity |
string | $field_name | |
array | $field | |
integer | $depth |