Overview

Classes

  • Quform
  • Quform_Admin_InsertForm
  • Quform_Admin_Page
  • Quform_Admin_Page_Controller
  • Quform_Admin_Page_Dashboard
  • Quform_Admin_Page_Entries
  • Quform_Admin_Page_Entries_Edit
  • Quform_Admin_Page_Entries_List
  • Quform_Admin_Page_Entries_View
  • Quform_Admin_Page_Factory
  • Quform_Admin_Page_Forms_Add
  • Quform_Admin_Page_Forms_Edit
  • Quform_Admin_Page_Forms_List
  • Quform_Admin_Page_Help
  • Quform_Admin_Page_Preview
  • Quform_Admin_Page_Settings
  • Quform_Admin_Page_Tools
  • Quform_Admin_Page_Tools_ExportEntries
  • Quform_Admin_Page_Tools_ExportForm
  • Quform_Admin_Page_Tools_Home
  • Quform_Admin_Page_Tools_ImportForm
  • Quform_Admin_Page_Tools_Migrate
  • Quform_Admin_Page_Tools_Uninstall
  • Quform_Api
  • Quform_Block
  • Quform_Builder
  • Quform_Captcha
  • Quform_ClassLoader
  • Quform_Confirmation
  • Quform_Container
  • Quform_Dashboard_Widget
  • Quform_Dispatcher
  • Quform_Element
  • Quform_Element_Captcha
  • Quform_Element_Checkbox
  • Quform_Element_Column
  • Quform_Element_Container
  • Quform_Element_Container_Iterator
  • Quform_Element_Date
  • Quform_Element_Email
  • Quform_Element_Factory
  • Quform_Element_Field
  • Quform_Element_File
  • Quform_Element_Group
  • Quform_Element_Hidden
  • Quform_Element_Honeypot
  • Quform_Element_Html
  • Quform_Element_Multi
  • Quform_Element_Multiselect
  • Quform_Element_Name
  • Quform_Element_Page
  • Quform_Element_Password
  • Quform_Element_Radio
  • Quform_Element_Recaptcha
  • Quform_Element_Row
  • Quform_Element_Select
  • Quform_Element_Submit
  • Quform_Element_Text
  • Quform_Element_Textarea
  • Quform_Element_Time
  • Quform_Entry_Controller
  • Quform_Entry_Exporter
  • Quform_Entry_List_Settings
  • Quform_Entry_List_Table
  • Quform_Entry_Processor
  • Quform_Entry_UserSearcher
  • Quform_Filter_Abstract
  • Quform_Filter_Alpha
  • Quform_Filter_AlphaNumeric
  • Quform_Filter_Digits
  • Quform_Filter_Regex
  • Quform_Filter_Static
  • Quform_Filter_StripTags
  • Quform_Filter_Trim
  • Quform_Form
  • Quform_Form_Controller
  • Quform_Form_Exporter
  • Quform_Form_Factory
  • Quform_Form_Importer
  • Quform_Form_Iterator
  • Quform_Form_List_Settings
  • Quform_Form_List_Table
  • Quform_Form_Processor
  • Quform_License
  • Quform_Migrator
  • Quform_NonceRefresher
  • Quform_Notification
  • Quform_Notification_Resender
  • Quform_Options
  • Quform_Permissions
  • Quform_Repository
  • Quform_ScriptLoader
  • Quform_Session
  • Quform_Settings
  • Quform_Shortcode
  • Quform_Themes
  • Quform_TokenReplacer
  • Quform_Toolbar
  • Quform_Translations
  • Quform_Updater
  • Quform_Upgrader
  • Quform_Uploader
  • Quform_Validator_Abstract
  • Quform_Validator_Alpha
  • Quform_Validator_AlphaNumeric
  • Quform_Validator_Array
  • Quform_Validator_Captcha
  • Quform_Validator_Date
  • Quform_Validator_Digits
  • Quform_Validator_Duplicate
  • Quform_Validator_Email
  • Quform_Validator_FileUpload
  • Quform_Validator_GreaterThan
  • Quform_Validator_Honeypot
  • Quform_Validator_Identical
  • Quform_Validator_InArray
  • Quform_Validator_Length
  • Quform_Validator_LessThan
  • Quform_Validator_Recaptcha
  • Quform_Validator_Regex
  • Quform_Validator_Required
  • Quform_Validator_Static
  • Quform_Validator_Time
  • Quform_View
  • Quform_ViewFactory
  • Quform_Widget_Form
  • Quform_Widget_Popup

