Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /home/schmitt/local-cvs/midgard-current/workflow/fordoc/WorkflowSession.php
DataWorkFlow + DataflowVC -

WorkflowSession

VCSession
   |
  +-- WorkflowSession

Handles configuration and "global" stuff.

 

private class WorkflowSession extends VCSession

Handles configuration and "global" stuff.

 

Methods inherited from VCSession

vcsession, &getdbh, &getglobdbh, &getmgddb, &getversioncontrol, &getnamespace, &getbranch, &getbranchid, &getbranchlabel, &getuser, &getoutgoing, getspoolerurl, getstatushandler, notifyspooler, notifystatushandler

Public Method Summary

void

WorkflowSession([ string $arrname ])

Construct a WorkflowSession

Private Method Summary

void

&getMgdPath(int $destId, string $path)

Get the matching MgdPath for the given path, i.e. the "range" defined in workflow configuration.
array

listMgdPaths( $destId)

List all MgdPaths defined for the source branch = current branch
bool

mayDoStepDef(int $stepDefId, [ boolean $auto ])

Checks permission for the current user to do something with the StepDef
array

listPendingProcs()

Lists all pending WorkflowProcs for the current user.
void

su(int $newuser)

Do stuff as another user. Only root may do that
void

&getVCSession( $branch)

Warning: documentation is missing.
void

getBranchLabel( $id)

Warning: documentation is missing.
void

getUserPath()

Warning: documentation is missing.

Fields inherited from VCSession

$_dbh, $_glob_dbh, $_mgddb, $_vc, $_nspace, $_branch, $_branchid, $_branchlabel, $_user, $_outgoing, $_conf

Private Field Summary

string

$_confPath

unknown

$_confDoc

unknown

$_confCtx

unknown

$_mgdPaths

unknown

$_mgdUser

unknown

$_mgdUserGuid

unknown

$_mgdGroups

Public Method Details

WorkflowSession

public void WorkflowSession( [ string $arrname ] )

  Construct a WorkflowSession

Parameter
string $arrname = >>'WFSessionConf'<<
Returns void


Private Method Details

&getMgdPath

private void &getMgdPath( int $destId, string $path )

  Get the matching MgdPath for the given path, i.e. the "range" defined in workflow configuration.

Parameter
int $destId
the id of the destination branch
string $path
Returns void


listMgdPaths

private array listMgdPaths( $destId )

  List all MgdPaths defined for the source branch = current branch

Parameter
$destId
Warning: documentation is missing.
Returns array $mgdPaths


mayDoStepDef

private bool mayDoStepDef( int $stepDefId, [ boolean $auto ] )

  Checks permission for the current user to do something with the StepDef

Parameter
int $stepDefId
the id of the StepDef
boolean $auto = >>false<<
(optional) if auto or normal permissions should be checked
Returns bool $ok


listPendingProcs

private array listPendingProcs( )

  Lists all pending WorkflowProcs for the current user.

Returns array $pendingProcIds


su

private void su( int $newuser )

  Do stuff as another user. Only root may do that

Parameter
int $newuser
the id of the person
Returns void


&getVCSession

private void &getVCSession( $branch )

 

Warning: documentation is missing.

Parameter
$branch
Warning: documentation is missing.
Returns void


getBranchLabel

private void getBranchLabel( $id )

 

Warning: documentation is missing.

Parameter
$id
Warning: documentation is missing.
Returns void


getUserPath

private void getUserPath( )

 

Warning: documentation is missing.

Returns void


Private Field Details

$_confPath

private string $_confPath

>>"/home/schmitt/local-cvs/midgard-current/workflow/workflow.xml"<<



$_confDoc

private unknown $_confDoc

>><<



$_confCtx

private unknown $_confCtx

>><<



$_mgdPaths

private unknown $_mgdPaths

>><<



$_mgdUser

private unknown $_mgdUser

>><<



$_mgdUserGuid

private unknown $_mgdUserGuid

>><<



$_mgdGroups

private unknown $_mgdGroups

>><<




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta