本文整理汇总了PHP中Komento::getACL方法的典型用法代码示例。如果您正苦于以下问题:PHP Komento::getACL方法的具体用法?PHP Komento::getACL怎么用?PHP Komento::getACL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Komento
的用法示例。
在下文中一共展示了Komento::getACL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
$konfig = Komento::getKonfig();
$config = Komento::getConfig();
// @legacy: If environment is set to production, change to static.
$environment = $konfig->get('komento_environment');
if ($environment=='production') {
$environment='static';
}
$this->fullName = 'Komento';
$this->shortName = 'kmt';
$this->environment = $environment;
$this->mode = $konfig->get('komento_mode');
$this->version = (string) Komento::getHelper( 'Version' )->getLocalVersion();
$this->baseUrl = Komento::getHelper( 'Document' )->getBaseUrl();
$this->token = Komento::_( 'getToken' );
$newConfig = clone $config->toObject();
$newKonfig = clone $konfig->toObject();
unset( $newConfig->antispam_recaptcha_private_key );
unset( $newConfig->antispam_recaptcha_public_key );
unset( $newConfig->antispam_akismet_key );
unset( $newConfig->layout_phpbb_path );
unset( $newConfig->layout_phpbb_url );
unset( $newKonfig->layout_phpbb_path );
unset( $newKonfig->layout_phpbb_url );
$this->options = array(
"responsive" => (bool) $config->get('enable_responsive'),
"jversion" => Komento::joomlaVersion(),
"spinner" => JURI::root() . 'media/com_komento/images/loader.gif',
"view" => JRequest::getString( 'view', '' ),
"guest" => Komento::getProfile()->guest ? 1 : 0,
"config" => $newConfig,
"konfig" => $newKonfig,
"acl" => Komento::getACL(),
"element" => new stdClass()
);
parent::__construct();
}