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


PHP License::getDocumentsWithoutParents方法代码示例

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


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

示例1: Document

		</div>
<?php 
        break;
        //form to edit/upload documents
    //form to edit/upload documents
    case 'getUploadDocument':
        //document ID passed in for updates only
        if (isset($_GET['documentID'])) {
            $documentID = $_GET['documentID'];
        } else {
            $documentID = '';
        }
        $licenseID = $_GET['licenseID'];
        $document = new Document(new NamedArguments(array('primaryKey' => $documentID)));
        $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
        if (count($license->getDocumentsWithoutParents('documentID', $documentID)) > 0) {
            $blockArchiveCheck = 'disabled';
        } else {
            $blockArchiveCheck = '';
        }
        //if effective date isn't set, set it to today's date
        if ($document->effectiveDate == "0000-00-00" || $document->effectiveDate == "") {
            $effectiveDate = date("m/d/Y");
        } else {
            $effectiveDate = format_date($document->effectiveDate);
        }
        //if revision date isn't set, set it to today's date
        if ($document->revisionDate == "0000-00-00" || $document->revisionDate == "") {
            $revisionDate = date("m/d/Y");
        } else {
            $revisionDate = format_date($document->revisionDate);
开发者ID:TAMULib,项目名称:CORAL-Management,代码行数:31,代码来源:ajax_forms.php

示例2: License

     $displayArchiveInd = '';
 }
 //used to turn on/off display of specific child documents
 if (isset($_GET['showChildrenDocumentID'])) {
     $showChildrenDocumentID = $_GET['showChildrenDocumentID'];
 } else {
     $showChildrenDocumentID = '';
 }
 if ($showChildrenDocumentID == 'undefined') {
     $showChildrenDocumentID = '';
 }
 $license = new License(new NamedArguments(array('primaryKey' => $licenseID)));
 $document = new Document();
 //display archive not sent in for unarchived docs
 if ($displayArchiveInd == '') {
     $documentArray = $license->getDocumentsWithoutParents($parentOrderBy);
     $chJSFunction = "setChildOrder";
     $isArchive = 'N';
 } else {
     if ($displayArchiveInd == '1') {
         $documentArray = $license->getArchivedDocumentsWithoutParents($parentArchivedOrderBy);
         if (count($documentArray) > 0) {
             echo "<font style='font-size:110%;font-weight:bold;'>Archived Documents</font>  <i><a href='javascript:updateArchivedDocuments(2)'>hide archives</a></i>";
         }
         $chJSFunction = "setChildArchivedOrder";
         $childOrderBy = $childArchivedOrderBy;
         $isArchive = 'Y';
     } else {
         $documentArray = $license->getArchivedDocumentsWithoutParents($parentArchivedOrderBy);
         $jsFunction = "setParentArchivedOrder";
         $chJSFunction = "setChildArchivedOrder";
开发者ID:veggiematts,项目名称:coral-licensing,代码行数:31,代码来源:ajax_htmldata.php


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