當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ImportExportPlugin::getDepositStatusSettingName方法代碼示例

本文整理匯總了PHP中ImportExportPlugin::getDepositStatusSettingName方法的典型用法代碼示例。如果您正苦於以下問題:PHP ImportExportPlugin::getDepositStatusSettingName方法的具體用法?PHP ImportExportPlugin::getDepositStatusSettingName怎麽用?PHP ImportExportPlugin::getDepositStatusSettingName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ImportExportPlugin的用法示例。


在下文中一共展示了ImportExportPlugin::getDepositStatusSettingName方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getTemplateVarsFromRowColumn

 /**
  * Extracts variables for a given column from a data element
  * so that they may be assigned to template before rendering.
  *
  * @copydoc DataObjectGridCellProvider::getTemplateVarsFromRowColumn()
  */
 function getTemplateVarsFromRowColumn($row, $column)
 {
     $publishedIssue = $row->getData();
     $columnId = $column->getId();
     assert(is_a($publishedIssue, 'Issue') && !empty($columnId));
     switch ($columnId) {
         case 'identification':
             return array('label' => '');
         case 'published':
             return array('label' => $publishedIssue->getDatePublished());
         case 'pubId':
             return array('label' => $publishedIssue->getStoredPubId($this->_plugin->getPubIdType()));
         case 'status':
             $status = $publishedIssue->getData($this->_plugin->getDepositStatusSettingName());
             $statusNames = $this->_plugin->getStatusNames();
             $statusActions = $this->_plugin->getStatusActions($publishedIssue);
             if ($status) {
                 if (array_key_exists($status, $statusActions)) {
                     $label = '';
                 } else {
                     assert(array_key_exists($status, $statusNames));
                     $label = $statusNames[$status];
                 }
             } else {
                 $label = $statusNames[DOI_EXPORT_STATUS_NOT_DEPOSITED];
             }
             return array('label' => $label);
     }
 }
開發者ID:bkroll,項目名稱:ojs,代碼行數:35,代碼來源:PubIdExportIssuesListGridCellProvider.inc.php

示例2: getTemplateVarsFromRowColumn

 /**
  * Extracts variables for a given column from a data element
  * so that they may be assigned to template before rendering.
  *
  * @copydoc DataObjectGridCellProvider::getTemplateVarsFromRowColumn()
  */
 function getTemplateVarsFromRowColumn($row, $column)
 {
     $publishedSubmissionGalley = $row->getData();
     $columnId = $column->getId();
     assert(is_a($publishedSubmissionGalley, 'ArticleGAlley') && !empty($columnId));
     switch ($columnId) {
         case 'id':
             return array('label' => $publishedSubmissionGalley->getId());
         case 'title':
             return array('label' => '');
         case 'issue':
             return array('label' => '');
         case 'galley':
             return array('label' => $publishedSubmissionGalley->getGalleyLabel());
         case 'pubId':
             return array('label' => $publishedSubmissionGalley->getStoredPubId($this->_plugin->getPubIdType()));
         case 'status':
             $status = $publishedSubmissionGalley->getData($this->_plugin->getDepositStatusSettingName());
             $statusNames = $this->_plugin->getStatusNames();
             $statusActions = $this->_plugin->getStatusActions($publishedSubmissionGalley);
             if ($status) {
                 if (array_key_exists($status, $statusActions)) {
                     $label = '';
                 } else {
                     assert(array_key_exists($status, $statusNames));
                     $label = $statusNames[$status];
                 }
             } else {
                 $label = $statusNames[DOI_EXPORT_STATUS_NOT_DEPOSITED];
             }
             return array('label' => $label);
     }
 }
開發者ID:bkroll,項目名稱:ojs,代碼行數:39,代碼來源:PubIdExportRepresentationsListGridCellProvider.inc.php

示例3: loadData

 /**
  * @copydoc GridHandler::loadData()
  */
 protected function loadData($request, $filter)
 {
     $context = $request->getContext();
     list($statusId) = $this->getFilterValues($filter);
     $pubIdStatusSettingName = null;
     if ($statusId) {
         $pubIdStatusSettingName = $this->_plugin->getDepositStatusSettingName();
     }
     $issueDao = DAORegistry::getDAO('IssueDAO');
     return $issueDao->getByPubIdType($this->_plugin->getPubIdType(), $context ? $context->getId() : null, $pubIdStatusSettingName, $statusId, $this->getGridRangeInfo($request, $this->getId()));
 }
開發者ID:bkroll,項目名稱:ojs,代碼行數:14,代碼來源:PubIdExportIssuesListGridHandler.inc.php

示例4: loadData

 /**
  * @copydoc GridHandler::loadData()
  */
 protected function loadData($request, $filter)
 {
     $publishedArticleDao = DAORegistry::getDAO('PublishedArticleDAO');
     $context = $request->getContext();
     list($search, $column, $issueId, $statusId) = $this->getFilterValues($filter);
     $title = $author = null;
     if ($column == 'title') {
         $title = $search;
     } elseif ($column == 'author') {
         $author = $search;
     }
     $pubIdStatusSettingName = null;
     if ($statusId) {
         $pubIdStatusSettingName = $this->_plugin->getDepositStatusSettingName();
     }
     return $publishedArticleDao->getExportable($context->getId(), null, $title, $author, $issueId, $pubIdStatusSettingName, $statusId, $this->getGridRangeInfo($request, $this->getId()));
 }
開發者ID:pkp,項目名稱:ojs,代碼行數:20,代碼來源:ExportPublishedSubmissionsListGridHandler.inc.php


注:本文中的ImportExportPlugin::getDepositStatusSettingName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。