seek_quarry
[ class tree: seek_quarry ] [ index: seek_quarry ] [ all elements ]

Class: Layout

Source Location: /views/layouts/layout.php

Class Overview


Base layout Class. Layouts are used to render the headers and footer of the page on which a View lives


Author(s):

  • Chris Pollett

Variables

Methods


Child classes:

RssLayout
Layout used for the seek_quarry Website including pages such as search landing page and settings page
WebLayout
Layout used for the seek_quarry Website including pages such as search landing page and settings page

Class Details

[line 45]
Base layout Class. Layouts are used to render the headers and footer of the page on which a View lives



Tags:

author:  Chris Pollett


[ Top ]


Class Variables

$view =

[line 51]

The view that is to be drawn on this layout


Type:   object


[ Top ]



Class Methods


constructor __construct [line 58]

Layout __construct( $v)

The constructor sets the view that will be drawn inside the Layout.



Parameters:

   $v  

[ Top ]

method render [line 72]

void render( array $data)

The render method of Layout and its subclasses is responsible for drawing the header of the document, calling the renderView method of the View that lives on the layout and then drawing the footer of the document.



Overridden in child classes as:

RssLayout::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.
WebLayout::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.

Parameters:

array   $data   an array of data set up by the controller to be be used in drawing the Layout and its View.

[ Top ]


Documentation generated by phpDocumentor 1.4.3