ItemView
extends View
in package
Item View Inherits from View
Tags
Table of Contents
- $public_key : mixed
- $access_level : int
- $container : Container
- $request : Request
- $item : Item|null
- __construct() : mixed
- Constructor
- encode() : string
- JSON Encoding method
- render() : string
- Render the page
- edit() : string
- Display edit item page
- requestAuth() : string
- Display the general auth page
- reserve() : string
- Display item reservation form
- show() : string
- Display an item
- createPot() : string
- Display pot creation page
- participatePot() : string
- Display pot participation page
Properties
$public_key
public
mixed
$public_key
$access_level
protected
int
$access_level
depends on the users permissions
$container
protected
Container
$container
$request
protected
Request
$request
$item
private
Item|null
$item
Item associated with the view
Methods
__construct()
Constructor
public
__construct(Container $c[, Item|null $item = NULL ][, Request|null $request = null ]) : mixed
Parameters
- $c : Container
- $item : Item|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 edit item page
protected
edit() : string
Return values
string —html code
requestAuth()
Display the general auth page
protected
requestAuth(Model $model) : string
Parameters
- $model : Model
-
associated model (list, item or user)
Tags
Return values
string —html code
reserve()
Display item reservation form
protected
reserve() : string
Return values
string —html code
show()
Display an item
protected
show() : string
Tags
Return values
string —html code
createPot()
Display pot creation page
private
createPot() : string
Return values
string —participatePot()
Display pot participation page
private
participatePot() : string