Overview

Packages

  • JAMA
  • None
  • PHP
  • PHPExcel
    • CachedObjectStorage
    • Calculation
    • Cell
    • Chart
      • Renderer
    • Reader
      • Excel2007
      • Excel5
    • RichText
    • Settings
    • Shared
      • Escher
      • OLE
      • Trend
      • ZipArchive
    • Style
    • Worksheet
      • Drawing
    • Writer
      • 2007
      • CSV
      • Excel2007
      • Excel5
      • HTML
      • PDF

Classes

  • CholeskyDecomposition
  • Dao
  • DateTime
  • DateTimeZone
  • DOMNode
  • EigenvalueDecomposition
  • Elemento
  • Historial
  • Irradiacion
  • Latitud
  • MotorPhp
  • Panel
  • PclZip
  • Periodo
  • PHPExcel
  • PHPExcel_Autoloader
  • PHPExcel_Best_Fit
  • PHPExcel_CachedObjectStorage_APC
  • PHPExcel_CachedObjectStorage_CacheBase
  • PHPExcel_CachedObjectStorage_DiscISAM
  • PHPExcel_CachedObjectStorage_Igbinary
  • PHPExcel_CachedObjectStorage_Memcache
  • PHPExcel_CachedObjectStorage_Memory
  • PHPExcel_CachedObjectStorage_MemoryGZip
  • PHPExcel_CachedObjectStorage_MemorySerialized
  • PHPExcel_CachedObjectStorage_PHPTemp
  • PHPExcel_CachedObjectStorage_SQLite
  • PHPExcel_CachedObjectStorage_SQLite3
  • PHPExcel_CachedObjectStorage_Wincache
  • PHPExcel_CachedObjectStorageFactory
  • PHPExcel_CalcEngine_CyclicReferenceStack
  • PHPExcel_CalcEngine_Logger
  • PHPExcel_Calculation
  • PHPExcel_Calculation_Database
  • PHPExcel_Calculation_DateTime
  • PHPExcel_Calculation_Engineering
  • PHPExcel_Calculation_ExceptionHandler
  • PHPExcel_Calculation_Financial
  • PHPExcel_Calculation_FormulaParser
  • PHPExcel_Calculation_FormulaToken
  • PHPExcel_Calculation_Function
  • PHPExcel_Calculation_Functions
  • PHPExcel_Calculation_Logical
  • PHPExcel_Calculation_LookupRef
  • PHPExcel_Calculation_MathTrig
  • PHPExcel_Calculation_Statistical
  • PHPExcel_Calculation_TextData
  • PHPExcel_Calculation_Token_Stack
  • PHPExcel_Cell
  • PHPExcel_Cell_AdvancedValueBinder
  • PHPExcel_Cell_DataType
  • PHPExcel_Cell_DataValidation
  • PHPExcel_Cell_DefaultValueBinder
  • PHPExcel_Cell_Hyperlink
  • PHPExcel_Chart
  • PHPExcel_Chart_DataSeries
  • PHPExcel_Chart_DataSeriesValues
  • PHPExcel_Chart_Layout
  • PHPExcel_Chart_Legend
  • PHPExcel_Chart_PlotArea
  • PHPExcel_Chart_Renderer_jpgraph
  • PHPExcel_Chart_Title
  • PHPExcel_Comment
  • PHPExcel_DocumentProperties
  • PHPExcel_DocumentSecurity
  • PHPExcel_Exponential_Best_Fit
  • PHPExcel_HashTable
  • PHPExcel_IOFactory
  • PHPExcel_Linear_Best_Fit
  • PHPExcel_Logarithmic_Best_Fit
  • PHPExcel_NamedRange
  • PHPExcel_Polynomial_Best_Fit
  • PHPExcel_Power_Best_Fit
  • PHPExcel_Reader_Abstract
  • PHPExcel_Reader_CSV
  • PHPExcel_Reader_DefaultReadFilter
  • PHPExcel_Reader_Excel2003XML
  • PHPExcel_Reader_Excel2007
  • PHPExcel_Reader_Excel2007_Chart
  • PHPExcel_Reader_Excel2007_Theme
  • PHPExcel_Reader_Excel5
  • PHPExcel_Reader_Excel5_Escher
  • PHPExcel_Reader_Excel5_MD5
  • PHPExcel_Reader_Excel5_RC4
  • PHPExcel_Reader_Gnumeric
  • PHPExcel_Reader_HTML
  • PHPExcel_Reader_OOCalc
  • PHPExcel_Reader_SYLK
  • PHPExcel_ReferenceHelper
  • PHPExcel_RichText
  • PHPExcel_RichText_Run
  • PHPExcel_RichText_TextElement
  • PHPExcel_Settings
  • PHPExcel_Shared_CodePage
  • PHPExcel_Shared_Date
  • PHPExcel_Shared_Drawing
  • PHPExcel_Shared_Escher
  • PHPExcel_Shared_Escher_DgContainer
  • PHPExcel_Shared_Escher_DgContainer_SpgrContainer
  • PHPExcel_Shared_Escher_DgContainer_SpgrContainer_SpContainer
  • PHPExcel_Shared_Escher_DggContainer
  • PHPExcel_Shared_Escher_DggContainer_BstoreContainer
  • PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE
  • PHPExcel_Shared_Escher_DggContainer_BstoreContainer_BSE_Blip
  • PHPExcel_Shared_Excel5
  • PHPExcel_Shared_File
  • PHPExcel_Shared_Font
  • PHPExcel_Shared_JAMA_LUDecomposition
  • PHPExcel_Shared_JAMA_Matrix
  • PHPExcel_Shared_JAMA_QRDecomposition
  • PHPExcel_Shared_OLE
  • PHPExcel_Shared_OLE_ChainedBlockStream
  • PHPExcel_Shared_OLE_PPS
  • PHPExcel_Shared_OLE_PPS_File
  • PHPExcel_Shared_OLE_PPS_Root
  • PHPExcel_Shared_OLERead
  • PHPExcel_Shared_PasswordHasher
  • PHPExcel_Shared_String
  • PHPExcel_Shared_TimeZone
  • PHPExcel_Shared_XMLWriter
  • PHPExcel_Shared_ZipArchive
  • PHPExcel_Shared_ZipStreamWrapper
  • PHPExcel_Style
  • PHPExcel_Style_Alignment
  • PHPExcel_Style_Border
  • PHPExcel_Style_Borders
  • PHPExcel_Style_Color
  • PHPExcel_Style_Conditional
  • PHPExcel_Style_Fill
  • PHPExcel_Style_Font
  • PHPExcel_Style_NumberFormat
  • PHPExcel_Style_Protection
  • PHPExcel_Style_Supervisor
  • PHPExcel_Worksheet
  • PHPExcel_Worksheet_AutoFilter
  • PHPExcel_Worksheet_AutoFilter_Column
  • PHPExcel_Worksheet_AutoFilter_Column_Rule
  • PHPExcel_Worksheet_BaseDrawing
  • PHPExcel_Worksheet_CellIterator
  • PHPExcel_Worksheet_ColumnDimension
  • PHPExcel_Worksheet_Drawing
  • PHPExcel_Worksheet_Drawing_Shadow
  • PHPExcel_Worksheet_HeaderFooter
  • PHPExcel_Worksheet_HeaderFooterDrawing
  • PHPExcel_Worksheet_MemoryDrawing
  • PHPExcel_Worksheet_PageMargins
  • PHPExcel_Worksheet_PageSetup
  • PHPExcel_Worksheet_Protection
  • PHPExcel_Worksheet_Row
  • PHPExcel_Worksheet_RowDimension
  • PHPExcel_Worksheet_RowIterator
  • PHPExcel_Worksheet_SheetView
  • PHPExcel_WorksheetIterator
  • PHPExcel_Writer_Abstract
  • PHPExcel_Writer_CSV
  • PHPExcel_Writer_Excel2007
  • PHPExcel_Writer_Excel2007_Chart
  • PHPExcel_Writer_Excel2007_Comments
  • PHPExcel_Writer_Excel2007_ContentTypes
  • PHPExcel_Writer_Excel2007_DocProps
  • PHPExcel_Writer_Excel2007_Drawing
  • PHPExcel_Writer_Excel2007_Rels
  • PHPExcel_Writer_Excel2007_RelsRibbon
  • PHPExcel_Writer_Excel2007_RelsVBA
  • PHPExcel_Writer_Excel2007_StringTable
  • PHPExcel_Writer_Excel2007_Style
  • PHPExcel_Writer_Excel2007_Theme
  • PHPExcel_Writer_Excel2007_Workbook
  • PHPExcel_Writer_Excel2007_Worksheet
  • PHPExcel_Writer_Excel2007_WriterPart
  • PHPExcel_Writer_Excel5
  • PHPExcel_Writer_Excel5_BIFFwriter
  • PHPExcel_Writer_Excel5_Escher
  • PHPExcel_Writer_Excel5_Font
  • PHPExcel_Writer_Excel5_Parser
  • PHPExcel_Writer_Excel5_Workbook
  • PHPExcel_Writer_Excel5_Worksheet
  • PHPExcel_Writer_Excel5_Xf
  • PHPExcel_Writer_HTML
  • PHPExcel_Writer_PDF
  • PHPExcel_Writer_PDF_Core
  • PHPExcel_Writer_PDF_DomPDF
  • PHPExcel_Writer_PDF_mPDF
  • PHPExcel_Writer_PDF_tcPDF
  • Provincia
  • Radiacion
  • SingularValueDecomposition
  • Sistema
  • trendClass
  • xajax
  • xajaxArgumentManager
  • xajaxCallableObject
  • xajaxCallableObjectPlugin
  • xajaxControl
  • xajaxControlContainer
  • xajaxCustomRequest
  • xajaxCustomResponse
  • xajaxEvent
  • xajaxEventPlugin
  • xajaxFunctionPlugin
  • xajaxIncludeClientScriptPlugin
  • xajaxLanguageManager
  • xajaxPlugin
  • xajaxPluginManager
  • xajaxRequest
  • xajaxRequestPlugin
  • xajaxResponse
  • xajaxResponseManager
  • xajaxResponsePlugin
  • xajaxScriptPlugin
  • xajaxUserFunction
  • XMLWriter

