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


PHP Workflow::hasWorkflowIntegration方法代码示例

本文整理汇总了PHP中Workflow::hasWorkflowIntegration方法的典型用法代码示例。如果您正苦于以下问题:PHP Workflow::hasWorkflowIntegration方法的具体用法?PHP Workflow::hasWorkflowIntegration怎么用?PHP Workflow::hasWorkflowIntegration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Workflow的用法示例。


在下文中一共展示了Workflow::hasWorkflowIntegration方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

                $show_category = 0;
            }
            $cookie = Auth::getCookieInfo(APP_PROJECT_COOKIE);
            if (!empty($auto_switched_from)) {
                $tpl->assign(array("project_auto_switched" => 1, "old_project" => Project::getName($auto_switched_from)));
            }
            $setup = Setup::load();
            $tpl->assign("allow_unassigned_issues", @$setup["allow_unassigned_issues"]);
            $tpl->assign(array('next_issue' => @$sides['next'], 'previous_issue' => @$sides['previous'], 'subscribers' => Notification::getSubscribers($issue_id), 'custom_fields' => Custom_Field::getListByIssue($prj_id, $issue_id), 'files' => Attachment::getList($issue_id), 'emails' => Support::getEmailsByIssue($issue_id), 'zones' => Date_API::getTimezoneList(), 'users' => Project::getUserAssocList($prj_id, 'active', User::getRoleID('Customer')), 'ema_id' => Email_Account::getEmailAccount(), 'max_attachment_size' => Attachment::getMaxAttachmentSize(), 'show_releases' => $show_releases, 'show_category' => $show_category, 'categories' => Category::getAssocList($prj_id), 'quarantine' => Issue::getQuarantineInfo($issue_id)));
            if ($role_id != User::getRoleID('customer')) {
                if (@$_REQUEST['show_all_drafts'] == 1) {
                    $show_all_drafts = true;
                } else {
                    $show_all_drafts = false;
                }
                if (Workflow::hasWorkflowIntegration($prj_id)) {
                    $statuses = Workflow::getAllowedStatuses($prj_id, $issue_id);
                    // if currently selected release is not on list, go ahead and add it.
                } else {
                    $statuses = Status::getAssocStatusList($prj_id);
                }
                if (!empty($details['iss_sta_id']) && empty($statuses[$details['iss_sta_id']])) {
                    $statuses[$details['iss_sta_id']] = Status::getStatusTitle($details['iss_sta_id']);
                }
                $time_entries = Time_Tracking::getListing($issue_id);
                $tpl->assign(array('notes' => Note::getListing($issue_id), 'is_user_assigned' => Issue::isAssignedToUser($issue_id, $usr_id), 'is_user_authorized' => Authorized_Replier::isUserAuthorizedReplier($issue_id, $usr_id), 'phone_entries' => Phone_Support::getListing($issue_id), 'phone_categories' => Phone_Support::getCategoryAssocList($prj_id), 'checkins' => SCM::getCheckinList($issue_id), 'time_categories' => Time_Tracking::getAssocCategories(), 'time_entries' => $time_entries['list'], 'total_time_spent' => $time_entries['total_time_spent'], 'impacts' => Impact_Analysis::getListing($issue_id), 'statuses' => $statuses, 'drafts' => Draft::getList($issue_id, $show_all_drafts), 'groups' => Group::getAssocList($prj_id)));
            }
        }
    }
}
$tpl->displayTemplate();
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:view.php

示例2: handleAuthorizedReplierAdded

 /**
  * Handles when an authorized replier is added
  *
  * @param   integer $prj_id The project ID
  * @param   integer $issue_id The ID of the issue
  * @param   string  $email The email address added
  * @return  boolean
  */
 function handleAuthorizedReplierAdded($prj_id, $issue_id, &$email)
 {
     if (!Workflow::hasWorkflowIntegration($prj_id)) {
         return null;
     }
     $backend =& Workflow::_getBackend($prj_id);
     return $backend->handleAuthorizedReplierAdded($prj_id, $issue_id, $email);
 }
开发者ID:juliogallardo1326,项目名称:proc,代码行数:16,代码来源:class.workflow.php

示例3: canCloneIssue

 /**
  * Called to check if an email address that does not have an eventum account can send notes to an issue.
  *
  * @param   integer $prj_id The project ID
  * @param   integer $issue_id The issue ID
  * @param   string $usr_id The ID of the user
  * @return  boolean True if the issue can be cloned, false otherwise
  */
 public static function canCloneIssue($prj_id, $issue_id, $usr_id)
 {
     if (!Workflow::hasWorkflowIntegration($prj_id)) {
         return;
     }
     $backend = Workflow::_getBackend($prj_id);
     return $backend->canCloneIssue($prj_id, $issue_id, $usr_id);
 }
开发者ID:korusdipl,项目名称:eventum,代码行数:16,代码来源:class.workflow.php


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