Class for building pages

All methods are chainable, with the exception of the constructor, build_header(), build_footer(), and _headers() methods.

package miniMVC
subpackage System

 Methods

Allow calling of array methods on the object and dynamic methods

__call(string $name, array $params) : mixed
Inherited

inherited_from \miniMVC\MM::__call()
inherited_from \miniMVC\Output::__call()

Parameters

$name

string

$params

array

Returns

mixed

Set up the page class

__construct($controller) : void

Parameters

$controller

object

call the parent destructor

__destruct() : void

append()

append() 
Inherited

inherited_from ArrayObject::append()
inherited_from \miniMVC\MM::append()
inherited_from \miniMVC\Output::append()

Adds text to the output buffer

append_output(string $string) 
Inherited

inherited_from \miniMVC\Output::append_output()

Parameters

$string

string

asort()

asort() 
Inherited

inherited_from ArrayObject::asort()
inherited_from \miniMVC\MM::asort()
inherited_from \miniMVC\Output::asort()

Sets custom page header

build_header(bool $html5) : \miniMVC\Page

Parameters

$html5

bool

Returns

count()

count() 
Inherited

inherited_from ArrayObject::count()
inherited_from \miniMVC\MM::count()
inherited_from \miniMVC\Output::count()

exchangeArray()

exchangeArray() 
Inherited

inherited_from ArrayObject::exchangeArray()
inherited_from \miniMVC\MM::exchangeArray()
inherited_from \miniMVC\Output::exchangeArray()

Sends headers and then removes them

flush_headers() 
Inherited

inherited_from \miniMVC\Output::flush_headers()

getArrayCopy()

getArrayCopy() 
Inherited

inherited_from ArrayObject::getArrayCopy()
inherited_from \miniMVC\MM::getArrayCopy()
inherited_from \miniMVC\Output::getArrayCopy()

getFlags()

getFlags() 
Inherited

inherited_from ArrayObject::getFlags()
inherited_from \miniMVC\MM::getFlags()
inherited_from \miniMVC\Output::getFlags()

getIterator()

getIterator() 
Inherited

inherited_from ArrayObject::getIterator()
inherited_from \miniMVC\MM::getIterator()
inherited_from \miniMVC\Output::getIterator()

getIteratorClass()

getIteratorClass() 
Inherited

inherited_from ArrayObject::getIteratorClass()
inherited_from \miniMVC\MM::getIteratorClass()
inherited_from \miniMVC\Output::getIteratorClass()

ksort()

ksort() 
Inherited

inherited_from ArrayObject::ksort()
inherited_from \miniMVC\MM::ksort()
inherited_from \miniMVC\Output::ksort()

natcasesort()

natcasesort() 
Inherited

inherited_from ArrayObject::natcasesort()
inherited_from \miniMVC\MM::natcasesort()
inherited_from \miniMVC\Output::natcasesort()

natsort()

natsort() 
Inherited

inherited_from ArrayObject::natsort()
inherited_from \miniMVC\MM::natsort()
inherited_from \miniMVC\Output::natsort()

offsetExists()

offsetExists() 
Inherited

inherited_from ArrayObject::offsetExists()
inherited_from \miniMVC\MM::offsetExists()
inherited_from \miniMVC\Output::offsetExists()

offsetGet()

offsetGet() 
Inherited

inherited_from ArrayObject::offsetGet()
inherited_from \miniMVC\MM::offsetGet()
inherited_from \miniMVC\Output::offsetGet()

offsetSet()

offsetSet() 
Inherited

inherited_from ArrayObject::offsetSet()
inherited_from \miniMVC\MM::offsetSet()
inherited_from \miniMVC\Output::offsetSet()

offsetUnset()

offsetUnset() 
Inherited

inherited_from ArrayObject::offsetUnset()
inherited_from \miniMVC\MM::offsetUnset()
inherited_from \miniMVC\Output::offsetUnset()

Output String

output_string(string $string) 

Similar to render(), this is a shortcut to output a string in the body of the page.

Parameters

$string

string

Redirect 303

redirect_303(string $url) 

Shortcut function for 303 redirect

