本文整理匯總了PHP中Workflow::getCurrentProcess方法的典型用法代碼示例。如果您正苦於以下問題:PHP Workflow::getCurrentProcess方法的具體用法?PHP Workflow::getCurrentProcess怎麽用?PHP Workflow::getCurrentProcess使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Workflow
的用法示例。
在下文中一共展示了Workflow::getCurrentProcess方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: index
public function index()
{
//獲取所有節點
if (!$_GET["mainrow_id"]) {
return parent::index();
}
//僅獲取當前數據的下一ID
// $map = array();
// $this->_filter($map);
import("@.Workflow.Workflow");
$workflow = new Workflow($_GET["workflow_alias"]);
$process = $workflow->getCurrentProcess($_GET["mainrow_id"]);
$this->response(reIndex($process["nextNode"]));
}
示例2: find
public function find($options = array())
{
$data = parent::find($options);
if (!$data) {
return $data;
}
/**
* 工作流
*/
if ($this->workflowAlias) {
import("@.Workflow.Workflow");
$workflow = new Workflow($this->workflowAlias);
// var_dump($workflow);exit;
$processData = $workflow->getCurrentProcess($data["id"]);
$data["processes"] = $processData;
}
return $data;
}
示例3: find
/**
* @override
*/
public function find($options = array())
{
$data = parent::find($options);
if (!$data) {
return $data;
}
/**
* 工作流
*/
if ($this->workflowAlias and false !== $this->includeWorkflowProcess) {
import("@.Workflow.Workflow");
$workflow = new Workflow($this->workflowAlias);
$processData = $workflow->getCurrentProcess($data[$this->workflowMainRowField]);
$data["processes"] = $processData;
}
return $data;
}
示例4: find
/**
* @override
*/
public function find($options = array())
{
$data = parent::find($options);
if (!$data) {
return $data;
}
if ($data["dateline"]) {
$data["dateline_lang"] = date("Y-m-d H:i:s", $data["dateline"]);
}
if ($this->workflowAlias and false !== $this->includeWorkflowProcess) {
import("@.Workflow.Workflow");
$workflow = new Workflow($this->workflowAlias);
$processData = $workflow->getCurrentProcess($data["id"]);
$data["processes"] = $processData;
}
// if(isset($data["status"])) {
// if(isset($this->status_lang)) {
// $data["status_lang"] = L($this->status_lang[$data["status"]]);
// }
// if(isset($this->status_class)) {
// $data["status_class"] = $this->status_class[$data["status"]];
// }
// }
return $data;
}