Example Controller Class

package miniMVC
subpackage App

 Methods

PHP magic method to facilitate dynamic methods

__call(string $name, array $args) 
Inherited

inherited_from \miniMVC::__call()
inherited_from \MM_Controller::__call()

Parameters

$name

string

$args

array

Magic function called when cloning an object

__clone() 
Inherited

inherited_from \miniMVC::__clone()
inherited_from \MM_Controller::__clone()

Initialize the constructor

__construct() : void

PHP magic method that is called when an object is treated as a function

__invoke() 
Inherited

inherited_from \miniMVC::__invoke()
inherited_from \MM_Controller::__invoke()

append()

append() 
Inherited

inherited_from ArrayObject::append()
inherited_from \miniMVC::append()
inherited_from \MM_Controller::append()

asort()

asort() 
Inherited

inherited_from ArrayObject::asort()
inherited_from \miniMVC::asort()
inherited_from \MM_Controller::asort()

count()

count() 
Inherited

inherited_from ArrayObject::count()
inherited_from \miniMVC::count()
inherited_from \MM_Controller::count()

exchangeArray()

exchangeArray() 
Inherited

inherited_from ArrayObject::exchangeArray()
inherited_from \miniMVC::exchangeArray()
inherited_from \MM_Controller::exchangeArray()

getArrayCopy()

getArrayCopy() 
Inherited

inherited_from ArrayObject::getArrayCopy()
inherited_from \miniMVC::getArrayCopy()
inherited_from \MM_Controller::getArrayCopy()

getFlags()

getFlags() 
Inherited

inherited_from ArrayObject::getFlags()
inherited_from \miniMVC::getFlags()
inherited_from \MM_Controller::getFlags()

getIterator()

getIterator() 
Inherited

inherited_from ArrayObject::getIterator()
inherited_from \miniMVC::getIterator()
inherited_from \MM_Controller::getIterator()

getIteratorClass()

getIteratorClass() 
Inherited

inherited_from ArrayObject::getIteratorClass()
inherited_from \miniMVC::getIteratorClass()
inherited_from \MM_Controller::getIteratorClass()

Singleton getter function

get_instance() : \miniMVC
Inherited

inherited_from \miniMVC::get_instance()
inherited_from \MM_Controller::get_instance()

Returns

\miniMVCobject

Default route for the controller

index() : void

ksort()

ksort() 
Inherited

inherited_from ArrayObject::ksort()
inherited_from \miniMVC::ksort()
inherited_from \MM_Controller::ksort()

Method to load classes into the singleton

load_class(string $name, string $type) : void
Inherited

inherited_from \miniMVC::load_class()
inherited_from \MM_Controller::load_class()

Parameters

$name

string

$type

string

Convenience function to load config files

load_config(string $name) 
Inherited

inherited_from \miniMVC::load_config()
inherited_from \MM_Controller::load_config()

Parameters

$name

string

Function for loading a model into the current class

load_model(string $file, array $args) : void
Inherited

inherited_from \MM_Controller::load_model()

Parameters

$file

string

$args

array

Function for loading a view

load_view(string $file, array $data, bool $return) : mixed
Inherited

inherited_from \MM_Controller::load_view()

Parameters

$file

string

$data

array

$return

bool

Returns

mixed

natcasesort()

natcasesort() 
Inherited

inherited_from ArrayObject::natcasesort()
inherited_from \miniMVC::natcasesort()
inherited_from \MM_Controller::natcasesort()

natsort()

natsort() 
Inherited

inherited_from ArrayObject::natsort()
inherited_from \miniMVC::natsort()
inherited_from \MM_Controller::natsort()

offsetExists()

offsetExists() 
Inherited

inherited_from ArrayObject::offsetExists()
inherited_from \miniMVC::offsetExists()
inherited_from \MM_Controller::offsetExists()

offsetGet()

offsetGet() 
Inherited

inherited_from ArrayObject::offsetGet()
inherited_from \miniMVC::offsetGet()
inherited_from \MM_Controller::offsetGet()

offsetSet()

offsetSet() 
Inherited

inherited_from ArrayObject::offsetSet()
inherited_from \miniMVC::offsetSet()
inherited_from \MM_Controller::offsetSet()

offsetUnset()

offsetUnset() 
Inherited

inherited_from ArrayObject::offsetUnset()
inherited_from \miniMVC::offsetUnset()
inherited_from \MM_Controller::offsetUnset()

welcome/php route

php() : void

welcome/reflect route

reflect() : void

serialize()

serialize() 
Inherited

inherited_from ArrayObject::serialize()
inherited_from \miniMVC::serialize()
inherited_from \MM_Controller::serialize()

setFlags()

setFlags() 
Inherited

inherited_from ArrayObject::setFlags()
inherited_from \miniMVC::setFlags()
inherited_from \MM_Controller::setFlags()

setIteratorClass()

setIteratorClass() 
Inherited

inherited_from ArrayObject::setIteratorClass()
inherited_from \miniMVC::setIteratorClass()
inherited_from \MM_Controller::setIteratorClass()

uasort()

uasort() 
Inherited

inherited_from ArrayObject::uasort()
inherited_from \miniMVC::uasort()
inherited_from \MM_Controller::uasort()

uksort()

uksort() 
Inherited

inherited_from ArrayObject::uksort()
inherited_from \miniMVC::uksort()
inherited_from \MM_Controller::uksort()

Convenience function to remove an object from the singleton

unload(string $name) 
Inherited

inherited_from \miniMVC::unload()
inherited_from \MM_Controller::unload()

Parameters

$name

string

unserialize()

unserialize() 
Inherited

inherited_from ArrayObject::unserialize()
inherited_from \miniMVC::unserialize()
inherited_from \MM_Controller::unserialize()

 Properties

 

Instance of Output class

$output : \Output
Inherited

inherited_from \MM_Controller::$$output
 

Instance of Page class

$page : \Page
Inherited

inherited_from \MM_Controller::$$page
 

Singleton object

$instance : \miniMVC
Inherited

inherited_from \miniMVC::$$instance
inherited_from \MM_Controller::$$instance