Overview

Namespaces

  • Evenement
  • None
  • PHP
  • Psr
    • Http
      • Message
  • Ratchet
    • Http
    • RFC6455
      • Handshake
      • Messaging
    • Server
    • Session
      • Serialize
      • Storage
        • Proxy
    • Wamp
    • WebSocket
  • React
    • EventLoop
      • Tick
      • Timer
    • Socket
    • Stream
  • Symfony
    • Component
      • HttpFoundation
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
      • Routing
        • Annotation
        • Exception
        • Generator
          • Dumper
        • Loader
          • DependencyInjection
        • Matcher
          • Dumper
        • Tests
          • Annotation
          • Fixtures
            • AnnotatedClasses
            • OtherAnnotatedClasses
          • Generator
            • Dumper
          • Loader
          • Matcher
            • Dumper

Classes

  • AttributeBag
  • NamespacedAttributeBag

Interfaces

  • AttributeBagInterface
  • Overview
  • Namespace
  • Class
  • Tree

Interface AttributeBagInterface

Attributes store.

Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface implements Symfony\Component\HttpFoundation\Session\SessionBagInterface

Direct known implementers

Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag

Indirect known implementers

Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag
Namespace: Symfony\Component\HttpFoundation\Session\Attribute
Author: Drak <drak@zikula.org>
Located at Attribute/AttributeBagInterface.php
Methods summary
public boolean
# has( string $name )

Checks if an attribute is defined.

Checks if an attribute is defined.

Parameters

$name
string
$name The attribute name

Returns

boolean
true if the attribute is defined, false otherwise
public mixed
# get( string $name, mixed $default = null )

Returns an attribute.

Returns an attribute.

Parameters

$name
string
$name The attribute name
$default
mixed
$default The default value if not found

Returns

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

Sets an attribute.

Sets an attribute.

Parameters

$name
string
$name
$value
mixed
$value
public array
# all( )

Returns attributes.

Returns attributes.

Returns

array
Attributes
public
# replace( array $attributes )

Sets attributes.

Sets attributes.

Parameters

$attributes
array
$attributes Attributes
public mixed
# remove( string $name )

Removes an attribute.

Removes an attribute.

Parameters

$name
string
$name

Returns

mixed
The removed value or null when it does not exist
Methods inherited from Symfony\Component\HttpFoundation\Session\SessionBagInterface
clear(), getName(), getStorageKey(), initialize()
Ratchet API documentation generated by ApiGen 2.8.0