Smalldb-REST  v0.5-5-gff393ee
Public Member Functions | Protected Attributes | List of all members
Handler Class Reference

Description

Handler, which really invokes Smalldb.

Inheritance diagram for Handler

Public Member Functions

 __construct ($config, $smalldb)
 Constructor. More...
 
 getSmalldb ()
 Get Smalldb. More...
 
 getKnownTypes ()
 Get known state machine types. More...
 
 listing ($filters)
 List state machines matching $filters. More...
 
 readState ($id)
 Read state of state machine. More...
 
 readViews ($id, $view_names)
 Read state of state machine. More...
 
 checkTransition ($id, $action)
 Check if transition is available. More...
 
 invokeTransition ($id, $action, $args)
 Invoke transition of state machine. More...
 

Protected Attributes

 $smalldb
 Smalldb to operate on More...
 

Constructor & Destructor Documentation

__construct (   $config,
  $smalldb 
)

Constructor.

Member Function Documentation

getSmalldb ( )

Get Smalldb.

getKnownTypes ( )

Get known state machine types.

Implements IHandler.

listing (   $filters)

List state machines matching $filters.

Implements IHandler.

readState (   $id)

Read state of state machine.

Implements IHandler.

readViews (   $id,
  $view_names 
)

Read state of state machine.

Implements IHandler.

checkTransition (   $id,
  $action 
)

Check if transition is available.

Implements IHandler.

invokeTransition (   $id,
  $action,
  $args 
)

Invoke transition of state machine.

Implements IHandler.

Member Data Documentation

$smalldb
protected

Smalldb to operate on