Yioop_V9.5_Source_Code_Documentation

Element
in package

Base Element Class.

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

Tags
author

Chris Pollett

Table of Contents

$view  : object
The View on which this Element is drawn
__construct()  : mixed
constructor stores a reference to the view this element will reside on
formatHref()  : string
Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)
render()  : mixed
This method is responsible for actually drawing the view.

Properties

$view

The View on which this Element is drawn

public object $view

Methods

__construct()

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

public __construct([object $view = null ]) : mixed
Parameters
$view : object = null

object this element will reside on

Return values
mixed —

formatHref()

Used to slightly clean up hypertext links before drawing them (get rid of empty queries, avoid double encoding)

public formatHref(string $url) : string
Parameters
$url : string

to clean up

Return values
string —

cleaned url

render()

This method is responsible for actually drawing the view.

public abstract render( $data) : mixed

It should be implemented in subclasses.

Parameters
$data :

contains all external data from the controller that should be used in drawing the view

Return values
mixed —

        

Search results