Web_Page __construct(
string
$page_name
)
|
|
Constructor
Parameters:
Redefinition of:
- Web_Ctrl::__construct()
- Constructor
Adds view
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Web_Page_View_Already_Exists |
Captures current URL from context
Parameters:
API Tags:
| Internal: | |
| Access: | private |
void create_redirect_view(
stirng
$target_location, [array
$param_pairs = array()]
)
|
|
Creates and returns Just_Headers_View with redirect (Location: ) header
If $target starts with "http" redirect will be with absolute URL, otherwise will be relative URL.
Please note that $params_pairs will be merged with existing (if any) transit variables.
Parameters:
|
stirng |
$target_location: |
target page to redirect to. Example: 'admin/index.php' |
|
array |
$param_pairs: |
key => value pairs of parameters that will be added to redirect. Example: array('confirmed' => 1) |
API Tags:
Information Tags:
void create_view(
[string
$name = 'default']
)
|
|
End classes must implement this function and it must be used always for creating views (i.e. no new Some_View())
Parameters:
API Tags:
Detects referer (if local) and exports it as _uni_back
Useful for creating back links that work the same way as browser window but with _tm variable set correctly (if available).
API Tags:
| Internal: | |
| Access: | private |
Returns page name
API Tags:
unknown get_page_url_name(
)
|
|
Returns page URL
API Tags:
Returns view
Parameters:
|
string |
$name: |
Name of the view |
API Tags:
Information Tags:
| Throws: | TE_Web_Page_View_Not_Exists |
void set_page_name(
string
$page_name
)
|
|
Sets page name
Parameters:
API Tags:
| Internal: | |
| Access: | private |
Information Tags:
| Throws: | Tangra_Exception |
| Throws: | Tangra_Exception |
Initializing the page
Parameters:
API Tags:
Redefinition of:
- Web_Ctrl::_init()
- Initializing the page