ICache.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. interface PHPExcel_CachedObjectStorage_ICache
  8. {
  9. /**
  10. * Add or Update a cell in cache identified by coordinate address
  11. *
  12. * @param string $pCoord Coordinate address of the cell to update
  13. * @param PHPExcel_Cell $cell Cell to update
  14. * @return PHPExcel_Cell
  15. * @throws PHPExcel_Exception
  16. */
  17. public function addCacheData($pCoord, PHPExcel_Cell $cell);
  18. /**
  19. * Add or Update a cell in cache
  20. *
  21. * @param PHPExcel_Cell $cell Cell to update
  22. * @return PHPExcel_Cell
  23. * @throws PHPExcel_Exception
  24. */
  25. public function updateCacheData(PHPExcel_Cell $cell);
  26. /**
  27. * Fetch a cell from cache identified by coordinate address
  28. *
  29. * @param string $pCoord Coordinate address of the cell to retrieve
  30. * @return PHPExcel_Cell Cell that was found, or null if not found
  31. * @throws PHPExcel_Exception
  32. */
  33. public function getCacheData($pCoord);
  34. /**
  35. * Delete a cell in cache identified by coordinate address
  36. *
  37. * @param string $pCoord Coordinate address of the cell to delete
  38. * @throws PHPExcel_Exception
  39. */
  40. public function deleteCacheData($pCoord);
  41. /**
  42. * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
  43. *
  44. * @param string $pCoord Coordinate address of the cell to check
  45. * @return boolean
  46. */
  47. public function isDataSet($pCoord);
  48. /**
  49. * Get a list of all cell addresses currently held in cache
  50. *
  51. * @return string[]
  52. */
  53. public function getCellList();
  54. /**
  55. * Get the list of all cell addresses currently held in cache sorted by column and row
  56. *
  57. * @return string[]
  58. */
  59. public function getSortedCellList();
  60. /**
  61. * Clone the cell collection
  62. *
  63. * @param PHPExcel_Worksheet $parent The new worksheet
  64. * @return void
  65. */
  66. public function copyCellCollection(PHPExcel_Worksheet $parent);
  67. /**
  68. * Identify whether the caching method is currently available
  69. * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
  70. *
  71. * @return boolean
  72. */
  73. public static function cacheMethodIsAvailable();
  74. }