FRED™  3.0
FRED™: Framework for Rapid and Easy Development
Container Class Reference
Inheritance diagram for Container:
Thing File

Public Member Functions

 __construct ($storage, $options, $key)
 
 __destruct ()
 
 read ($key, $default=null)
 
 write ($key, $value)
 
 remove ($key)
 
 clear ()
 
 commit ()
 
 rollback ()
 
- Public Member Functions inherited from Thing
 propertyExists ($property)
 Check if a property exists (public or published). More...
 
 constants ($prefix=null)
 Return all constants. More...
 
 get ($key)
 Get one or more properties. More...
 
 set ($key, $value=null)
 Set one or more properties. More...
 
 __get ($key)
 
 __set ($key, $value)
 

Protected Member Functions

 open ()
 
 save ()
 
 _get ($key)
 
 _set ($key, $value)
 
 getData ()
 
- Protected Member Functions inherited from Thing
 publish ($property, $visibility=self::READABLE)
 Publish a property (or hide it again). More...
 
 configure ($config)
 Configure the object. More...
 
 _get ($key)
 Default getter if no specific setter is defined, and the property is also not published (readable). More...
 
 _set ($key, $value)
 Default setter if no specific setter is defined, and the property is also not published (writeable). More...
 

Protected Attributes

 $_storage = null
 
 $_key = null
 
 $_data = null
 
 $_changed = false
 
- Protected Attributes inherited from Thing
 $_published = []
 Published properties (key = name of property, value = visibility). More...
 

Additional Inherited Members

- Data Fields inherited from Thing
const HIDDEN = 0
 Property is hidden. More...
 
const READABLE = 1
 Property is readable. More...
 
const WRITEABLE = 2
 Property is writeable. More...
 
const READWRITE = 3
 Property is readable and writeable. More...
 

Detailed Description

Definition at line 5 of file Container.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $storage,
  $options,
  $key 
)

Definition at line 13 of file Container.php.

◆ __destruct()

__destruct ( )

Definition at line 19 of file Container.php.

Member Function Documentation

◆ _get()

_get (   $key)
protected

Definition at line 60 of file Container.php.

◆ _set()

_set (   $key,
  $value 
)
protected

Definition at line 64 of file Container.php.

◆ clear()

clear ( )

Definition at line 45 of file Container.php.

◆ commit()

commit ( )

Definition at line 50 of file Container.php.

◆ getData()

getData ( )
protected

Definition at line 68 of file Container.php.

◆ open()

open ( )
abstractprotected

◆ read()

read (   $key,
  $default = null 
)

Definition at line 27 of file Container.php.

◆ remove()

remove (   $key)

Definition at line 38 of file Container.php.

◆ rollback()

rollback ( )

Definition at line 55 of file Container.php.

◆ save()

save ( )
abstractprotected

◆ write()

write (   $key,
  $value 
)

Definition at line 31 of file Container.php.

Field Documentation

◆ $_changed

$_changed = false
protected

Definition at line 11 of file Container.php.

◆ $_data

$_data = null
protected

Definition at line 10 of file Container.php.

◆ $_key

$_key = null
protected

Definition at line 8 of file Container.php.

◆ $_storage

$_storage = null
protected

Definition at line 7 of file Container.php.


The documentation for this class was generated from the following file: