interface AttributeBagInterface in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Session/Attribute/AttributeBagInterface.php \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface
Attributes store.
@author Drak <drak@zikula.org>
Hierarchy
- interface \Symfony\Component\HttpFoundation\Session\SessionBagInterface
- interface \Symfony\Component\HttpFoundation\Session\Attribute\AttributeBagInterface
Expanded class hierarchy of AttributeBagInterface
All classes that implement AttributeBagInterface
1 file declares its use of AttributeBagInterface
- Session.php in vendor/
symfony/ http-foundation/ Session/ Session.php
File
- vendor/
symfony/ http-foundation/ Session/ Attribute/ AttributeBagInterface.php, line 21
Namespace
Symfony\Component\HttpFoundation\Session\AttributeView source
interface AttributeBagInterface extends SessionBagInterface {
/**
* Checks if an attribute is defined.
*
* @param string $name The attribute name
*
* @return bool true if the attribute is defined, false otherwise
*/
public function has($name);
/**
* Returns an attribute.
*
* @param string $name The attribute name
* @param mixed $default The default value if not found
*
* @return mixed
*/
public function get($name, $default = null);
/**
* Sets an attribute.
*
* @param string $name
* @param mixed $value
*/
public function set($name, $value);
/**
* Returns attributes.
*
* @return array Attributes
*/
public function all();
/**
* Sets attributes.
*
* @param array $attributes Attributes
*/
public function replace(array $attributes);
/**
* Removes an attribute.
*
* @param string $name
*
* @return mixed The removed value or null when it does not exist
*/
public function remove($name);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AttributeBagInterface:: |
public | function | Returns attributes. | 1 |
AttributeBagInterface:: |
public | function | Returns an attribute. | 1 |
AttributeBagInterface:: |
public | function | Checks if an attribute is defined. | 1 |
AttributeBagInterface:: |
public | function | Removes an attribute. | 1 |
AttributeBagInterface:: |
public | function | Sets attributes. | 1 |
AttributeBagInterface:: |
public | function | Sets an attribute. | 1 |
SessionBagInterface:: |
public | function | Clears out data from bag. | 4 |
SessionBagInterface:: |
public | function | Gets this bag's name. | 4 |
SessionBagInterface:: |
public | function | Gets the storage key for this bag. | 4 |
SessionBagInterface:: |
public | function | Initializes the Bag. | 4 |