Parameters

$url

string

Render

render(string $view, array $data) 

Shortcut function for building a page

Parameters

$view

string

$data

array

serialize()

serialize() 
Inherited

inherited_from ArrayObject::serialize()
inherited_from \miniMVC\MM::serialize()
inherited_from \miniMVC\Output::serialize()

setFlags()

setFlags() 
Inherited

inherited_from ArrayObject::setFlags()
inherited_from \miniMVC\MM::setFlags()
inherited_from \miniMVC\Output::setFlags()

setIteratorClass()

setIteratorClass() 
Inherited

inherited_from ArrayObject::setIteratorClass()
inherited_from \miniMVC\MM::setIteratorClass()
inherited_from \miniMVC\Output::setIteratorClass()

Sets custom base href

set_base(string $href) : \miniMVC\Page

Parameters

$href

string

href

Returns

Sets custom body class

set_body_class(string $class) : \miniMVC\Page

Parameters

$class

string

Returns

Sets custom body id

set_body_id(string $id) : \miniMVC\Page

Parameters

$id

string

Returns

Sets a minified css group

set_css_group(string $group) : \miniMVC\Page

Parameters

$group

string

Returns

Sets custom css tags

set_css_tag(string $name, bool $domain, string $media) : \miniMVC\Page

Parameters

$name

string

$domain

bool

$media

string

Returns

Sets a minified javascript group for the page footer

set_foot_js_group(string $group, bool $debug) : \miniMVC\Page

Parameters

$group

string

$debug

bool

Returns

Sets minified javascript group in header

set_head_js_group(string $group, bool $debug) : \miniMVC\Page

Parameters

$group

string

$debug

bool

Returns

Sets a custom tag in the header

set_head_tag(string $tag) : \miniMVC\Page

Parameters

$tag

string

Returns

Sets a header for later output

set_header(string $key, string $val) 
Inherited

inherited_from \miniMVC\Output::set_header()

Parameters

$key

string

$val

string

Set Message

set_message(string $type, string $message, bool $return) : void

Adds a message to the page

Parameters

$type

string

$message

string

$return

bool

Set Meta

set_meta(array $meta) : \miniMVC\Page

Sets meta tags, with codeigniter native meta tag helper

Parameters

$meta

array

Returns

Sets the output buffer

set_output(string $string) 
Inherited

inherited_from \miniMVC\Output::set_output()

Parameters

$string

string

Sets html title string

set_title(string $title) : \miniMVC\Page

Parameters

$title

string

Returns

uasort()

uasort() 
Inherited

inherited_from ArrayObject::uasort()
inherited_from \miniMVC\MM::uasort()
inherited_from \miniMVC\Output::uasort()

uksort()

uksort() 
Inherited

inherited_from ArrayObject::uksort()
inherited_from \miniMVC\MM::uksort()
inherited_from \miniMVC\Output::uksort()

unserialize()

unserialize() 
Inherited

inherited_from ArrayObject::unserialize()
inherited_from \miniMVC\MM::unserialize()
inherited_from \miniMVC\Output::unserialize()

Sets server headers and doctype

_headers(bool $html5) : \miniMVC\Page

Also sets page mime type, based on if sent as html or xhtml, and what the target browser supports

Parameters

$html5

bool

Returns

Private helper function to generate meta tags

_meta(array $params) : string

Parameters

$params

array

Returns

string

Script Tag

script_tag(string $js, bool $domain) : string

Helper function for making script tags

Parameters

$js

string

$domain

bool

Returns

string

 Properties

 

Base tag

$base : string

 

Class(es) to apply to the main body tag

$body_class : string

 

Id to apply to the body tag

$body_id : string

 

Content for outputting

$buffer : string
Inherited

inherited_from \miniMVC\Output::$$buffer
 

CSS tags for the page

$css : string

 

JS tags for the footer

$foot_js : string

 

JS tags for the header

$head_js : string

 

Additional header tags

$head_tags : string

 

HTTP headers to send

$headers : array
Inherited

inherited_from \miniMVC\Output::$$headers
 

Meta tags

$meta : string

 

Page title

$title : string