本文整理汇总了PHP中Activity::splitStage方法的典型用法代码示例。如果您正苦于以下问题:PHP Activity::splitStage方法的具体用法?PHP Activity::splitStage怎么用?PHP Activity::splitStage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Activity
的用法示例。
在下文中一共展示了Activity::splitStage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
<script>window.location.href = 'login.php?nexturl=stagemanager.php';</script><?php
}
if ($stage = Input::get('stage')) {
if (!$user->inRole('administrator')) {
?>
<script>window.location.href = 'v.php';</script><?php
}
?>
<div class="page-header">
<a href="stagemanager.php" class="btn btn-success pull-right"><i class="fa fa-chevron-left"></i> Go Back</a>
<h1>Stage Manager</h1>
</div>
<?php
// Show info fopr selected stage
$stageInfo = Activity::splitStage($stage, ',');
$act = $stageInfo['activity'];
$status = $stageInfo['status'];
echo '<h3 id="currentStage">' . $act . ":" . $status . '</h3>';
$Info = Activity::showStages($act, $status);
$stageInfo = $Info[$act]['INFO'];
$statusInfo = $Info[$act]['STATUSES'][$status];
?>
<form action="" method="post" class="form-horizontal">
<div class="form-group" id="name_form">
<label for="name" class="col-sm-3 control-label">Name</label>
<div class="col-sm-6">
<input value="<?php
echo $statusInfo->name;
示例2: split
break;
case 'statusDescription':
$actData = Activity::splitStage($key, ",");
$out = Activity::getStatusDescriptionDescription($actData['status'], $actData['activity']);
break;
case 'persistantAssignment':
$stages = split("\\|", $key);
$actDataFrom = Activity::splitStage($stages[0], ",");
$actDataTo = Activity::splitStage($stages[1], ",");
$pipeline = $stages[2];
$out = Activity::maintainAssign($actDataFrom['activity'], $actDataFrom['status'], $actDataTo['activity'], $actDataTo['status'], $pipeline);
break;
case 'getAction':
$stages = split("\\|", $key);
$actDataFrom = Activity::splitStage($stages[0], ",");
$actDataTo = Activity::splitStage($stages[1], ",");
$pipeline = $stages[2];
$out = Activity::getAction($actDataFrom['activity'], $actDataFrom['status'], $actDataTo['activity'], $actDataTo['status'], $pipeline);
break;
case 'getActionType':
$action = $key;
$out = Activity::getActionType($action);
break;
case 'getActivities':
$out = Activity::listActivities();
break;
case 'getStatuses':
$out = Activity::listStatuses($key);
break;
case 'getActions':
$out = Activity::listActions();
示例3: deleteStage
public static function deleteStage($stage)
{
$stage = Activity::splitStage($stage, ',');
echo $stage['activity'];
$data = DB::getInstance()->query("DELETE FROM ACT_STATUS_2 WHERE act = '" . $stage['activity'] . "' AND status = '" . $stage['status'] . "'");
if (!$data->error()) {
$data = DB::getInstance()->query("DELETE FROM ACT_MAPPING WHERE act_in = '" . $stage['activity'] . "' AND status_in = '" . $stage['status'] . "'");
if (!$data->error()) {
return true;
}
}
return false;
}