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


PHP PHPExcel_CachedObjectStorage_CacheBase::isDataSet方法代码示例

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


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

示例1: getCacheData

 /**
  * Get cell at a specific coordinate
  *
  * @param 	string 			$pCoord		Coordinate of the cell
  * @throws 	PHPExcel_Exception
  * @return 	PHPExcel_Cell 	Cell that was found, or null if not found
  */
 public function getCacheData($pCoord)
 {
     if ($pCoord === $this->_currentObjectID) {
         return $this->_currentObject;
     }
     $this->_storeData();
     //	Check if the entry that has been requested actually exists
     if (parent::isDataSet($pCoord)) {
         $obj = $this->_memcache->get($this->_cachePrefix . $pCoord . '.cache');
         if ($obj === false) {
             //	Entry no longer exists in Memcache, so clear it from the cache array
             parent::deleteCacheData($pCoord);
             throw new PHPExcel_Exception('Cell entry ' . $pCoord . ' no longer exists in MemCache');
         }
     } else {
         //	Return null if requested entry doesn't exist in cache
         return null;
     }
     //	Set current entry to the requested entry
     $this->_currentObjectID = $pCoord;
     $this->_currentObject = unserialize($obj);
     //    Re-attach this as the cell's parent
     $this->_currentObject->attach($this);
     //	Return requested entry
     return $this->_currentObject;
 }
开发者ID:arjunkumar786,项目名称:faces,代码行数:33,代码来源:Memcache.php

示例2: getCacheData

 /**
  * Get cell at a specific coordinate
  *
  * @param	string			$pCoord		Coordinate of the cell
  * @throws	Exception
  * @return	PHPExcel_Cell	Cell that was found, or null if not found
  */
 public function getCacheData($pCoord)
 {
     if ($pCoord === $this->_currentObjectID) {
         return $this->_currentObject;
     }
     $this->_storeData();
     //	Check if the entry that has been requested actually exists
     $obj = null;
     if (parent::isDataSet($pCoord)) {
         $success = false;
         $obj = wincache_ucache_get($this->_cachePrefix . $pCoord . '.cache', $success);
         if ($success === false) {
             //	Entry no longer exists in WinCache, so clear it from the cache array
             parent::deleteCacheData($pCoord);
             throw new Exception('Cell entry ' . $cellID . ' no longer exists in WinCache');
         }
     } else {
         //	Return null if requested entry doesn't exist in cache
         return null;
     }
     //	Set current entry to the requested entry
     $this->_currentObjectID = $pCoord;
     $this->_currentObject = unserialize($obj);
     //	Re-attach the parent worksheet
     $this->_currentObject->attach($this->_parent);
     //	Return requested entry
     return $this->_currentObject;
 }
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:35,代码来源:Wincache.php


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