PHP Class NoahBuscher\Macaw\Macaw

Datei anzeigen Open project: codingbean/macaw Class Usage Examples

Public Properties

Property Type Description
$callbacks
$error_callback
$halts
$methods
$patterns
$routes

Public Methods

Method Description
__callstatic ( $method, $params ) Defines a route w/ callback and method
dispatch ( ) Runs the callback for the given request
error ( $callback ) Defines callback if route is not found
haltOnMatch ( $flag = true )

Method Details

__callstatic() public static method

Defines a route w/ callback and method
public static __callstatic ( $method, $params )

dispatch() public static method

Runs the callback for the given request
public static dispatch ( )

error() public static method

Defines callback if route is not found
public static error ( $callback )

haltOnMatch() public static method

public static haltOnMatch ( $flag = true )

Property Details

$callbacks public_oe static_oe property

public static $callbacks

$error_callback public_oe static_oe property

public static $error_callback

$halts public_oe static_oe property

public static $halts

$methods public_oe static_oe property

public static $methods

$patterns public_oe static_oe property

public static $patterns

$routes public_oe static_oe property

public static $routes