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 |
Definition at line 9 of file src/ProcessManager/ProcessManager.php.
|
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. |
|
Sets a process as active Definition at line 30 of file src/ProcessManager/ProcessManager.php. |
|
De-activates a process Definition at line 41 of file src/ProcessManager/ProcessManager.php. |
|
Gets a process by pId. Fields are returned as an asociative array Definition at line 408 of file src/ProcessManager/ProcessManager.php. |
|
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. |
|
Marks a process as an invalid process Definition at line 455 of file src/ProcessManager/ProcessManager.php. |
|
Lists processes (all processes) Definition at line 420 of file src/ProcessManager/ProcessManager.php. |
|
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.
Definition at line 311 of file src/ProcessManager/ProcessManager.php. |
|
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. |
|
Removes a process by pId Definition at line 464 of file src/ProcessManager/ProcessManager.php. |
|
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. |
|
Creates an XML representation of a process. Definition at line 52 of file src/ProcessManager/ProcessManager.php. |
|
Creates a process PHP data structure from its XML representation Definition at line 134 of file src/ProcessManager/ProcessManager.php. |