當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。