本文整理汇总了PHP中Organization::getLicenses方法的典型用法代码示例。如果您正苦于以下问题:PHP Organization::getLicenses方法的具体用法?PHP Organization::getLicenses怎么用?PHP Organization::getLicenses使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Organization
的用法示例。
在下文中一共展示了Organization::getLicenses方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Configuration
$pageTitle = $organization->name;
include 'templates/header.php';
//set referring page
if (isset($_GET['ref']) && $_GET['ref'] == 'new') {
$_SESSION['ref_script'] = "new";
} else {
$_SESSION['ref_script'] = $currentPage;
}
//as long as organization is valid...
if ($organization->name) {
//if the licensing module is installed display licensing tab
$config = new Configuration();
$showLicensing = 'N';
if ($config->settings->licensingModule == 'Y') {
$showLicensing = 'Y';
$numLicenses = count($organization->getLicenses());
}
?>
<table class="headerTable" style="background-image:url('images/header.gif');background-repeat:no-repeat;">
<tr><td align='left'>
<table style='width:100%;'>
<tr style='vertical-align:top'>
<td><span class="headerText" id='span_orgName'><?php
echo $organization->name;
?>
</span><br />
<br />
</td>
<td style='text-align:right;width:50px;'>
示例2: Organization
*/
session_start();
include_once 'directory.php';
$organizationID = $_GET['organizationID'];
$organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
$pageTitle = $organization->name;
$config = new Configuration();
$util = new Utility();
//as long as organization is valid...
if ($organization->name) {
//if the licensing module is installed display licensing info
$config = new Configuration();
$showLicensing = 'N';
if ($config->settings->licensingModule == 'Y') {
$showLicensing = 'Y';
$numLicenses = count($organization->getLicenses());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Organizations Module - <?php
echo $pageTitle;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="public">
示例3: Organization
'>export these issues</a> - <a href='issues_export.php'>export all issues</a>
<?php
break;
case 'getLicenseDetails':
$organizationID = $_GET['organizationID'];
$organization = new Organization(new NamedArguments(array('primaryKey' => $organizationID)));
//if the licensing module is installed get license info for this organization
$config = new Configuration();
$util = new Utility();
if ($config->settings->licensingModule == 'Y') {
//get licenses
$sanitizedInstance = array();
$instance = new Alias();
$licenseArray = array();
try {
$licenseArray = $organization->getLicenses();
if (count($licenseArray) > 0) {
?>
<table class='linedFormTable' style='width:440px;'>
<tr>
<th>License</th>
<th>Consortium</th>
<th>Status</th>
</tr>
<?php
$licensingPath = $util->getLicensingURL();
foreach ($licenseArray as $license) {
echo "<tr>\n";
echo "<td><a href='" . $licensingPath . $license['licenseID'] . "' target='_blank'>" . $license['licenseName'] . "</a></td>\n";
echo "<td>" . $license['consortiumName'] . "</td>\n";