本文整理汇总了PHP中CitationPlugin类的典型用法代码示例。如果您正苦于以下问题:PHP CitationPlugin类的具体用法?PHP CitationPlugin怎么用?PHP CitationPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CitationPlugin类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: register
function register($category, $path)
{
$success = parent::register($category, $path);
$this->addLocaleData();
$templateMgr =& TemplateManager::getManager();
$templateMgr->register_modifier('bibtex_escape', array(&$this, 'bibtexEscape'));
return $success;
}
开发者ID:ingmarschuster,项目名称:MindResearchRepository,代码行数:8,代码来源:BibtexCitationPlugin.inc.php
示例2: register
function register($category, $path)
{
$success = parent::register($category, $path);
$this->addLocaleData();
return $success;
}
开发者ID:mariojp,项目名称:ojs,代码行数:6,代码来源:CbeCitationPlugin.inc.php
示例3: displayCitation
/**
* Display a custom-formatted citation.
* @param $paper object
* @param $conference object
* @param $schedConf object
*/
function displayCitation(&$paper, $conference, $schedConf)
{
header('Content-Disposition: attachment; filename="' . $paper->getId() . '-proCite.ris"');
header('Content-Type: application/x-Research-Info-Systems');
echo parent::fetchCitation($paper, $conference, $schedConf);
}
开发者ID:jmacgreg,项目名称:ocs,代码行数:12,代码来源:ProCiteCitationPlugin.inc.php
示例4: displayCitation
/**
* Display a custom-formatted citation.
* @param $article object
* @param $issue object
* @param $journal object
*/
function displayCitation(&$article, &$issue, &$journal)
{
header('Content-Disposition: attachment; filename="' . $article->getId() . '-proCite.ris"');
header('Content-Type: application/x-Research-Info-Systems');
echo parent::fetchCitation($article, $issue, $journal);
}
开发者ID:reconciler,项目名称:ojs,代码行数:12,代码来源:ProCiteCitationPlugin.inc.php
示例5: fetchCitation
/**
* Return an HTML-formatted citation. Default implementation displays
* an HTML-based citation using the citation.tpl template in the plugin
* path.
* @param $article object
* @param $issue object
*/
function fetchCitation($article, $issue, $journal)
{
$templateMgr = TemplateManager::getManager($this->getRequest());
$templateMgr->register_modifier('bibtex_escape', array($this, 'bibtexEscape'));
return parent::fetchCitation($article, $issue, $journal);
}
开发者ID:mariojp,项目名称:ojs,代码行数:13,代码来源:BibtexCitationPlugin.inc.php
示例6: displayCitation
/**
* Return a custom-formatted citation.
* @param $article object
* @param $issue object
* @param $journal object
*/
function displayCitation(&$article, &$issue, &$journal)
{
header('Content-Disposition: attachment; filename="' . $article->getId() . '-endNote.enw"');
header('Content-Type: application/x-endnote-refer');
echo parent::fetchCitation($article, $issue, $journal);
}
开发者ID:master3395,项目名称:CBPPlatform,代码行数:12,代码来源:EndNoteCitationPlugin.inc.php
示例7: downloadCitation
/**
* Return an HTML-formatted citation. Default implementation displays
* an HTML-based citation using the citation.tpl template in the plugin
* path.
* @param $article Article
* @param $issue Issue
* @param $journal Journal
*/
function downloadCitation($article, $issue, $journal)
{
$output = parent::fetchCitation($article, $issue, $journal);
$this->setHeaders($article, $issue, $journal);
echo $output;
}
开发者ID:bkroll,项目名称:ojs,代码行数:14,代码来源:DownloadableCitationPlugin.inc.php
示例8: manage
/**
* Execute a management verb on this plugin
* @param $verb string
* @param $args array
* @param $message string If a message is returned from this by-ref
* argument then it will be displayed as a notification if (and only
* if) the method returns false.
* @return boolean will redirect to the plugin category page if false,
* otherwise will remain on the same page
*/
function manage($verb, $args, &$message)
{
switch ($verb) {
case 'settings':
$templateMgr =& TemplateManager::getManager();
$templateMgr->register_function('plugin_url', array(&$this, 'smartyPluginUrl'));
$journal =& Request::getJournal();
$this->import('AbntSettingsForm');
$form = new AbntSettingsForm($this, $journal->getId());
if (Request::getUserVar('save')) {
$form->readInputData();
if ($form->validate()) {
$form->execute();
Request::redirect(null, 'manager', 'plugin');
return false;
} else {
$this->setBreadCrumbs(true);
$form->display();
}
} else {
$this->setBreadCrumbs(true);
if ($form->isLocaleResubmit()) {
$form->readInputData();
} else {
$form->initData();
}
$form->display();
}
return true;
default:
// Unknown management verb, delegate to parent
return parent::manage($verb, $args, $message);
}
}
开发者ID:jasonzou,项目名称:OJS-2.4.6,代码行数:44,代码来源:AbntCitationPlugin.inc.php
示例9: displayCitation
/**
* Display a custom-formatted citation.
* @param $paper object
* @param $conference object
* @param $schedConf object
*/
function displayCitation(&$paper, &$conference, &$schedConf)
{
header('Content-Disposition: attachment; filename="' . $paper->getId() . '-endNote.enw"');
header('Content-Type: application/x-endnote-refer');
echo parent::fetchCitation($paper, $conference, $schedConf);
}
开发者ID:artkuo,项目名称:ocs,代码行数:12,代码来源:EndNoteCitationPlugin.inc.php
注:本文中的CitationPlugin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论