Constructor
Redefined in descendants as:
void add_exports(
$exports
)
|
|
Adds exports. This is bulk version of export()
Parameters:
API Tags:
void add_transit_var(
$var_name, [
$var_value = NULL]
)
|
|
Parameters:
API Tags:
void capture_transit_vars(
)
|
|
API Tags:
void create_redirect_composer(
$target_location, [
$param_pairs = array()]
)
|
|
Parameters:
|
|
$target_location: |
|
|
|
$param_pairs: |
|
API Tags:
void export(
string
$key, string
$value
)
|
|
Adds value key-value pair exports
Parameters:
|
string |
$key: |
|
|
string |
$value: |
|
API Tags:
void get_transit_var(
$var_name, [
$forgiving = false]
)
|
|
Parameters:
API Tags:
Returns current web site configuration object.
API Tags:
| Return: | Current $WSC |
| Access: | public |
Returns reference to context
API Tags:
TPLE_Exports get__exports(
)
|
|
Return exports object
API Tags:
Place for user code for initialization.
Must throw exception (TE_Page_Failed_To_Init) if init fails. On failure run() method will not be executed. Put in init() all code that:
- checks for availability of resources
- it is not essential for concrete page functionality
Init method is useful for base page classes - if you have some functionality that is common for all (most) pages in your site - put it here and then inherit that base page class. Don't forget to call parent::init() if you overload it
API Tags:
void init_transit_vars(
)
|
|
Here is the place to add your transit vars
This method will be called by __constructor automatically. It is provided for convenience (i.e. otherwise you have to add transit vars in __constructor which means that you have to overload it, find the correct declaration, etc.)
Example:
<?php
}
?>
API Tags:
void prepare_transit_vars(
)
|
|
API Tags:
void remove_transit_var(
$var_name
)
|
|
Parameters:
API Tags:
Put your main page functionalty in run() (if not otherwise specified like for example for WED pages)
Must return instance of Web_Page_View
API Tags:
Sets $_config
Parameters:
API Tags:
| Internal: | |
| Access: | private |
Sets context
Parameters:
API Tags:
| Internal: | |
| Access: | private |
void set_transit_vars_as_output_rewrite_vars(
)
|
|
API Tags:
void set_transit_var_value(
$var_name,
$var_value
)
|
|
Parameters:
API Tags:
Initializing the page
Parameters:
API Tags:
Redefined in descendants as:
Runs the controller
API Tags: