WebLayout
extends Layout
in package
Layout used for the seek_quarry Website including pages such as search landing page and settings page
Tags
Table of Contents
- $view : object
- The view that is to be drawn on this layout
- __construct() : mixed
- The constructor sets the view that will be drawn inside the Layout.
- render() : mixed
- Responsible for drawing the header of the document containing Yioop! title and including basic.js. It calls the renderView method of the View that lives on the layout. If the QUERY_STATISTIC config setting is set, it output statistics about each query run on the database.
Properties
$view
The view that is to be drawn on this layout
public
object
$view
Methods
__construct()
The constructor sets the view that will be drawn inside the Layout.
public
__construct(object $v) : mixed
Parameters
- $v : object
-
the View object that uses this layout
Return values
mixed —render()
Responsible for drawing the header of the document containing Yioop! title and including basic.js. It calls the renderView method of the View that lives on the layout. If the QUERY_STATISTIC config setting is set, it output statistics about each query run on the database.
public
render(array<string|int, mixed> $data) : mixed
Finally, it draws the footer of the document.
Parameters
- $data : array<string|int, mixed>
-
an array of data set up by the controller to be be used in drawing the WebLayout and its View.