本文整理汇总了PHP中AriKernel类的典型用法代码示例。如果您正苦于以下问题:PHP AriKernel类的具体用法?PHP AriKernel怎么用?PHP AriKernel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AriKernel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: replaceCallback
function replaceCallback($attrs, $content)
{
AriKernel::import('DocsViewer.DocsViewer');
$params = $this->getParams($attrs, $content);
$engine = AriUtils::getParam($attrs, 'engine', $this->_processParams->get('engine', 'iframe'));
$model = AriDocsViewerHelper::getModel($engine);
return $model ? $model->processContent($params, $content) : '';
}
开发者ID:enjoy2000,项目名称:smcd,代码行数:8,代码来源:aridocsviewer.php
示例2: getModel
function getModel($model, $prefix = 'DocsViewer')
{
$modelInstance = null;
$model = ucfirst(JFilterInput::clean($model, 'WORD'));
if (empty($model)) {
return $modelInstance;
} else {
$modelName = $prefix . $model . 'Model';
$modelPath = dirname(__FILE__) . DS . 'Models' . DS . 'class.' . $modelName . '.php';
if (!@file_exists($modelPath)) {
return $modelInstance;
} else {
AriKernel::import('DocsViewer.Models.' . $modelName);
$modelClass = 'Ari' . $modelName;
$modelInstance = new $modelClass();
}
}
return $modelInstance;
}
开发者ID:enjoy2000,项目名称:smcd,代码行数:19,代码来源:class.DocsViewer.php
示例3: import
function import($namespace)
{
$inst =& AriKernel::instance();
if (isset($inst->_loadedNamespace[$namespace])) {
return;
}
$part = explode('.', $namespace);
$lastPos = count($part) - 1;
$part[$lastPos] = 'class.' . $part[$lastPos] . '.php';
$pathList = $inst->_frameworkPathList;
$fileLocalPath = join('/', $part);
foreach ($pathList as $path) {
$filePath = $path . $fileLocalPath;
if (file_exists($filePath)) {
require_once $filePath;
$inst->_loadedNamespace[$namespace] = true;
break;
}
}
}
开发者ID:sansandeep143,项目名称:av,代码行数:20,代码来源:class.AriKernel.php
示例4: defined
<?php
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('Flickr.Flickr');
class AriFlickrProvider extends AriObject
{
var $_cacheDir;
var $_flickr;
var $_typeMapping = array(
'thumbnail' => 't',
'square' => 'sq',
'small' => 's',
'medium' => 'm',
'large' => 'l'
);
function __construct($params, $cacheDir = null, $ext = null)
{
if (is_null($cacheDir))
{
$cacheDir = JPATH_ROOT . DS . 'cache';
if (!is_null($ext))
{
$extCacheDir = $cacheDir . DS . $ext;
if (file_exists($extCacheDir) && is_dir($extCacheDir))
$cacheDir = $extCacheDir;
}
}
开发者ID:rkern21,项目名称:videoeditor,代码行数:30,代码来源:class.FlickrProvider.php
示例5: getLightboxEngine
function getLightboxEngine($params)
{
$engine = null;
$engineName = ucfirst(JFilterInput::clean($params->get('lightboxEngine'), 'WORD'));
if (empty($engineName)) {
return null;
}
AriKernel::import('CloudCarousel.Lightbox.' . $engineName);
$className = $engineName . 'CarouselEngine';
if (class_exists($className)) {
$engine = new $className();
if (!$engine->preCheck()) {
$engine = null;
}
}
return $engine;
}
开发者ID:abdullah929,项目名称:bulletin,代码行数:17,代码来源:class.CloudCarousel.php
示例6: defined
*
*/
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . '/includes/kernel/class.AriKernel.php';
AriKernel::import('Utils.Utils2');
AriKernel::import('Joomla.JoomlaUtils');
AriKernel::import('Document.DocumentHelper');
AriKernel::import('Template.Template');
AriKernel::import('SimpleTemplate.SimpleTemplate');
AriKernel::import('Web.HtmlHelper');
AriKernel::import('Web.JSON.JSONHelper');
AriKernel::import('Parameters.ParametersHelper');
AriKernel::import('SexyLightbox.SexyLightbox');
$params->set('key', 'arisexybox_mod_' . $module->id);
$params->set('checkSum', md5($module->params));
$groupName = $params->get('groupName');
$thumbQuality = intval($params->get('thumbQuality', 80), 10);
if (!defined('ASIDO_GD_JPEG_QUALITY'))
define('ASIDO_GD_JPEG_QUALITY', $thumbQuality);
if (empty($groupName)) $params->set('groupName', uniqid('asexy_'));
$autoShow = $params->get('autoShow');
$showOnClose = $params->get('showOnClose');
$mParams = AriParametersHelper::flatParametersToArray($params);
AriSexyLightboxHelper::includeAssets(
AriUtils2::parseValueBySample($params->get('includeJQuery'), true),
AriUtils2::parseValueBySample($params->get('noConflict'), true),
开发者ID:rkern21,项目名称:videoeditor,代码行数:31,代码来源:mod_arisexylightbox.php
示例7: getLightboxEngine
public static function getLightboxEngine($params)
{
$engine = null;
$filter = JFilterInput::getInstance();
$engineName = ucfirst($filter->clean($params->get('lightboxEngine'), 'WORD'));
if (empty($engineName)) {
return null;
}
AriKernel::import('ImageSlider.Lightbox.' . $engineName);
$className = $engineName . 'ImageSliderEngine';
if (class_exists($className)) {
$engine = new $className();
if (!$engine->preCheck()) {
$engine = null;
}
}
return $engine;
}
开发者ID:ashanrupasinghe,项目名称:dnp,代码行数:18,代码来源:class.ImageSlider.php
示例8: defined
<?php
/*
* ARI Framework Lite
*
* @package ARI Framework Lite
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('Core.Error');
class AriObject
{
var $_lastError = null;
var $_configProps = array();
function AriObject()
{
$args = func_get_args();
call_user_func_array(array(&$this, '__construct'), $args);
}
function __construct()
{
}
function _registerErrorHandler()
{
set_error_handler(array(&$this, 'errorHandler'));
}
function errorHandler($errNo, $errStr, $errFile, $errLine)
开发者ID:sansandeep143,项目名称:av,代码行数:31,代码来源:class.Object.php
示例9: defined
<?php
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('Picasa.Picasa');
class AriPicasaProvider extends AriObject
{
var $_cacheDir;
var $_picasa;
function __construct($params, $cacheDir = null, $ext = null)
{
if (is_null($cacheDir))
{
$cacheDir = JPATH_ROOT . DS . 'cache';
if (!is_null($ext))
{
$extCacheDir = $cacheDir . DS . $ext;
if (file_exists($extCacheDir) && is_dir($extCacheDir))
$cacheDir = $extCacheDir;
}
}
$this->_cacheDir = $cacheDir;
$cachePeriod = @intval($params['cachePeriod'], 10);
$picasa = new AriPicasa();
if ($cachePeriod > 0 && $this->_cacheDir)
$picasa->enableCache($this->_cacheDir, $cachePeriod);
开发者ID:rkern21,项目名称:videoeditor,代码行数:30,代码来源:class.PicasaProvider.php
示例10: defined
<?php
/*
* ARI Framework Lite
*
* @package ARI Framework Lite
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
if (!class_exists('Asido')) {
AriKernel::import('Image.Asido.asido');
}
class AriAsidoHelper extends AriObject
{
function init($preferDrivers = array('gd', 'imagick2', 'imagick', 'magickwand'))
{
$alias = array('imagick2' => 'imagick2_ext', 'imagick' => 'imagick_ext', 'magickwand' => 'magick_wand');
reset($preferDrivers);
foreach ($preferDrivers as $driver) {
if (AriAsidoHelper::isExtensionLoaded(array($driver))) {
if (array_key_exists($driver, $alias)) {
$driver = $alias[$driver];
}
asido::driver($driver);
return true;
}
}
开发者ID:sansandeep143,项目名称:av,代码行数:31,代码来源:class.AsidoHelper.php
示例11: defined
/*
* ARI Sexy Lightbox
*
* @package ARI Sexy Lightbox
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2010 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('Module.Providers.PicasaProvider');
AriKernel::import('Module.Lightbox.Models.GalleryModel');
AriKernel::import('SexyLightbox.Models.Templates.SimpleGalleryTemplate');
class AriSexyLightboxPicasaModel extends AriGalleryModel
{
var $_prefix = 'AriSexyLightbox';
function execute($modelParams, $params, $templatePath)
{
if (!$this->checkCompatibility())
return ;
$picasaProvider = new AriPicasaProvider($modelParams, null, 'mod_arisexylightbox');
if ($modelParams['type'] == 'customtext')
{
$cId = uniqid('asb_', false);
开发者ID:rkern21,项目名称:videoeditor,代码行数:31,代码来源:class.SexyLightboxPicasaModel.php
示例12: defined
<?php
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('SimpleTemplate.Filters.Truncate');
AriKernel::import('SimpleTemplate.Filters.HtmlTruncate');
AriKernel::import('SimpleTemplate.Filters.RestoreTags');
AriKernel::import('SimpleTemplate.Filters.StripTags');
AriKernel::import('SimpleTemplate.Filters.UpperCase');
AriKernel::import('SimpleTemplate.Filters.LowerCase');
AriKernel::import('SimpleTemplate.Filters.Empty');
?>
开发者ID:rkern21,项目名称:videoeditor,代码行数:11,代码来源:class.LoadAll.php
示例13: defined
<?php
/*
* ARI Framework Lite
*
* @package ARI Framework Lite
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
if (!class_exists('Asido')) AriKernel::import('Image.Asido.asido');
class AriAsidoHelper extends AriObject
{
function init($preferDrivers = array('gd', 'imagick2', 'imagick', 'magickwand'))
{
$alias = array('imagick2' => 'imagick2_ext', 'imagick' => 'imagick_ext', 'magickwand' => 'magick_wand');
reset($preferDrivers);
foreach ($preferDrivers as $driver)
{
if (AriAsidoHelper::isExtensionLoaded(array($driver)))
{
if (array_key_exists($driver, $alias)) $driver = $alias[$driver];
asido::driver($driver);
开发者ID:rkern21,项目名称:videoeditor,代码行数:31,代码来源:class.AsidoHelper.php
示例14: defined
<?php
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('Image.ImageHelper');
AriKernel::import('CSV.CSVParser');
AriKernel::import('SimpleTemplate.SimpleTemplate');
AriKernel::import('Utils.AppUtils');
jimport('joomla.filesystem.path');
jimport('joomla.filesystem.folder');
class AriThumbnailProvider extends AriObject
{
var $_prefix;
var $_cacheDir;
function __construct($prefix = 'arithumb', $cacheDir = null, $ext = null)
{
if (is_null($cacheDir))
{
$cacheDir = JPATH_ROOT . DS . 'cache';
if (!is_null($ext))
{
$extCacheDir = $cacheDir . DS . $ext;
if (file_exists($extCacheDir) && is_dir($extCacheDir))
$cacheDir = $extCacheDir;
}
}
$this->_prefix = $prefix;
开发者ID:rkern21,项目名称:videoeditor,代码行数:31,代码来源:class.ThumbnailProvider.php
示例15: defined
<?php
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('SimpleTemplate.Filters.FilterBase');
AriKernel::import('Text.Text');
class AriSimpleTemplateHtmlTruncateFilter extends AriSimpleTemplateFilterBase
{
function getFilterName()
{
return 'html_truncate';
}
function parse($string, $length = null, $addstring = '...')
{
$length = @intval($length, 10);
if ($length < 1 || empty($string) || strlen($string) <= $length)
return $string;
if (empty($addstring)) $addstring = '';
$isText = true;
$ret = '';
$i = 0;
$currentChar = '';
$lastSpacePosition = -1;
$lastChar = '';
$tagsArray = array();
$currentTag = '';
开发者ID:rkern21,项目名称:videoeditor,代码行数:31,代码来源:class.HtmlTruncate.php
示例16: defined
<?php
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
$id = uniqid('asg_', false);
$repeater = $params['repeater'];
$modParams = $params['params'];
$slickGalleryPath = JPATH_ROOT . DS . 'modules' . DS . 'mod_arislickgallery' . DS . 'mod_arislickgallery' . DS . 'kernel' . DS . 'class.AriKernel.php';
require_once $slickGalleryPath;
AriKernel::import('SlickGallery.SlickGallery');
$sgParams = new JParameter('');
$sgParams->def('includeJQuery', '0');
$sgParams->def('width', intval($modParams['width'], 10));
$sgParams->def('height', intval($modParams['height'], 10));
$showTitle = (bool)AriUtils::getParam($modParams, 'showTitle', true);
if (!$showTitle)
{
$cssStyles = '#' . $id . ' .arislickgallery-title{text-indent:-9999em}';
$document =& JFactory::getDocument();
$document->addStyleDeclaration($cssStyles);
}
AriSlickGalleryHelper::initGallery($id, $sgParams);
?>
<div class="ari-slick-gallery" id="<?php echo $id; ?>">
开发者ID:rkern21,项目名称:videoeditor,代码行数:31,代码来源:slickgallery.html.php
示例17: defined
<?php
/*
* ARI Sexy Lightbox
*
* @package ARI Sexy Lightbox
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2010 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('ARI_FRAMEWORK_LOADED') or die('Direct Access to this location is not allowed.');
AriKernel::import('Module.Model');
class AriSexyLightboxModel extends AriModuleModelBase
{
var $_prefix = 'AriSexyLightbox';
}
?>
开发者ID:rkern21,项目名称:videoeditor,代码行数:21,代码来源:class.SexyLightboxModel.php
示例18: defined
* @package ARI Image Slider Joomla! module.
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2010 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('_JEXEC') or die('Restricted access');
if (version_compare(PHP_VERSION, '5.3.0') >= 0)
{
$error_reporting = ini_get('error_reporting');
$error_reporting &= ~E_STRICT;
error_reporting($error_reporting);
}
require_once dirname(__FILE__) . '/mod_ariimageslider/kernel/class.AriKernel.php';
AriKernel::import('ImageSlider.ImageSlider');
AriKernel::import('Web.HtmlHelper');
$sliderId = 'ais_' . $module->id;//uniqid('ais_', false);
AriImageSliderHelper::initSlider($sliderId, $params);
$slides = AriImageSliderHelper::prepareSlides(
AriImageSliderHelper::getSlides($params),
$params);
require JModuleHelper::getLayoutPath('mod_ariimageslider');
?>
开发者ID:xenten,项目名称:swift-kanban,代码行数:31,代码来源:mod_ariimageslider.php
示例19: defined
<?php
/*
* ARI Framework Lite
*
* @package ARI Framework Lite
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . '/../kernel/class.AriKernel.php';
AriKernel::import('Xml.XmlHelper');
jimport('joomla.html.html');
jimport('joomla.form.formfield');
class JFormFieldAriheader extends JFormField
{
protected $type = 'Ariheader';
function getInput()
{
$this->_includeAssets();
return $this->fetchElement($this->element['name'], $this->value, $this->element, $this->name);
}
function fetchElement($name, $value, &$node, $control_name)
{
$options = array(JText::_($value));
foreach ($node->children() as $option) {
$options[] = AriXmlHelper::getData($option);
}
开发者ID:ashanrupasinghe,项目名称:dnp,代码行数:31,代码来源:ariheader.php
示例20: defined
/*
* ARI Ext menu Joomla! module
*
* @package ARI Ext Menu Joomla! module.
* @version 1.0.0
* @author ARI Soft
* @copyright Copyright (c) 2009 www.ari-soft.com. All rights reserved
* @license GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
*
*/
defined('_JEXEC') or die('Restricted access');
require_once dirname(__FILE__) . '/mod_ariextmenu/kernel/class.AriKernel.php';
AriKernel::import('Utils.Utils');
AriKernel::import('Menu.Menu');
AriKernel::import('Web.HtmlHelper');
AriKernel::import('ExtMenu.ExtMenu');
AriKernel::import('Template.Template');
$menu = new AriMenu($params->get('menutype', 'mainmenu'));
$menuLevel = $menuStartLevel = intval($params->get('startLevel', 0), 10);
$menuEndLevel = intval($params->get('endLevel', 0), 10);
$uniqueId = (bool) $params->get('uniqId', false);
$activeMenuItem = $menu->getActive();
// Template parameters
$menuDirection = $params->get('direction');
$menuId = !$uniqueId ? 'ariext' . $module->id : uniqid('aext', false);
$hlCurrentItem = (bool) $params->get('highlightCurrent', true) && !is_null($activeMenuItem);
$hlOnlyActiveItems = (bool) $params->get('onlyActiveItems', false);
$activeTopId = $activeMenuItem ? $activeMenuItem->id : 0;
AriExtMenuHelper::initMenu($menuId, $params);
require JModuleHelper::getLayoutPath('mod_ariextmenu');
开发者ID:emisdb,项目名称:elyii,代码行数:30,代码来源:mod_ariextmenu.php
注:本文中的AriKernel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论