\seekquarry\yioop\views\elementsAdminbarElement

Element used to draw the navigation bar on admin pages.

Elements are classes are used to render portions of a web page which might be common to several views like a view there is supposed to minimal php code in an element

Summary

Methods
Properties
Constants
__construct()
render()
renderSettingsToggle()
$view
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$view

$view : object

The View on which this Element is drawn

Type

object

Methods

__construct()

__construct(object  $view = null) 

constructor stores a reference to the view this element will reside on

Parameters

object $view

object this element will reside on

render()

render(array  $data) 

Used to draw the navigation bar on the admin portion of the yioop website

It should be implemented in subclasses.

Parameters

array $data

contains anti-CSRF token, as well as data on used to render what the current admin activity is

renderSettingsToggle()

renderSettingsToggle(boolean  $logged_in) 

Used to draw the hamburger menu symbol and associated link to the settings menu

Parameters

boolean $logged_in

whether or not the user is logged in. If so, the hamburger menu symbol draws the users name