Interfaces

  • DateTimeInterface
  • Iterator
  • PHPExcel_CachedObjectStorage_ICache
  • PHPExcel_Cell_IValueBinder
  • PHPExcel_IComparable
  • PHPExcel_Reader_IReader
  • PHPExcel_Reader_IReadFilter
  • PHPExcel_RichText_ITextElement
  • PHPExcel_Writer_IWriter
  • Throwable
  • Traversable

Exceptions

  • Exception
  • PHPExcel_Calculation_Exception
  • PHPExcel_Chart_Exception
  • PHPExcel_Exception
  • PHPExcel_Reader_Exception
  • PHPExcel_Writer_Exception

Functions

  • acosh
  • agregar_elemento
  • asinh
  • atanh
  • borrar_elementos
  • borrar_gdm_ab
  • borrar_irradiacion
  • borrar_latitud
  • borrar_panel
  • borrar_periodo
  • borrar_pmp_min_pmp_max
  • borrar_radiacion
  • borrar_resumen
  • borrar_sistema
  • borrar_sombra
  • gdm_ab
  • grabar_resumen
  • historial
  • hypo
  • irradiacion
  • JAMAError
  • latitud
  • limpiar_historial
  • login
  • mb_str_replace
  • mostrar_energia_total_ch
  • mostrar_panel_md_th
  • mostrar_panel_th
  • mostrar_radiacion_md_th
  • mostrar_radiacion_th
  • mostrar_resumen_th
  • panel
  • PclZipUtilCopyBlock
  • PclZipUtilOptionText
  • PclZipUtilPathInclusion
  • PclZipUtilPathReduction
  • PclZipUtilRename
  • PclZipUtilTranslateWinPath
  • periodo
  • pmp_min_pmp_max
  • preparar_panel
  • preparar_radiacion
  • preparar_radiacion_media
  • radiacion
  • resumen
  • sistema
  • sombra
  • xajaxCompressFile
  • xajaxErrorHandler
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
  1: <?php
  2: 
  3: /**
  4:  * PHPExcel
  5:  *
  6:  * Copyright (c) 2006 - 2014 PHPExcel
  7:  *
  8:  * This library is free software; you can redistribute it and/or
  9:  * modify it under the terms of the GNU Lesser General Public
 10:  * License as published by the Free Software Foundation; either
 11:  * version 2.1 of the License, or (at your option) any later version.
 12:  *
 13:  * This library is distributed in the hope that it will be useful,
 14:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 15:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 16:  * Lesser General Public License for more details.
 17:  *
 18:  * You should have received a copy of the GNU Lesser General Public
 19:  * License along with this library; if not, write to the Free Software
 20:  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 21:  *
 22:  * @category   PHPExcel
 23:  * @package    PHPExcel_CachedObjectStorage
 24:  * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
 25:  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
 26:  * @version    1.8.0, 2014-03-02
 27:  */
 28: 
 29: 
 30: /**
 31:  * PHPExcel_CachedObjectStorageFactory
 32:  *
 33:  * @category    PHPExcel
 34:  * @package        PHPExcel_CachedObjectStorage
 35:  * @copyright    Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
 36:  */
 37: class PHPExcel_CachedObjectStorageFactory
 38: {
 39:     const cache_in_memory               = 'Memory';
 40:     const cache_in_memory_gzip          = 'MemoryGZip';
 41:     const cache_in_memory_serialized    = 'MemorySerialized';
 42:     const cache_igbinary                = 'Igbinary';
 43:     const cache_to_discISAM             = 'DiscISAM';
 44:     const cache_to_apc                  = 'APC';
 45:     const cache_to_memcache             = 'Memcache';
 46:     const cache_to_phpTemp              = 'PHPTemp';
 47:     const cache_to_wincache             = 'Wincache';
 48:     const cache_to_sqlite               = 'SQLite';
 49:     const cache_to_sqlite3              = 'SQLite3';
 50: 
 51: 
 52:     /**
 53:      * Name of the method used for cell cacheing
 54:      *
 55:      * @var string
 56:      */
 57:     private static $_cacheStorageMethod = NULL;
 58: 
 59:     /**
 60:      * Name of the class used for cell cacheing
 61:      *
 62:      * @var string
 63:      */
 64:     private static $_cacheStorageClass = NULL;
 65: 
 66: 
 67:     /**
 68:      * List of all possible cache storage methods
 69:      *
 70:      * @var string[]
 71:      */
 72:     private static $_storageMethods = array(
 73:         self::cache_in_memory,
 74:         self::cache_in_memory_gzip,
 75:         self::cache_in_memory_serialized,
 76:         self::cache_igbinary,
 77:         self::cache_to_phpTemp,
 78:         self::cache_to_discISAM,
 79:         self::cache_to_apc,
 80:         self::cache_to_memcache,
 81:         self::cache_to_wincache,
 82:         self::cache_to_sqlite,
 83:         self::cache_to_sqlite3,
 84:     );
 85: 
 86: 
 87:     /**
 88:      * Default arguments for each cache storage method
 89:      *
 90:      * @var array of mixed array
 91:      */
 92:     private static $_storageMethodDefaultParameters = array(
 93:         self::cache_in_memory               => array(
 94:                                                     ),
 95:         self::cache_in_memory_gzip          => array(
 96:                                                     ),
 97:         self::cache_in_memory_serialized    => array(
 98:                                                     ),
 99:         self::cache_igbinary                => array(
100:                                                     ),
101:         self::cache_to_phpTemp              => array( 'memoryCacheSize' => '1MB'
102:                                                     ),
103:         self::cache_to_discISAM             => array( 'dir'             => NULL
104:                                                     ),
105:         self::cache_to_apc                  => array( 'cacheTime'       => 600
106:                                                     ),
107:         self::cache_to_memcache             => array( 'memcacheServer'  => 'localhost',
108:                                                       'memcachePort'    => 11211,
109:                                                       'cacheTime'       => 600
110:                                                     ),
111:         self::cache_to_wincache             => array( 'cacheTime'       => 600
112:                                                     ),
113:         self::cache_to_sqlite               => array(
114:                                                     ),
115:         self::cache_to_sqlite3              => array(
116:                                                     ),
117:     );
118: 
119: 
120:     /**
121:      * Arguments for the active cache storage method
122:      *
123:      * @var array of mixed array
124:      */
125:     private static $_storageMethodParameters = array();
126: 
127: 
128:     /**
129:      * Return the current cache storage method
130:      *
131:      * @return string|NULL
132:      **/
133:     public static function getCacheStorageMethod()
134:     {
135:         return self::$_cacheStorageMethod;
136:     }   //    function getCacheStorageMethod()
137: 
138: 
139:     /**
140:      * Return the current cache storage class
141:      *
142:      * @return PHPExcel_CachedObjectStorage_ICache|NULL
143:      **/
144:     public static function getCacheStorageClass()
145:     {
146:         return self::$_cacheStorageClass;
147:     }   //    function getCacheStorageClass()
148: 
149: 
150:     /**
151:      * Return the list of all possible cache storage methods
152:      *
153:      * @return string[]
154:      **/
155:     public static function getAllCacheStorageMethods()
156:     {
157:         return self::$_storageMethods;
158:     }   //    function getCacheStorageMethods()
159: 
160: 
161:     /**
162:      * Return the list of all available cache storage methods
163:      *
164:      * @return string[]
165:      **/
166:     public static function getCacheStorageMethods()
167:     {
168:         $activeMethods = array();
169:         foreach(self::$_storageMethods as $storageMethod) {
170:             $cacheStorageClass = 'PHPExcel_CachedObjectStorage_' . $storageMethod;
171:             if (call_user_func(array($cacheStorageClass, 'cacheMethodIsAvailable'))) {
172:                 $activeMethods[] = $storageMethod;
173:             }
174:         }
175:         return $activeMethods;
176:     }   //    function getCacheStorageMethods()
177: 
178: 
179:     /**
180:      * Identify the cache storage method to use
181:      *
182:      * @param    string            $method        Name of the method to use for cell cacheing
183:      * @param    array of mixed    $arguments    Additional arguments to pass to the cell caching class
184:      *                                        when instantiating
185:      * @return boolean
186:      **/
187:     public static function initialize($method = self::cache_in_memory, $arguments = array())
188:     {
189:         if (!in_array($method,self::$_storageMethods)) {
190:             return FALSE;
191:         }
192: 
193:         $cacheStorageClass = 'PHPExcel_CachedObjectStorage_'.$method;
194:         if (!call_user_func(array( $cacheStorageClass,
195:                                    'cacheMethodIsAvailable'))) {
196:             return FALSE;
197:         }
198: 
199:         self::$_storageMethodParameters[$method] = self::$_storageMethodDefaultParameters[$method];
200:         foreach($arguments as $k => $v) {
201:             if (array_key_exists($k, self::$_storageMethodParameters[$method])) {
202:                 self::$_storageMethodParameters[$method][$k] = $v;
203:             }
204:         }
205: 
206:         if (self::$_cacheStorageMethod === NULL) {
207:             self::$_cacheStorageClass = 'PHPExcel_CachedObjectStorage_' . $method;
208:             self::$_cacheStorageMethod = $method;
209:         }
210:         return TRUE;
211:     }   //    function initialize()
212: 
213: 
214:     /**
215:      * Initialise the cache storage
216:      *
217:      * @param    PHPExcel_Worksheet     $parent        Enable cell caching for this worksheet
218:      * @return    PHPExcel_CachedObjectStorage_ICache
219:      **/
220:     public static function getInstance(PHPExcel_Worksheet $parent)
221:     {
222:         $cacheMethodIsAvailable = TRUE;
223:         if (self::$_cacheStorageMethod === NULL) {
224:             $cacheMethodIsAvailable = self::initialize();
225:         }
226: 
227:         if ($cacheMethodIsAvailable) {
228:             $instance = new self::$_cacheStorageClass( $parent,
229:                                                        self::$_storageMethodParameters[self::$_cacheStorageMethod]
230:                                                      );
231:             if ($instance !== NULL) {
232:                 return $instance;
233:             }
234:         }
235: 
236:         return FALSE;
237:     }   //    function getInstance()
238: 
239: 
240:     /**
241:      * Clear the cache storage
242:      *
243:      **/
244:     public static function finalize()
245:     {
246:         self::$_cacheStorageMethod = NULL;
247:         self::$_cacheStorageClass = NULL;
248:         self::$_storageMethodParameters = array();
249:     }
250: 
251: }
252: 
Autene API documentation generated by ApiGen