| Server IP : 10.10.92.66 / Your IP : 104.23.197.231 Web Server : Apache/2.4.52 (Ubuntu) System : Linux jurnalpolinema 5.15.0-177-generic #187-Ubuntu SMP Sat Apr 11 22:54:33 UTC 2026 x86_64 User : jurnal ( 1001) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/jurnal/public_html/plugins/generic/usageStats/ |
Upload File : |
<?php
/**
* @file plugins/generic/usageStats/UsageStatsOptoutBlockPlugin.inc.php
*
* Copyright (c) 2013-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class UsageStatsOptoutBlockPlugin
* @ingroup plugins_generic_usageStats
*
* @brief Opt-out component.
*/
import('lib.pkp.classes.plugins.BlockPlugin');
class UsageStatsOptoutBlockPlugin extends BlockPlugin {
/** @var UsageStatsPlugin */
protected $_usageStatsPlugin;
/**
* Constructor
* @param $usageStatsPlugin UsageStatsPlugin
*/
function __construct($usageStatsPlugin) {
$this->_usageStatsPlugin = $usageStatsPlugin;
parent::__construct();
}
/**
* @copydoc Plugin::getHideManagement()
*/
function getHideManagement() {
return true;
}
/**
* @copydoc Plugin::getName()
*/
function getName() {
return 'UsageStatsOptoutBlockPlugin';
}
/**
* @copydoc Plugin::getDisplayName()
*/
function getDisplayName() {
return __('plugins.generic.usageStats.optout.displayName');
}
/**
* @copydoc Plugin::getDescription()
*/
function getDescription() {
return __('plugins.generic.usageStats.optout.description');
}
/**
* @copydoc Plugin::isSitePlugin()
*/
function isSitePlugin() {
return false;
}
/**
* @copydoc Plugin::getPluginPath()
*/
public function getPluginPath() {
return $this->_usageStatsPlugin->getPluginPath();
}
/**
* @copydoc BlockPlugin::getEnabled()
*/
function getEnabled($contextId = null) {
return $this->_usageStatsPlugin->getEnabled($contextId);
}
/**
* @copydoc BlockPlugin::getContents()
*/
function getContents($templateMgr, $request = null) {
return $templateMgr->fetch($this->getTemplateResource($this->getBlockTemplateFilename()));
}
/**
* copydoc BlockPlugin::getBlockTemplateFilename()
*/
function getBlockTemplateFilename() {
// Return the opt-out template.
return 'optoutBlock.tpl';
}
}