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


PHP JSessionStorage::__construct方法代码示例

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


在下文中一共展示了JSessionStorage::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 /**
  * Constructor
  *
  * @access protected
  * @param array $options optional parameters
  */
 function __construct($options = array())
 {
     if (!$this->test()) {
         return JError::raiseError(404, "The apc extension is not available");
     }
     parent::__construct($options);
 }
开发者ID:Fellah,项目名称:govnobaki,代码行数:13,代码来源:apc.php

示例2: __construct

 /**
  * Constructor
  *
  * @param   array  $options  Optional parameters.
  *
  * @since   11.1
  */
 public function __construct($options = array())
 {
     if (!$this->test()) {
         return JError::raiseError(404, JText::_('JLIB_SESSION_EACCELERATOR_EXTENSION_NOT_AVAILABLE'));
     }
     parent::__construct($options);
 }
开发者ID:joomline,项目名称:Joomla2.5.999,代码行数:14,代码来源:eaccelerator.php

示例3: __construct

 /**
  * Constructor
  *
  * @param   array  $options  Optional parameters.
  *
  * @since   11.1
  * @throws  RuntimeException
  */
 public function __construct($options = array())
 {
     if (!self::isSupported()) {
         throw new RuntimeException('Wincache Extension is not available', 404);
     }
     parent::__construct($options);
 }
开发者ID:01J,项目名称:topm,代码行数:15,代码来源:wincache.php

示例4: __construct

	/**
	 * Constructor
	 *
	 * @param   array  $options  Optional parameters.
	 *
	 * @return  JSessionStorageMemcache
	 *
	 * @since   11.1
	 */
	public function __construct($options = array())
	{
		if (!$this->test())
		{
			return JError::raiseError(404, JText::_('JLIB_SESSION_MEMCACHE_EXTENSION_NOT_AVAILABLE'));
		}

		parent::__construct($options);

		$config = JFactory::getConfig();
		$params = $config->get('memcache_settings');
		if (!is_array($params))
		{
			$params = unserialize(stripslashes($params));
		}

		if (!$params)
		{
			$params = array();
		}

		$this->_compress = (isset($params['compression'])) ? $params['compression'] : 0;
		$this->_persistent = (isset($params['persistent'])) ? $params['persistent'] : false;

		// This will be an array of loveliness
		$this->_servers = (isset($params['servers'])) ? $params['servers'] : array();
	}
开发者ID:nikosdion,项目名称:Akeeba-Example,代码行数:36,代码来源:memcache.php

示例5: __construct

 /**
  * Constructor
  *
  * @param array $options Optional parameters.
  *
  * @since   11.1
  * @throws RuntimeException
  */
 public function __construct($options = array())
 {
     if (!self::isSupported()) {
         throw new RuntimeException('Memcache Extension is not available', 404);
     }
     parent::__construct($options);
     $config = JFactory::getConfig();
     // This will be an array of loveliness
     // @todo: multiple servers
     $this->_servers = array(array('host' => $config->get('memcache_server_host', 'localhost'), 'port' => $config->get('memcache_server_port', 11211)));
 }
开发者ID:houzhenggang,项目名称:cobalt,代码行数:19,代码来源:memcache.php

示例6: __construct

 /**
  * Constructor
  *
  * @param   array  $options  Optional parameters.
  *
  * @since   11.1
  */
 public function __construct($options = array())
 {
     if (!$this->test()) {
         return JError::raiseError(404, JText::_('JLIB_SESSION_MEMCACHE_EXTENSION_NOT_AVAILABLE'));
     }
     parent::__construct($options);
     $config = JFactory::getConfig();
     $this->_compress = $config->get('memcache_compress', false) ? Memcached::OPT_COMPRESSION : false;
     $this->_persistent = $config->get('memcache_persist', true);
     // This will be an array of loveliness
     // @todo: multiple servers
     $this->_servers = array(array('host' => $config->get('memcache_server_host', 'localhost'), 'port' => $config->get('memcache_server_port', 11211)));
 }
开发者ID:Roma48,项目名称:abazherka_old,代码行数:20,代码来源:memcached.php

示例7: __construct

 /**
  * Overload Constructor to do additional check
  * 
  * @param array $options [description]
  */
 public function __construct($options = array())
 {
     // run test
     if (!$this->test()) {
         return JError::raiseError(404, JText::_('JLIB_SESSION_REDIS_EXTENSION_NOT_AVAILABLE'));
     }
     // get site config
     $config = JFactory::getConfig();
     // get redis key prefixes
     $prefixes = $config->get('redis_key_prefix', array());
     // set session key
     $this->prefix = isset($prefixes['session']) ? $prefixes['session'] : 'session:';
     // parent construct
     parent::__construct($options);
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:20,代码来源:redis.php

示例8: array

 /**
  * Constructor
  *
  * @access protected
  * @param array $options optional parameters
  */
 function __construct($options = array())
 {
     if (!$this->test()) {
         return JError::raiseError(404, "The memcache extension isn't available");
     }
     parent::__construct($options);
     $config =& JFactory::getConfig();
     $params = $config->getValue('config.memcache_settings');
     if (!is_array($params)) {
         $params = unserialize(stripslashes($params));
     }
     if (!$params) {
         $params = array();
     }
     $this->_compress = isset($params['compression']) ? $params['compression'] : 0;
     $this->_persistent = isset($params['persistent']) ? $params['persistent'] : false;
     // This will be an array of loveliness
     $this->_servers = isset($params['servers']) ? $params['servers'] : array();
 }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:25,代码来源:memcache.php


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