All methods are chainable, with the exception of the constructor,
build_header(), build_footer(), and _headers() methods.
Methods
Allow calling of array methods on the object and
dynamic methods
__call(string $name, array $params) : mixed
Inherited
inherited_from |
\MM::__call() |
inherited_from |
\MM_Output::__call() |
Parameters
$name
string
$params
array
Returns
mixed
Set up the page class
__construct($controller) : void
PHP magic method called when ending the script
Used for outputing HTML
__destruct() : void
Inherited
inherited_from |
\MM_Output::__destruct() |
append()
append()
Inherited
inherited_from |
ArrayObject::append() |
inherited_from |
\MM::append() |
inherited_from |
\MM_Output::append() |
Adds text to the output buffer
append_output(string $string)
Inherited
inherited_from |
\MM_Output::append_output() |
Parameters
$string
string
asort()
asort()
Inherited
inherited_from |
ArrayObject::asort() |
inherited_from |
\MM::asort() |
inherited_from |
\MM_Output::asort() |
count()
count()
Inherited
inherited_from |
ArrayObject::count() |
inherited_from |
\MM::count() |
inherited_from |
\MM_Output::count() |
exchangeArray()
exchangeArray()
Inherited
inherited_from |
ArrayObject::exchangeArray() |
inherited_from |
\MM::exchangeArray() |
inherited_from |
\MM_Output::exchangeArray() |
getArrayCopy()
getArrayCopy()
Inherited
inherited_from |
ArrayObject::getArrayCopy() |
inherited_from |
\MM::getArrayCopy() |
inherited_from |
\MM_Output::getArrayCopy() |
getFlags()
getFlags()
Inherited
inherited_from |
ArrayObject::getFlags() |
inherited_from |
\MM::getFlags() |
inherited_from |
\MM_Output::getFlags() |
getIterator()
getIterator()
Inherited
inherited_from |
ArrayObject::getIterator() |
inherited_from |
\MM::getIterator() |
inherited_from |
\MM_Output::getIterator() |
getIteratorClass()
getIteratorClass()
Inherited
inherited_from |
ArrayObject::getIteratorClass() |
inherited_from |
\MM::getIteratorClass() |
inherited_from |
\MM_Output::getIteratorClass() |
ksort()
ksort()
Inherited
inherited_from |
ArrayObject::ksort() |
inherited_from |
\MM::ksort() |
inherited_from |
\MM_Output::ksort() |
natcasesort()
natcasesort()
Inherited
inherited_from |
ArrayObject::natcasesort() |
inherited_from |
\MM::natcasesort() |
inherited_from |
\MM_Output::natcasesort() |
natsort()
natsort()
Inherited
inherited_from |
ArrayObject::natsort() |
inherited_from |
\MM::natsort() |
inherited_from |
\MM_Output::natsort() |
offsetExists()
offsetExists()
Inherited
inherited_from |
ArrayObject::offsetExists() |
inherited_from |
\MM::offsetExists() |
inherited_from |
\MM_Output::offsetExists() |
offsetGet()
offsetGet()
Inherited
inherited_from |
ArrayObject::offsetGet() |
inherited_from |
\MM::offsetGet() |
inherited_from |
\MM_Output::offsetGet() |
offsetSet()
offsetSet()
Inherited
inherited_from |
ArrayObject::offsetSet() |
inherited_from |
\MM::offsetSet() |
inherited_from |
\MM_Output::offsetSet() |
offsetUnset()
offsetUnset()
Inherited
inherited_from |
ArrayObject::offsetUnset() |
inherited_from |
\MM::offsetUnset() |
inherited_from |
\MM_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 |
\MM::serialize() |
inherited_from |
\MM_Output::serialize() |
setFlags()
setFlags()
Inherited
inherited_from |
ArrayObject::setFlags() |
inherited_from |
\MM::setFlags() |
inherited_from |
\MM_Output::setFlags() |
setIteratorClass()
setIteratorClass()
Inherited
inherited_from |
ArrayObject::setIteratorClass() |
inherited_from |
\MM::setIteratorClass() |
inherited_from |
\MM_Output::setIteratorClass() |
Sets custom base href
set_base(string $href) : \Page
Sets custom body class
set_body_class(string $class) : \Page
Parameters
$class
string
Returns
\Page
Sets custom body id
set_body_id(string $id) : \Page
Parameters
$id
string
Returns
\Page
Sets a minified css group
set_css_group(string $group) : \Page
Parameters
$group
string
Returns
\Page
Sets custom css tags
set_css_tag(string $name, bool $domain, string $media) : \Page
Parameters
$name
string
$domain
bool
$media
string
Returns
\Page
Sets minified javascript group in header
set_head_js_group(string $group, bool $debug) : \Page
Parameters
$group
string
$debug
bool
Returns
\Page
Sets a custom tag in the header
set_head_tag(string $tag) : \Page
Parameters
$tag
string
Returns
\Page
Set Message
set_message(string $type, string $message, bool $return) : void
Adds a message to the page
Parameters
$type
string
$message
string
$return
bool
Sets the output buffer
set_output(string $string)
Inherited
inherited_from |
\MM_Output::set_output() |
Parameters
$string
string
Sets html title string
set_title(string $title) : \Page
Parameters
$title
string
Returns
\Page
uasort()
uasort()
Inherited
inherited_from |
ArrayObject::uasort() |
inherited_from |
\MM::uasort() |
inherited_from |
\MM_Output::uasort() |
uksort()
uksort()
Inherited
inherited_from |
ArrayObject::uksort() |
inherited_from |
\MM::uksort() |
inherited_from |
\MM_Output::uksort() |
unserialize()
unserialize()
Inherited
inherited_from |
ArrayObject::unserialize() |
inherited_from |
\MM::unserialize() |
inherited_from |
\MM_Output::unserialize() |
Private helper function to generate link tags
_link_tag(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
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 |
\MM_Output::$$buffer |
CSS tags for the page
$css : string
JS tags for the header
$head_js : string
Page title
$title : string