Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ProcessManager Class Reference

Inheritance diagram for ProcessManager:

Inheritance graph
[legend]
Collaboration diagram for ProcessManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProcessManager ($db)
 activate_process ($pId)
 deactivate_process ($pId)
 serialize_process ($pId)
 unserialize_process ($xml)
 import_process ($data)
 new_process_version ($pId, $minor=true)
 process_name_exists ($name, $version)
 get_process ($pId)
 list_processes ($offset, $maxRecords, $sort_mode, $find, $where='')
 invalidate_process ($pid)
 remove_process ($pId)
 replace_process ($pId, $vars, $create=true)
 _rec_copy ($dir1, $dir2)
 _start_element_handler ($parser, $element, $attribs)
 _end_element_handler ($parser, $element)
 _data_handler ($parser, $data)

Public Attributes

 $parser
 $tree
 $current
 $buffer

Detailed Description

This class is used to add,remove,modify and list processes.

Definition at line 9 of file src/ProcessManager/ProcessManager.php.


Constructor & Destructor Documentation

ProcessManager::ProcessManager db  ) 
 

Constructor takes a PEAR::Db object to be used to manipulate roles in the database.

Definition at line 19 of file src/ProcessManager/ProcessManager.php.


Member Function Documentation

ProcessManager::activate_process pId  ) 
 

Sets a process as active

Definition at line 30 of file src/ProcessManager/ProcessManager.php.

ProcessManager::deactivate_process pId  ) 
 

De-activates a process

Definition at line 41 of file src/ProcessManager/ProcessManager.php.

ProcessManager::get_process pId  ) 
 

Gets a process by pId. Fields are returned as an asociative array

Definition at line 408 of file src/ProcessManager/ProcessManager.php.

ProcessManager::import_process data  ) 
 

Creates a process from the process data structure, if you want to convert an XML to a process then use first unserialize_process and then this method.

Definition at line 226 of file src/ProcessManager/ProcessManager.php.

ProcessManager::invalidate_process pid  ) 
 

Marks a process as an invalid process

Definition at line 455 of file src/ProcessManager/ProcessManager.php.

ProcessManager::list_processes offset,
maxRecords,
sort_mode,
find,
where = ''
 

Lists processes (all processes)

Definition at line 420 of file src/ProcessManager/ProcessManager.php.

ProcessManager::new_process_version pId,
minor = true
 

Creates a new process based on an existing process changing the process version. By default the process is created as an unactive process and the version is by default a minor version of the process.

Todo:
copy process activities and so

Definition at line 311 of file src/ProcessManager/ProcessManager.php.

ProcessManager::process_name_exists name,
version
 

This function can be used to check if a process name exists, note that this is NOT used by replace_process since that function can be used to create new versions of an existing process. The application must use this method to ensure that processes have unique names.

Definition at line 398 of file src/ProcessManager/ProcessManager.php.

ProcessManager::remove_process pId  ) 
 

Removes a process by pId

Definition at line 464 of file src/ProcessManager/ProcessManager.php.

ProcessManager::replace_process pId,
vars,
create = true
 

Updates or inserts a new process in the database, $vars is an asociative array containing the fields to update or to insert as needed. $pId is the processId

Definition at line 503 of file src/ProcessManager/ProcessManager.php.

ProcessManager::serialize_process pId  ) 
 

Creates an XML representation of a process.

Definition at line 52 of file src/ProcessManager/ProcessManager.php.

ProcessManager::unserialize_process xml  ) 
 

Creates a process PHP data structure from its XML representation

Definition at line 134 of file src/ProcessManager/ProcessManager.php.


The documentation for this class was generated from the following file:
Generated on Mon Jun 7 16:37:57 2004 for Galaxia by doxygen 1.3.4