Interfaces

  • Quform_Attachable
  • Quform_Element_Editable
  • Quform_Filter_Interface
  • Quform_Validator_Interface
  • Overview
  • Class

Class Quform_Session

Copyright: Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/Session.php
Methods summary
protected string
# getTableName( )

Get the name of the session table with the WP prefix added

Get the name of the session table with the WP prefix added

Returns

string
protected string
# read( string $sessionId )

Get the serialized session data

Get the serialized session data

Parameters

$sessionId

Returns

string
protected
# write( string $sessionId, string $data )

Write the serialized session data

Write the serialized session data

Parameters

$sessionId
$data
protected
# destroy( string $sessionId )

Destroy the session with the given ID

Destroy the session with the given ID

Parameters

$sessionId
public
# gc( )

Garbage collection

Garbage collection

public
# setId( $id )

Set the session ID

Set the session ID

Parameters

$id
public string
# getId( )

Get the session ID

Get the session ID

Returns

string
public boolean
# isValidId( string $id )

Determine if this is a valid session ID.

Determine if this is a valid session ID.

Parameters

$id

Returns

boolean
protected string
# generateSessionId( )

Get a new, random session ID

Get a new, random session ID

Returns

string
public boolean
# start( )

Start the session

Start the session

Returns

boolean
public
# setSessionCookie( )

Set the session cookie

Set the session cookie

protected
# setSessionIdCookie( string $id )

Set the cookie to store the session ID

Set the cookie to store the session ID

Parameters

$id
public
# save( )

Save the session data, only if something has changed

Save the session data, only if something has changed

public
# regenerateToken( )

Regenerate the CSRF token value

Regenerate the CSRF token value

public string
# getToken( )

Get the CSRF token value

Get the CSRF token value

Returns

string
public boolean
# has( string $key )

Does the session data contain the given key?

Does the session data contain the given key?

Parameters

$key

Returns

boolean
public mixed
# get( string|null $key = null, mixed|null $default = null )

Get the session data with the given key

Get the session data with the given key

Parameters

$key
The key within the session data
$default
The default to return if the key does not exist

Returns

mixed
public
# set( string $key, mixed $value )

Set the session data with the given key

Set the session data with the given key

Parameters

$key
The key within the session data
$value
The value to set
public
# put( string|array $key, mixed|null $value = null )

Put a key / value pair or array of key / value pairs into the session

Put a key / value pair or array of key / value pairs into the session

Parameters

$key
$value
public
# forget( array|string $keys )

Remove the item(s) with the given key(s) from the session

Remove the item(s) with the given key(s) from the session

Parameters

$keys
protected
# scheduleGc( )

Schedule the garbage collection task

Schedule the garbage collection task

protected
# unscheduleGc( )

Unschedule the garbage collection task

Unschedule the garbage collection task

public
# activate( )

On plugin activation, schedule the garbage collection task

On plugin activation, schedule the garbage collection task

public
# deactivate( )

On plugin deactivation, unschedule the garbage collection task and cleanup

On plugin deactivation, unschedule the garbage collection task and cleanup

public
# uninstall( )

On plugin uninstall, unschedule the garbage collection task and remove the session table

On plugin uninstall, unschedule the garbage collection task and remove the session table

public array
# dropTableOnSiteDeletion( array $tables )

Drop the session database table when a site is deleted

Drop the session database table when a site is deleted

Parameters

$tables

Returns

array
Properties summary
protected string $name
#
protected string $table

The name of the session table

The name of the session table

#
protected string $id
#
protected array $data

The session data

The session data

# array()
protected integer $lifetime

The lifetime of the session in seconds

The lifetime of the session in seconds

#
protected boolean $started

Is the session started?

Is the session started?

# false
protected boolean $dirty

Has the session data been modified?

Has the session data been modified?

# false
API documentation generated by ApiGen