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

Public Member Functions

 __construct ($workflow, $id)
 
 execute ()
 Execute the action for the current step. More...
 
 lock ()
 
 unlock ()
 
- 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

 getData ()
 
 setData ($value)
 
 getStatus ()
 
 setStatus ($value)
 
 getStatuses ()
 
 _get ($key)
 
 _set ($key, $value)
 
- 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

 $_workflow = null
 
 $_id = null
 
 $_data = null
 
- 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 Item.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $workflow,
  $id 
)

Definition at line 12 of file Item.php.

Member Function Documentation

◆ _get()

_get (   $key)
protected

Definition at line 62 of file Item.php.

◆ _set()

_set (   $key,
  $value 
)
protected

Definition at line 66 of file Item.php.

◆ execute()

execute ( )

Execute the action for the current step.

Returns
bool True when status changed, false when not.

Definition at line 20 of file Item.php.

◆ getData()

getData ( )
protected

Definition at line 40 of file Item.php.

◆ getStatus()

getStatus ( )
protected

Definition at line 50 of file Item.php.

◆ getStatuses()

getStatuses ( )
protected

Definition at line 58 of file Item.php.

◆ lock()

lock ( )

Definition at line 32 of file Item.php.

◆ setData()

setData (   $value)
protected

Definition at line 45 of file Item.php.

◆ setStatus()

setStatus (   $value)
protected

Definition at line 54 of file Item.php.

◆ unlock()

unlock ( )

Definition at line 36 of file Item.php.

Field Documentation

◆ $_data

$_data = null
protected

Definition at line 10 of file Item.php.

◆ $_id

$_id = null
protected

Definition at line 8 of file Item.php.

◆ $_workflow

$_workflow = null
protected

Definition at line 7 of file Item.php.


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