本文整理汇总了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;
}