本文整理汇总了PHP中KLoader::loadIdentifier方法的典型用法代码示例。如果您正苦于以下问题:PHP KLoader::loadIdentifier方法的具体用法?PHP KLoader::loadIdentifier怎么用?PHP KLoader::loadIdentifier使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KLoader
的用法示例。
在下文中一共展示了KLoader::loadIdentifier方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct($dispatcher, $config = array())
{
// Avoid fatal errors due to component downgrade.
// TODO: Remove when downgrades get disallowed on installers.
if (version_compare($this->_getLogmanVersion(), '1.0.0RC4', '>=')) {
$identifiers = array(
'com://admin/logman.plugin.interface',
'com://admin/logman.plugin.injector',
'com://admin/logman.plugin.abstract',
'com://admin/logman.plugin.context',
'com://admin/logman.plugin.content');
// Load LOGman base plugin classes.
foreach ($identifiers as $identifier) {
if (!$loaded = KLoader::loadIdentifier($identifier)) {
break;
}
}
// Load LOGman plugin group.
if ($loaded) {
JPluginHelper::importPlugin('logman');
}
}
parent::__construct($dispatcher, $config);
}
示例2:
<?php
/**
* @version $Id$
* @category Nooku
* @package Nooku_Server
* @subpackage Banners
* @copyright Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net).
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.nooku.org
*/
/**
* Component Loader
*
* @author Cristiano Cucco <http://nooku.assembla.com/profile/cristiano.cucco>
* @category Nooku
* @package Nooku_Server
* @subpackage Banners
*/
KLoader::loadIdentifier('com://site/banners.aliases');
echo KService::get('com://site/banners.dispatcher')->dispatch();
示例3:
<?php
/**
* @version $Id: weblinks.php 3024 2011-10-09 01:44:30Z johanjanssens $
* @category Nooku
* @package Nooku_Server
* @subpackage Weblinks
* @copyright Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.nooku.org
*/
/**
* Component Loader
*
* @author Jeremy Wilken <http://nooku.assembla.com/profile/gnomeontherun>
* @category Nooku
* @package Nooku_Server
* @subpackage Weblinks
*/
KLoader::loadIdentifier('com://site/weblinks.aliases');
echo KService::get('com://site/weblinks.dispatcher')->dispatch();
示例4:
<?php
KLoader::loadIdentifier('com://site/attachments.aliases');
echo KService::get('com://site/attachments.dispatcher')->dispatch();
示例5: defined
<?php
/**
* @category FILEman
* @copyright Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net)
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.joomlatools.eu
*/
defined('_JEXEC') or die;
if (!class_exists('Koowa')) {
return '';
}
KLoader::loadIdentifier('com://site/fileman.aliases');
$jlang = JFactory::getLanguage();
$jlang->load('com_fileman', JPATH_COMPONENT, 'en-GB', true);
$jlang->load('com_fileman', JPATH_COMPONENT, $jlang->getDefault(), true);
$jlang->load('com_fileman', JPATH_COMPONENT, null, true);
echo KService::get('com://site/fileman.dispatcher')->dispatch();
示例6: defined
<?php
/**
* @version $Id: portfolio.php 51 2011-11-07 12:50:48Z richie $
* @category Portfolio
* @copyright 2011 Wintersett. All rights reserved.
* @license http://www.gnu.org/licenses/gpl.html
* @link http://wintersettmedia.co.uk
*/
defined('_JEXEC') or die('Restricted access');
KLoader::loadIdentifier('com://site/portfolio.mappings');
JHtml::_('behavior.mootools');
echo KService::get('com://site/portfolio.dispatcher')->dispatch();