当前位置: 首页>>代码示例>>PHP>>正文


PHP Activity::splitStage方法代码示例

本文整理汇总了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;
开发者ID:ben-garside,项目名称:XCP,代码行数:31,代码来源:stagemanager.php

示例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();
开发者ID:ben-garside,项目名称:XCP,代码行数:31,代码来源:activity.data.lookup.php

示例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;
 }
开发者ID:ben-garside,项目名称:XCP,代码行数:13,代码来源:Activity.php


注:本文中的Activity::splitStage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。