当前位置: 首页>>代码示例>>PHP>>正文


PHP AriKernel::import方法代码示例

本文整理汇总了PHP中AriKernel::import方法的典型用法代码示例。如果您正苦于以下问题:PHP AriKernel::import方法的具体用法?PHP AriKernel::import怎么用?PHP AriKernel::import使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AriKernel的用法示例。


在下文中一共展示了AriKernel::import方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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

示例4: 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

示例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

<?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

示例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.');
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

示例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
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

示例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('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

示例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('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

示例15: 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


注:本文中的AriKernel::import方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。