本文整理汇总了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) {
示例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'>