Silla.IO API
  • Namespace
  • Class
  • Tree
  • Todo
  • Download

Namespaces

  • App
    • Controllers
  • CMS
    • Controllers
    • Helpers
    • Models
  • Configurations
    • CI
    • Development
    • Production
    • Staging
  • Core
    • Base
    • CLI
      • Cache
      • DB
    • Helpers
    • Modules
      • Cache
        • Adapters
        • Interfaces
      • Crypt
      • DB
        • Adapters
        • Decorators
          • Interfaces
        • Features
          • Paginator
        • Interfaces
      • Registry
      • Render
        • Adapters
        • Interfaces
      • Router
      • Session
        • Adapters
        • Interfaces
  • None
  • Tasks
    • DB

Classes

  • Session

Class Session

Session Class definition.

Final
Namespace: Core\Modules\Session
Located at modules/session/session.php

Methods summary

private
# __construct( string $adapter )

Session constructor.

Session constructor.

Parameters

$adapter
Session Adapter.

Throws

DomainException
Not supported Session adapter.
InvalidArgumentException
Not compatible Session adapter.
public
# set( string $name, mixed $value )

Setter method. Set a variable.

Setter method. Set a variable.

Parameters

$name
Variable name.
$value
Variable value.

Throws

InvalidArgumentException
Session varialbe name should be string.
public mixed
# get( string $name )

Getter method. Get a variable.

Getter method. Get a variable.

Parameters

$name
Variable name.

Returns

mixed

Throws

InvalidArgumentException
Session varialbe name should be string.
public boolean
# remove( string $name )

Delete variable.

Delete variable.

Parameters

$name
Variable name.

Returns

boolean

Throws

InvalidArgumentException
Session varialbe name should be string.
public string
# getKey( )

Generator of session key method.

Generator of session key method.

Returns

string
public
# regenerateKey( )

Regeneration of session keys method.

Regeneration of session keys method.

public boolean
# destroy( )

Destroys the whole session.

Destroys the whole session.

Returns

boolean
public
# __set( string $name, mixed $value )

Generic setter method.

Generic setter method.

Provides an easier way of setting session variables.

Parameters

$name
Variable name.
$value
Variable value.
public mixed
# __get( string $name )

Generic getter method.

Generic getter method.

Provides an easier way of retrieving session variables.

Parameters

$name
Variable name.

Returns

mixed
public boolean
# __isset( string $name )

Generic isset method.

Generic isset method.

Parameters

$name
Variable name.

Returns

boolean
public
# __unset( string $name )

Generic unset method.

Generic unset method.

Parameters

$name
Variable name.
public
# __clone( )

Cloning of Session is disallowed.

Cloning of Session is disallowed.

final public static Core\Modules\Session\Session
# getInstance( string $adapter )

Returns an instance of the Session object.

Returns an instance of the Session object.

Parameters

$adapter
Adapter name.

Returns

Core\Modules\Session\Session

Uses

Core\Registry()

Properties summary

private static Core\Modules\Session\Session $instance

Reference to the current instance of the Session object.

Reference to the current instance of the Session object.

# null
private Core\Modules\Session\Interfaces\Adapter $adapter

Reference to the current adapter of the Session object.

Reference to the current adapter of the Session object.

# null
Silla.IO API API documentation generated by ApiGen