Abstract controller for all concrete mod_rewrite controller implementations.

author Murat Purc
package plugin
subpackage Mod Rewrite

 Methods

Constructor, sets some properties by assigning global variables to them.

__construct() 

Property getter.

getProperty(string $key, mixed $default) : mixed

Parameters

$key

string

$default

mixed

Returns

mixed

Template getter.

getTemplate() : string

Returns

string

View property getter.

getView() : object

Returns

object

Initializer method, could be overwritten by childs.

init() 

This method will be invoked in constructor of ModRewrite_ControllerAbstract.

Renders template by replacing all view variables in template.

render(string $template) : string

Parameters

$template

string

Either full path and name of template file or a template string. If not passed, previous set template will be used.

Exceptions

\cException if no template is set

Returns

string

Property setter.

setProperty(string $key, mixed $value) 

Parameters

$key

string

$value

mixed

Template setter.

setTemplate(string $sTemplate) 

Parameters

$sTemplate

string

Either full path and name of template file or a template string.

View property setter.

setView(object $oView) 

Parameters

$oView

object

Returns parameter from request, the order is: - Return from $_GET, if found - Return from $_POST, if found

_getParam(string $key, mixed $default) : mixed

Parameters

$key

string

$default

mixed

The default value

Returns

mixed

Returns rendered notification markup by using global $notification variable.

_notifyBox(string $type, string $msg) : string

Parameters

$type

string

One of cGuiNotification::LEVEL_* constants

$msg

string

The message to display

Returns

string

 Properties

 

$_action : string
 

$_area : int | string
 

$_cfg : array
 

$_client : int
 

$_contenido : string
 

$_debug : bool
 

$_frame : int
 

$_oView : \stdClass
 

$_properties : array
 

$_template : string