Class Presenter
Presenter component represents a webpage instance. It converts Request to IResponse.
- Object
- Component implements IComponent
- ComponentContainer implements IComponentContainer
- PresenterComponent implements ISignalReceiver, IStatePersistent, ArrayAccess
- Control implements IRenderable
- Presenter implements IPresenter
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
array|null
|
|
public
boolean
|
#
isSignalReceiver( mixed $component, string $signal = NULL )
Checks if the signal receiver is the given one. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string|false
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
protected static
string
|
|
protected static
string
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
redirectUrl( string $url, integer $code = NULL )
Redirect to another URL and ends presenter execution. |
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
#
lastModified( string|integer|
Attempts to cache the sent entity by its last modification date. |
protected
string
|
#
handleInvalidLink(
Invalid link handler. Descendant can override this method to change default behaviour. |
public
string
|
|
public
|
|
public static
array
|
#
getPersistentComponents( )
Returns array of persistent components. This default implementation detects components by class-level annotation @persistent(cmp1, cmp2). |
protected
|
#
saveGlobalState( )
Permanently saves state information for all subcomponents to $this->globalState. |
public
boolean
|
|
public
|
|
public
|
|
public
SystemContainer|
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
createTemplate(),
flashMessage(),
getSnippetId(),
getTemplate(),
getWidget(),
invalidateControl(),
isControlInvalid(),
templatePrepareFilters(),
validateControl()
|
__clone(),
addComponent(),
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod()
|
setParent()
|
integer |
INVALID_LINK_SILENT
|
1 |
#
bad link handling |
integer |
INVALID_LINK_WARNING
|
2 |
#
bad link handling |
integer |
INVALID_LINK_EXCEPTION
|
3 |
#
bad link handling |
string |
SIGNAL_KEY
|
'do' |
|
string |
ACTION_KEY
|
'action' |
|
string |
FLASH_KEY
|
'_fid' |
|
string |
DEFAULT_ACTION
|
'default' |
NAME_SEPARATOR
|
public
integer
|
$invalidLinkMode |
|
|
public
array
|
$onShutdown |
|
#
of function(Presenter $sender, IResponse $response = NULL); Occurs when the presenter is shutting down |
public
boolean
|
$autoCanonicalize | TRUE |
#
automatically call canonicalize() |
public
boolean
|
$absoluteUrls | FALSE |
#
use absolute Urls or paths? |
$snippetMode
|
$params
|
public
string
|
$view | |
public
string
|
$layout | |
public read-only
|
$request | |
public read-only
array|null
|
$signal | |
public read-only
string
|
$action | |
public read-only
|
$payload | |
public read-only
boolean
|
$ajax | |
public read-only
|
$lastCreatedRequest | |
public read-only
|
$flashSession | |
public read-only
SystemContainer| |
$context | |
public read-only
|
$application | |
public read-only
|
$session | |
public read-only
|
$user |
$snippetId,
$template
|
$presenter,
$uniqueId
|
$components
|
$name,
$parent
|
$reflection
|