Public Member Functions | |
| __construct ($base=null) | |
| __start () | |
| activate ($base=null) | |
| check ($name) | |
| error () | |
| flash ($key= 'flash') | |
| id () | |
| read ($name=null) | |
| valid () | |
| write () | |
Public Attributes | |
| $__active = true | |
| $helpers = null | |
Definition at line 40 of file session.php.
| SessionHelper::__construct | ( | $ | base = null |
) |
Class constructor
| string | $base |
Definition at line 58 of file session.php.
References __construct(), and Configure::read().
| SessionHelper::__start | ( | ) |
Determine if Session has been started and attempt to start it if not
Definition at line 195 of file session.php.
References start(), and started().
Referenced by check(), error(), flash(), read(), and valid().
| SessionHelper::activate | ( | $ | base = null |
) |
Turn sessions on if 'Session.start' is set to false in core.php
| string | $base |
Definition at line 70 of file session.php.
| SessionHelper::check | ( | $ | name | ) |
Used to check is a session key has been set
In your view: $session->check('Controller.sessKey');
| string | $name |
Definition at line 99 of file session.php.
| SessionHelper::error | ( | ) |
Returns last error encountered in a session
In your view: $session->error();
Definition at line 113 of file session.php.
| SessionHelper::flash | ( | $ | key = 'flash' |
) |
Used to render the message set in Controller::Session::setFlash()
In your view: $session->flash('somekey'); Will default to flash if no param is passed
| string | $key The [Message.]key you are rendering in the view. |
Definition at line 129 of file session.php.
References $out, __start(), check(), del(), ClassRegistry::getObject(), params(), and read().
| SessionHelper::id | ( | ) |
Session id
Definition at line 184 of file session.php.
References id().
| SessionHelper::read | ( | $ | name = null |
) |
Used to read a session values set in a controller for a key or return values for all keys.
In your view: $session->read('Controller.sessKey'); Calling the method without a param will return all session vars
| string | $name the name of the session key you want to read |
Definition at line 84 of file session.php.
| SessionHelper::valid | ( | ) |
Used to check is a session is valid in a view
Definition at line 163 of file session.php.
| SessionHelper::write | ( | ) |
Override CakeSession::write(). This method should not be used in a view
Definition at line 175 of file session.php.
| SessionHelper::$__active = true |
Definition at line 52 of file session.php.
| SessionHelper::$helpers = null |
Definition at line 46 of file session.php.
1.4.7