本文整理汇总了PHP中License::getDocuments方法的典型用法代码示例。如果您正苦于以下问题:PHP License::getDocuments方法的具体用法?PHP License::getDocuments怎么用?PHP License::getDocuments使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类License
的用法示例。
在下文中一共展示了License::getDocuments方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: License
<?php
}
?>
<br />
</td></tr>
</table>
<?php
break;
//sfx display for the sfx tab on license.php
//sfx display for the sfx tab on license.php
case 'getAllSFXProviders':
$licenseID = $_GET['licenseID'];
$license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
$document = new Document();
$documentArray = $license->getDocuments();
$rowCount = 0;
//loop through each document separately
//note - this tab is only displayed for admin users so no validation is required
foreach ($documentArray as $document) {
$sfxProvider = new SFXProvider();
foreach ($document->getSFXProviders as $sfxProvider) {
$rowCount++;
if ($rowCount == "1") {
?>
<table class='verticalFormTable'>
<tr>
<th>For Document</th>
<th>Resource</th>
<th> </th>
<th> </th>
示例2: array
echo $expressionID;
?>
'>
<table class="thickboxTable" style="width:340px;">
<tr>
<td colspan='2'><span class='headerText'>Expressions</span><br /><span id='span_errors'></span><br /></td>
</tr>
<tr>
<td colspan='2'><label for="documentID" class="formText">Document:</label><br />
<select name='documentID' id='documentID' style='width:280px;'>
<?php
$display = array();
foreach ($license->getDocuments() as $display) {
if ($expression->documentID == $display->documentID) {
echo "<option value='" . $display->documentID . "' selected>" . $display->shortName . "</option>";
} else {
echo "<option value='" . $display->documentID . "'>" . $display->shortName . "</option>";
}
}
?>
</select><br />
</td>
</tr>
<tr>
<td colspan='2'><label for="expressionTypeID" class="formText">Expression Type:</label><br />
<span id='span_expressionType'>
示例3: archive
<?php
} else {
if ($displayArchiveInd == "") {
echo _("(none found)");
} else {
if ($displayArchiveInd == "1" || $numRows == "0") {
//echo "(no archived documents found)";
} else {
echo "<i>" . $numRows . _(" archive(s) available.") . " <a href='javascript:updateArchivedDocuments(1)'>" . _("show archives") . "</a></i><br /><br />";
}
}
}
if ($user->canEdit() && $displayArchiveInd != "") {
$duglicense = new License(new NamedArguments(array('primaryKey' => $licenseID)));
$dugArray = $duglicense->getDocuments();
$numDug = count($dugArray);
if ($numDug == 0) {
echo "<a href='ajax_forms.php?action=getUploadDocument&licenseID=" . $licenseID . "&height=310&width=310&modal=true' class='thickbox' id='uploadDocument'>" . _("upload new document") . "</a>";
} else {
echo _("Only one active document is allowed.") . " <a href='ajax_forms.php?action=getUploadDocument&licenseID=" . $licenseID . "&isArchived=1&height=310&width=310&modal=true' class='thickbox' id='uploadDocument'>" . _("upload archived document") . "</a>";
}
echo '<br /><br />';
}
break;
//display for expressions tab on license.php
//display for expressions tab on license.php
case 'getAllExpressions':
$licenseID = $_GET['licenseID'];
$documentID = $_GET['documentID'];
//if 'view expressions' link is clicked on a specific document, we're just displaying expressions for that document