tp TouchPointWP Utilities Session - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\Utilities\Session
This class wraps handlers for $_SESSION to make it more easily workable.
- Class name: Session
- Namespace: \tp\TouchPointWP\Utilities
Methods
startSession
bool tp\TouchPointWP\Utilities\Session::startSession(array options)
Start a session if one doesn't already exist.
- Visibility: public
- This method is static.
Arguments
- options array - Options passed directly to session_start, but only if the session isn't yet active.
Returns
- bool - True if a session has been started (with this call or previously)
sessionDestroy
mixed tp\TouchPointWP\Utilities\Session::sessionDestroy()
- Visibility: public
- This method is static.
Returns
- mixed
instance
\tp\TouchPointWP\Utilities\Session|null tp\TouchPointWP\Utilities\Session::instance()
- Visibility: public
- This method is static.
Returns
- \tp\TouchPointWP\Utilities\Session|null -
__get
mixed|null tp\TouchPointWP\Utilities\Session::__get(string what)
Standard getter, though returns null if unset or session isn't established.
- Visibility: public
Arguments
- what string
Returns
- mixed|null -
__set
void tp\TouchPointWP\Utilities\Session::__set(string what, mixed value)
Standard setter
- Visibility: public
Arguments
- what string* value mixed