Default session class
Implementation must derive this class in order to store session specific data like data environment, current user's id, ...
public static | |
public static cmc\sess | # current( cmc\app $app, string $ClassName = __CLASS__ ) general function for using the session general function for using the session Parameters - $app
cmc\app
$app - $ClassName
string $ClassName Returns |
protected | # initialize( ) init done when the session is created or recovered the first time init done when the session is created or recovered the first time |
public string | # getViewPath( ) returns a view path from current request returns a view path from current request Returns string |
public string | # getViewPathLoc( ) returns a localized view path from current request returns a localized view path from current request Returns string |
public cmc\ui\view | # getRequestView( ) returns a view object from current request returns a view object from current request it can be retrieved in the session, application cache or re-instantiated Returns |
protected | # __construct( mixed $app ) |
public | |
public static | |
public static | |
public | |
public boolean | # dynFrameExist( string $cmcId ) checks a dynamic frame instance checks a dynamic frame instance Parameters Returns boolean |
public | # addNewDynFrame( string $cmcId, cmc\ui\frame $frame ) adds a new dynamic frame instance in the session adds a new dynamic frame instance in the session Parameters |
public null|cmc\ui\dynframe | # getDynFrame( string $cmcId ) retrieves a dynamic frame instance by Id retrieves a dynamic frame instance by Id Parameters Returns |
public null|cmc\ui\dynframe | # getDynFrameByName( string $name ) retrieves a dynamic frame instance by name retrieves a dynamic frame instance by name Parameters Returns |
public | |
public | # getHistoryLocation( integer & $steps ) gets the url of the session navigation history gets the url of the session navigation history Parameters - $steps
integer $steps number of steps back |
public | # truncHistoryLocation( integer $steps ) updates the history if we perform a 'back' redirection updates the history if we perform a 'back' redirection Parameters |
public cmc\core\translation | # getTranslation( ) returns current translation object returns current translation object Returns |
public | # setTextData( array $locData ) defines some direct translation or text; can override framework internal messages defines some direct translation or text; can override framework internal messages Parameters |
public false|string | # translate( string $key ) translates a text or key Parameters Returns false|string |
public | # translateFmt( mixed $key ) |
public cmc\db\dataenv | # getDataEnv( ) linked data enviroment Returns |
public string|false | # getReqViewPath( ) retrives the view path (unlocalized) retrives the view path (unlocalized) Returns string|false |
public string|false | # getPathInfo( ) retrieves the request path (without REST part) retrieves the request path (without REST part) Returns string|false |
public string|false | # getParams( ) retrieves the request parameters retrieves the request parameters Returns string|false |
public string|false | # getParam( cmc\app $paramname ) retrieves a request parameter retrieves a request parameter Parameters Returns string|false |
public cmc\core\request | # getRequest( ) retrieves the request object retrieves the request object Returns |
public string | # getLangName( ) retrives current language name retrives current language name Returns string |
public | |
public cmc\app | # getApp( ) retrives the linked application object retrives the linked application object Returns |
public | # OnSerialize( ) called before serialize Implementation of |
public | # OnUnserialize( ) called after unserialize Implementation of |