pclib  2.3.2
Lightweight PHP framework
Public Member Functions | Data Fields
Action Class Reference

It encapsulates call of the controller's action: $controller->method($params). More...

Public Member Functions

 toString ()
 Convert route to string. More...
 
 fromString ($s)
 Create new Action object from the string. More...
 
 fromArray ($get)
 Create new Action object from $_GET array. More...
 

Data Fields

 $path
 Complete path such as 'products/edit', 'admin/products/edit'. More...
 
 $module
 Name of the module which owns controller. More...
 
 $controller
 Name of the controller. More...
 
 $method
 Controller's method name. More...
 
 $params
 Array of action parameters. More...
 

Detailed Description

It encapsulates call of the controller's action: $controller->method($params).

It Can be mapped to URL.

Member Function Documentation

fromArray (   $get)

Create new Action object from $_GET array.

Parameters
array$get
fromString (   $s)

Create new Action object from the string.

Parameters
string$sstring-route - example: 'orders/edit/id:1'
toString ( )

Convert route to string.

Returns
string $route

Field Documentation

$controller

Name of the controller.

$method

Controller's method name.

$module

Name of the module which owns controller.

$params

Array of action parameters.

$path

Complete path such as 'products/edit', 'admin/products/edit'.


The documentation for this class was generated from the following file: