Web_Page __construct(
string
$page_name
)
|
|
Constructor
Parameters:
Adds view
Parameters:
API Tags:
Information Tags:
| Throws: | TE_Web_Page_View_Already_Exists |
string capture_page_url_name(
)
|
|
Captures current URL from context
API Tags:
| Internal: | |
| Access: | private |
void export(
string
$key, string
$value
)
|
|
Alias of $this->exports->add_pair()
Parameters:
|
string |
$key: |
|
|
string |
$value: |
|
API Tags:
Returns reference to context
API Tags:
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 |
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:
Returns context
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:
Setsd context
Parameters:
API Tags:
| Internal: | |
| Access: | private |
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:
Implementation of:
- I_Runnable_By_Site::_init()
- Web_Site will call _init prior to _run in order object to have the chance to initialize all required resources