Пример #1
0
 public function updateOnAction(Workflow $wf)
 {
     $db = Loader::db();
     $num = $wf->getWorkflowProgressCurrentStatusNum($this);
     $time = Loader::helper('date')->getOverridableNow();
     $db->Execute('update WorkflowProgress set wpDateLastAction = ?, wpCurrentStatus = ? where wpID = ?', array($time, $num, $this->wpID));
 }
Пример #2
0
 public function updateOnAction(Workflow $wf)
 {
     $db = Database::connection();
     $num = $wf->getWorkflowProgressCurrentStatusNum($this);
     $time = Core::make('helper/date')->getOverridableNow();
     $db->executeQuery('update WorkflowProgress set wpDateLastAction = ?, wpCurrentStatus = ? where wpID = ?', array($time, $num, $this->wpID));
 }
Пример #3
0
 public function getWorkflowProgressCurrentStatusNum(Concrete\Core\Workflow\Progress\Progress $wp)
 {
     return parent::getWorkflowProgressCurrentStatusNum($wp);
 }