Свойство | Type | Description | |
---|---|---|---|
$alreadyLoaded | boolean | Set to true if your onBefore* methods have already populated the item, items, limitstart etc properties used to render a JSON document. | |
$useHypermedia | boolean | When set to true we'll add hypermedia to the output, implementing the HAL specification (http://stateless.co/hal_specification.html) |
Свойство | Type | Description | |
---|---|---|---|
$item | |||
$limit | |||
$limitStart | |||
$total |
Méthode | Description | |
---|---|---|
display ( string $tpl = null ) : boolean | Overrides the default method to execute and display a template script. | |
onBeforeBrowse ( string $tpl = null ) | The event which runs when we are displaying the record list JSON view |
Méthode | Description | |
---|---|---|
_createDocumentWithHypermedia ( mixed | array $data, |
Creates a \FOF30\Hal\Document using the provided data | |
_getPrototypeURIForPagination ( ) : JUri | Returns a JUri instance with a prototype URI used as the base for the other URIs created by the JSON renderer | |
_removeURIBase ( string $uri ) : string | Convert an absolute URI to a relative one | |
onAfterSave ( string $tpl = null ) | The event which runs when we are displaying a single item JSON view | |
onBeforeRead ( string $tpl = null ) | The event which runs when we are displaying a single item JSON view | |
renderSingleItem ( string $tpl ) | Renders a single item JSON view |
protected _createDocumentWithHypermedia ( mixed | array $data, |
||
$data | mixed | array | The data to put in the document |
$model | The model of this view | |
Résultat | A HAL-enabled document |
protected _getPrototypeURIForPagination ( ) : JUri | ||
Résultat | JUri | The prototype JUri instance |
protected _removeURIBase ( string $uri ) : string | ||
$uri | string | The URI to convert |
Résultat | string | The relative URL |
protected onAfterSave ( string $tpl = null ) | ||
$tpl | string | The view sub-template to use |
public onBeforeBrowse ( string $tpl = null ) | ||
$tpl | string | The sub-template to use |
protected onBeforeRead ( string $tpl = null ) | ||
$tpl | string | The view sub-template to use |
protected renderSingleItem ( string $tpl ) | ||
$tpl | string | The view sub-template to use |
public bool $alreadyLoaded | ||
Résultat | boolean |
public bool $useHypermedia | ||
Résultat | boolean |