Documentation

ListView extends View
in package

List View Inherits from View

Tags
author

Guillaume ARNOUX

Table of Contents

$access_level  : int
$container  : Container
$request  : Request
$list  : Liste|null
__construct()  : mixed
ListView constructor
encode()  : string
JSON Encoding method
render()  : string
Render the page
edit()  : string
Display list edition
requestAuth()  : string
Display the general auth page
show()  : string
Display the list
addItem()  : string
Display add an item to a list
createList()  : string
Display list creation page
showForItem()  : string
Display the list for an item
showForMenu()  : string
Display the list for public lists

Properties

$access_level

protected int $access_level

depends on the users permissions

$container

protected Container $container

$request

protected Request $request

Methods

__construct()

ListView constructor

public __construct(Container $c[, Liste|null $list = NULL ][, Request|null $request = NULL ]) : mixed
Parameters
$c : Container
$list : Liste|null = NULL
$request : Request|null = NULL
Return values
mixed

encode()

JSON Encoding method

public encode(int $access_level) : string
Parameters
$access_level : int

depends on the user's privileges

Return values
string

json encoded string of the object

render()

Render the page

public render(int $method[, int $access_level = Renderer::OTHER_MODE ]) : string
Parameters
$method : int

method to render

$access_level : int = Renderer::OTHER_MODE

access level of the user

Return values
string

html code

edit()

Display list edition

protected edit() : string
Return values
string

requestAuth()

Display the general auth page

protected requestAuth(Model $model) : string
Parameters
$model : Model

associated model (list, item or user)

Tags
throws
ForbiddenException
Return values
string

html code

show()

Display the list

protected show() : string
Return values
string

html code

addItem()

Display add an item to a list

private addItem() : string
Return values
string

createList()

Display list creation page

private createList() : string
Return values
string

showForItem()

Display the list for an item

private showForItem() : string
Return values
string

showForMenu()

Display the list for public lists

private showForMenu() : string
Return values
string

html code

Search results