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


PHP Organization::getIssues方法代码示例

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


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

示例1: Organization

</a> 
					<a target="_blank" href="<?php 
        echo $exportDowntimeUrl;
        ?>
&archived=1"><img src="images/xls.gif" /></a>
					<div class="downtimeList" id="archivedDowntime"></div>
				</td>
			</tr>
		</table>
<?php 
        break;
    case 'getResourceIssuesList':
        $organizationID = $_GET['organizationID'];
        $archivedFlag = !empty($_GET['archived']) && $_GET['archived'] == 1 ? true : false;
        $organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
        $orgIssues = $organization->getIssues($archivedFlag);
        if (count($orgIssues) > 0) {
            foreach ($orgIssues as $issue) {
                echo generateIssueHTML($issue, array(array("name" => $organization->name, "id" => $organization->organizationID, "entityType" => 1)));
            }
        } else {
            echo "<br><p>" . _("There are no organization level issues.") . "</p><br>";
        }
        break;
    case 'getDowntimeList':
        $organizationID = $_GET['organizationID'];
        $archivedFlag = !empty($_GET['archived']) && $_GET['archived'] == 1 ? true : false;
        $organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
        $orgDowntime = $organization->getDowntime($archivedFlag);
        if (count($orgDowntime) > 0) {
            foreach ($orgDowntime as $downtime) {
开发者ID:pontifechs,项目名称:organizations,代码行数:31,代码来源:ajax_htmldata.php

示例2: Resource

$resourceID = $_GET["resourceID"];
$issueID = $_GET['issueID'];
$resource = new Resource(new NamedArguments(array('primaryKey' => $resourceID)));
$isOrgDowntime = false;
if ($organizationID) {
    $organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
    $issues = $organization->getIssues();
    $isOrgDowntime = true;
} else {
    $issues = $resource->getIssues();
    $organizationArray = $resource->getOrganizationArray();
    $organizationData = $organizationArray[0];
    if ($organizationData['organizationID']) {
        $organizationID = $organizationData['organizationID'];
        $organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
        $orgIssues = $organization->getIssues();
        foreach ($orgIssues as $issue) {
            array_push($issues, $issue);
        }
        $organizationResourcesArray = $resource->getSiblingResourcesArray($organizationID);
    }
}
//our $organizationID could have come from the $_GET or through the resource
if ($organizationID) {
    $downtimeObj = new Downtime();
    $downtimeTypeNames = $downtimeObj->getDowntimeTypesArray();
    $defaultStart = date("Y-m-d\\TH:i");
    $defaultEnd = date("Y-m-d\\TH:i", strtotime("+1 day"));
    ?>

<form id='newDowntimeForm'>
开发者ID:pontifechs,项目名称:resources,代码行数:31,代码来源:getNewDowntimeForm.php


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