[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 //Code to be executed after a join activity 3 // we save name and others only when the instance 4 // has been completed 5 if ($instance->getActivityCompleted()) 6 { 7 if(isset($_REQUEST['wf_name'])) 8 { 9 $instance->setName($_REQUEST['wf_name']); 10 } 11 if(isset($_REQUEST['wf_priority'])) 12 { 13 $instance->setPriority((int)$_REQUEST['wf_priority']); 14 } 15 if(isset($_REQUEST['wf_set_next_user'])) 16 { 17 $instance->setNextUser((int)$_REQUEST['wf_set_next_user']); 18 } 19 if(isset($_REQUEST['wf_set_owner'])) 20 { 21 $instance->setOwner((int)$_REQUEST['wf_set_owner']); 22 } 23 if(isset($_REQUEST['wf_category'])) 24 { 25 $instance->setCategory((int)$_REQUEST['wf_category']); 26 } 27 } 28 elseif($GLOBALS['workflow']['__leave_activity']) 29 { 30 $this->runtime->StartRun(); 31 //tests for auto-release (more complex than release) and lock some rows if needed-------------------- 32 if ($this->runtime->checkUserRelease()) 33 { 34 //release 35 $this->runtime->setActivityUser(false); 36 } 37 $this->runtime->EndStartRun(); 38 } 39 40 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |