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:  * PHPExcel
  4:  *
  5:  * Copyright (c) 2006 - 2014 PHPExcel
  6:  *
  7:  * This library is free software; you can redistribute it and/or
  8:  * modify it under the terms of the GNU Lesser General Public
  9:  * License as published by the Free Software Foundation; either
 10:  * version 2.1 of the License, or (at your option) any later version.
 11:  *
 12:  * This library is distributed in the hope that it will be useful,
 13:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 14:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 15:  * Lesser General Public License for more details.
 16:  *
 17:  * You should have received a copy of the GNU Lesser General Public
 18:  * License along with this library; if not, write to the Free Software
 19:  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 20:  *
 21:  * @category   PHPExcel
 22:  * @package    PHPExcel_CachedObjectStorage
 23:  * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
 24:  * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
 25:  * @version    1.8.0, 2014-03-02
 26:  */
 27: 
 28: 
 29: /**
 30:  * PHPExcel_CachedObjectStorage_CacheBase
 31:  *
 32:  * @category   PHPExcel
 33:  * @package    PHPExcel_CachedObjectStorage
 34:  * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
 35:  */
 36: abstract class PHPExcel_CachedObjectStorage_CacheBase {
 37: 
 38:     /**
 39:      * Parent worksheet
 40:      *
 41:      * @var PHPExcel_Worksheet
 42:      */
 43:     protected $_parent;
 44: 
 45:     /**
 46:      * The currently active Cell
 47:      *
 48:      * @var PHPExcel_Cell
 49:      */
 50:     protected $_currentObject = null;
 51: 
 52:     /**
 53:      * Coordinate address of the currently active Cell
 54:      *
 55:      * @var string
 56:      */
 57:     protected $_currentObjectID = null;
 58: 
 59: 
 60:     /**
 61:      * Flag indicating whether the currently active Cell requires saving
 62:      *
 63:      * @var boolean
 64:      */
 65:     protected $_currentCellIsDirty = true;
 66: 
 67:     /**
 68:      * An array of cells or cell pointers for the worksheet cells held in this cache,
 69:      *      and indexed by their coordinate address within the worksheet
 70:      *
 71:      * @var array of mixed
 72:      */
 73:     protected $_cellCache = array();
 74: 
 75: 
 76:     /**
 77:      * Initialise this new cell collection
 78:      *
 79:      * @param   PHPExcel_Worksheet  $parent     The worksheet for this cell collection
 80:      */
 81:     public function __construct(PHPExcel_Worksheet $parent) {
 82:         //  Set our parent worksheet.
 83:         //  This is maintained within the cache controller to facilitate re-attaching it to PHPExcel_Cell objects when
 84:         //      they are woken from a serialized state
 85:         $this->_parent = $parent;
 86:     }   //  function __construct()
 87: 
 88: 
 89:     /**
 90:      * Return the parent worksheet for this cell collection
 91:      *
 92:      * @return  PHPExcel_Worksheet
 93:      */
 94:     public function getParent()
 95:     {
 96:         return $this->_parent;
 97:     }
 98: 
 99:     /**
100:      * Is a value set in the current PHPExcel_CachedObjectStorage_ICache for an indexed cell?
101:      *
102:      * @param   string      $pCoord     Coordinate address of the cell to check
103:      * @return  boolean
104:      */
105:     public function isDataSet($pCoord) {
106:         if ($pCoord === $this->_currentObjectID) {
107:             return true;
108:         }
109:         //  Check if the requested entry exists in the cache
110:         return isset($this->_cellCache[$pCoord]);
111:     }   //  function isDataSet()
112: 
113: 
114:     /**
115:      * Move a cell object from one address to another
116:      *
117:      * @param   string      $fromAddress    Current address of the cell to move
118:      * @param   string      $toAddress      Destination address of the cell to move
119:      * @return  boolean
120:      */
121:     public function moveCell($fromAddress, $toAddress) {
122:         if ($fromAddress === $this->_currentObjectID) {
123:             $this->_currentObjectID = $toAddress;
124:         }
125:         $this->_currentCellIsDirty = true;
126:         if (isset($this->_cellCache[$fromAddress])) {
127:             $this->_cellCache[$toAddress] = &$this->_cellCache[$fromAddress];
128:             unset($this->_cellCache[$fromAddress]);
129:         }
130: 
131:         return TRUE;
132:     }   //  function moveCell()
133: 
134: 
135:     /**
136:      * Add or Update a cell in cache
137:      *
138:      * @param   PHPExcel_Cell   $cell       Cell to update
139:      * @return  void
140:      * @throws  PHPExcel_Exception
141:      */
142:     public function updateCacheData(PHPExcel_Cell $cell) {
143:         return $this->addCacheData($cell->getCoordinate(),$cell);
144:     }   //  function updateCacheData()
145: 
146: 
147:     /**
148:      * Delete a cell in cache identified by coordinate address
149:      *
150:      * @param   string          $pCoord     Coordinate address of the cell to delete
151:      * @throws  PHPExcel_Exception
152:      */
153:     public function deleteCacheData($pCoord) {
154:         if ($pCoord === $this->_currentObjectID) {
155:             $this->_currentObject->detach();
156:             $this->_currentObjectID = $this->_currentObject = null;
157:         }
158: 
159:         if (is_object($this->_cellCache[$pCoord])) {
160:             $this->_cellCache[$pCoord]->detach();
161:             unset($this->_cellCache[$pCoord]);
162:         }
163:         $this->_currentCellIsDirty = false;
164:     }   //  function deleteCacheData()
165: 
166: 
167:     /**
168:      * Get a list of all cell addresses currently held in cache
169:      *
170:      * @return  array of string
171:      */
172:     public function getCellList() {
173:         return array_keys($this->_cellCache);
174:     }   //  function getCellList()
175: 
176: 
177:     /**
178:      * Sort the list of all cell addresses currently held in cache by row and column
179:      *
180:      * @return  void
181:      */
182:     public function getSortedCellList() {
183:         $sortKeys = array();
184:         foreach ($this->getCellList() as $coord) {
185:             sscanf($coord,'%[A-Z]%d', $column, $row);
186:             $sortKeys[sprintf('%09d%3s',$row,$column)] = $coord;
187:         }
188:         ksort($sortKeys);
189: 
190:         return array_values($sortKeys);
191:     }   //  function sortCellList()
192: 
193: 
194: 
195:     /**
196:      * Get highest worksheet column and highest row that have cell records
197:      *
198:      * @return array Highest column name and highest row number
199:      */
200:     public function getHighestRowAndColumn()
201:     {
202:         // Lookup highest column and highest row
203:         $col = array('A' => '1A');
204:         $row = array(1);
205:         foreach ($this->getCellList() as $coord) {
206:             sscanf($coord,'%[A-Z]%d', $c, $r);
207:             $row[$r] = $r;
208:             $col[$c] = strlen($c).$c;
209:         }
210:         if (!empty($row)) {
211:             // Determine highest column and row
212:             $highestRow = max($row);
213:             $highestColumn = substr(max($col),1);
214:         }
215: 
216:         return array( 'row'    => $highestRow,
217:                       'column' => $highestColumn
218:                     );
219:     }
220: 
221: 
222:     /**
223:      * Return the cell address of the currently active cell object
224:      *
225:      * @return  string
226:      */
227:     public function getCurrentAddress()
228:     {
229:         return $this->_currentObjectID;
230:     }
231: 
232:     /**
233:      * Return the column address of the currently active cell object
234:      *
235:      * @return  string
236:      */
237:     public function getCurrentColumn()
238:     {
239:         sscanf($this->_currentObjectID, '%[A-Z]%d', $column, $row);
240:         return $column;
241:     }
242: 
243:     /**
244:      * Return the row address of the currently active cell object
245:      *
246:      * @return  string
247:      */
248:     public function getCurrentRow()
249:     {
250:         sscanf($this->_currentObjectID, '%[A-Z]%d', $column, $row);
251:         return $row;
252:     }
253: 
254:     /**
255:      * Get highest worksheet column
256:      *
257:      * @param   string     $row        Return the highest column for the specified row,
258:      *                                     or the highest column of any row if no row number is passed
259:      * @return  string     Highest column name
260:      */
261:     public function getHighestColumn($row = null)
262:     {
263:         if ($row == null) {
264:             $colRow = $this->getHighestRowAndColumn();
265:             return $colRow['column'];
266:         }
267: 
268:         $columnList = array(1);
269:         foreach ($this->getCellList() as $coord) {
270:             sscanf($coord,'%[A-Z]%d', $c, $r);
271:             if ($r != $row) {
272:                 continue;
273:             }
274:             $columnList[] = PHPExcel_Cell::columnIndexFromString($c);
275:         }
276:         return PHPExcel_Cell::stringFromColumnIndex(max($columnList) - 1);
277:     }
278: 
279:     /**
280:      * Get highest worksheet row
281:      *
282:      * @param   string     $column     Return the highest row for the specified column,
283:      *                                     or the highest row of any column if no column letter is passed
284:      * @return  int        Highest row number
285:      */
286:     public function getHighestRow($column = null)
287:     {
288:         if ($column == null) {
289:             $colRow = $this->getHighestRowAndColumn();
290:             return $colRow['row'];
291:         }
292: 
293:         $rowList = array(0);
294:         foreach ($this->getCellList() as $coord) {
295:             sscanf($coord,'%[A-Z]%d', $c, $r);
296:             if ($c != $column) {
297:                 continue;
298:             }
299:             $rowList[] = $r;
300:         }
301: 
302:         return max($rowList);
303:     }
304: 
305: 
306:     /**
307:      * Generate a unique ID for cache referencing
308:      *
309:      * @return string Unique Reference
310:      */
311:     protected function _getUniqueID() {
312:         if (function_exists('posix_getpid')) {
313:             $baseUnique = posix_getpid();
314:         } else {
315:             $baseUnique = mt_rand();
316:         }
317:         return uniqid($baseUnique,true);
318:     }
319: 
320:     /**
321:      * Clone the cell collection
322:      *
323:      * @param   PHPExcel_Worksheet  $parent     The new worksheet
324:      * @return  void
325:      */
326:     public function copyCellCollection(PHPExcel_Worksheet $parent) {
327:         $this->_currentCellIsDirty;
328:         $this->_storeData();
329: 
330:         $this->_parent = $parent;
331:         if (($this->_currentObject !== NULL) && (is_object($this->_currentObject))) {
332:             $this->_currentObject->attach($this);
333:         }
334:     }   //  function copyCellCollection()
335: 
336: 
337:     /**
338:      * Identify whether the caching method is currently available
339:      * Some methods are dependent on the availability of certain extensions being enabled in the PHP build
340:      *
341:      * @return  boolean
342:      */
343:     public static function cacheMethodIsAvailable() {
344:         return true;
345:     }
346: 
347: }
348: 
Autene API documentation generated by ApiGen