Functions

PHP magic method to facilitate dynamic methods

__call(string $name, array $params) 

Parameters

$name

string

$params

array

PHP magic method to facilitate dynamically set static methods

__callStatic(string $name, array $args) 

Parameters

$name

string

$args

array

Magic function called when cloning an object

__clone() 

Constructor for creating the objects

__construct(array $members) : void

Parameters

$members

array

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

__invoke(array $params) : \self

Parameters

$params

array

Returns

\self

Prints out the contents of the object when used as a string

__toString() : string

Returns

string

Returns routable methods for the specified controller class

controller_methods(string $controller) : array

Parameters

$controller

string

Returns

array

Array_map callback to load a folder of classes at once

do_include(string $path) : void

Parameters

$path

string

Singleton getter function

get_instance() : \self

Returns

\self

Utility function to check if a variable is set, and is an array or object

is_like_array(mixed $var) : bool

Parameters

$var

mixed

Returns

bool

Function to search through the tree to find the necessary file

load_file(string $file, string $curr_path) : void

Parameters

$file

string

$curr_path

string

Custom error handler

on_error(int $severity, string $message, string $filepath, int $line) : \ErrorException

Parameters

$severity

int

$message

string

$filepath

string

$line

int

Returns

Custom exception handlererror_get_last

on_exception(\Exception $exception) : void

Parameters

$exception

\Exception

Calls the appropriate module/controller/function based on the url

route() : void

General 404 function

show_404() : void

Fatal Error page function

show_error(string $message, int $status_code) 

Parameters

$message

string

$status_code

int

Function to run on script shutdown -used to catch most fatal errors, and display them cleanly

shutdown() : void

Returns a full url from a url segment

site_url(string $segment) : string

Parameters

$segment

string

Returns

string

Prints out the contents of the object

to_string(\object/array $data, string $method) : string

Parameters

$data

\object/array

$method

string

Returns

string

Classes and interfaces

Welcome

Example Controller Class

« More »

Welcome_Model

Model template class

« More »

Constants

 

miniMVC bootstrap file

ENVIRONMENT 

package miniMVC
subpackage App
 

Main config file

SHOW_DEBUG_BACKTRACE 

package miniMVC
subpackage App

Classes and interfaces

DB

Extend PHP's PDO class to add some more functionality

« More »

MM

Class for standalone JSObject objects

« More »

MM_Controller

Base Controller Class

« More »

MM_Model

Base Model Class

« More »

MM_Output

Class for displaying output and setting http headers

« More »

MM_Page

Class for building pages

« More »

miniMVC

Base class for the framework

« More »