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_Chart
 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_Chart_DataSeriesValues
 31:  *
 32:  * @category    PHPExcel
 33:  * @package     PHPExcel_Chart
 34:  * @copyright   Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
 35:  */
 36: class PHPExcel_Chart_DataSeriesValues
 37: {
 38: 
 39:     const DATASERIES_TYPE_STRING    = 'String';
 40:     const DATASERIES_TYPE_NUMBER    = 'Number';
 41: 
 42:     private static $_dataTypeValues = array(
 43:         self::DATASERIES_TYPE_STRING,
 44:         self::DATASERIES_TYPE_NUMBER,
 45:     );
 46: 
 47:     /**
 48:      * Series Data Type
 49:      *
 50:      * @var string
 51:      */
 52:     private $_dataType = null;
 53: 
 54:     /**
 55:      * Series Data Source
 56:      *
 57:      * @var string
 58:      */
 59:     private $_dataSource = null;
 60: 
 61:     /**
 62:      * Format Code
 63:      *
 64:      * @var string
 65:      */
 66:     private $_formatCode = null;
 67: 
 68:     /**
 69:      * Series Point Marker
 70:      *
 71:      * @var string
 72:      */
 73:     private $_marker = null;
 74: 
 75:     /**
 76:      * Point Count (The number of datapoints in the dataseries)
 77:      *
 78:      * @var integer
 79:      */
 80:     private $_pointCount = 0;
 81: 
 82:     /**
 83:      * Data Values
 84:      *
 85:      * @var array of mixed
 86:      */
 87:     private $_dataValues = array();
 88: 
 89:     /**
 90:      * Create a new PHPExcel_Chart_DataSeriesValues object
 91:      */
 92:     public function __construct($dataType = self::DATASERIES_TYPE_NUMBER, $dataSource = null, $formatCode = null, $pointCount = 0, $dataValues = array(), $marker = null)
 93:     {
 94:         $this->setDataType($dataType);
 95:         $this->_dataSource = $dataSource;
 96:         $this->_formatCode = $formatCode;
 97:         $this->_pointCount = $pointCount;
 98:         $this->_dataValues = $dataValues;
 99:         $this->_marker = $marker;
100:     }
101: 
102:     /**
103:      * Get Series Data Type
104:      *
105:      * @return  string
106:      */
107:     public function getDataType() {
108:         return $this->_dataType;
109:     }
110: 
111:     /**
112:      * Set Series Data Type
113:      *
114:      * @param   string  $dataType   Datatype of this data series
115:      *                              Typical values are:
116:      *                                  PHPExcel_Chart_DataSeriesValues::DATASERIES_TYPE_STRING
117:      *                                      Normally used for axis point values
118:      *                                  PHPExcel_Chart_DataSeriesValues::DATASERIES_TYPE_NUMBER
119:      *                                      Normally used for chart data values
120:      * @return  PHPExcel_Chart_DataSeriesValues
121:      */
122:     public function setDataType($dataType = self::DATASERIES_TYPE_NUMBER) {
123:         if (!in_array($dataType, self::$_dataTypeValues)) {
124:             throw new PHPExcel_Chart_Exception('Invalid datatype for chart data series values');
125:         }
126:         $this->_dataType = $dataType;
127: 
128:         return $this;
129:     }
130: 
131:     /**
132:      * Get Series Data Source (formula)
133:      *
134:      * @return  string
135:      */
136:     public function getDataSource() {
137:         return $this->_dataSource;
138:     }
139: 
140:     /**
141:      * Set Series Data Source (formula)
142:      *
143:      * @param   string  $dataSource
144:      * @return  PHPExcel_Chart_DataSeriesValues
145:      */
146:     public function setDataSource($dataSource = null, $refreshDataValues = true) {
147:         $this->_dataSource = $dataSource;
148: 
149:         if ($refreshDataValues) {
150:             //  TO DO
151:         }
152: 
153:         return $this;
154:     }
155: 
156:     /**
157:      * Get Point Marker
158:      *
159:      * @return string
160:      */
161:     public function getPointMarker() {
162:         return $this->_marker;
163:     }
164: 
165:     /**
166:      * Set Point Marker
167:      *
168:      * @param   string  $marker
169:      * @return  PHPExcel_Chart_DataSeriesValues
170:      */
171:     public function setPointMarker($marker = null) {
172:         $this->_marker = $marker;
173: 
174:         return $this;
175:     }
176: 
177:     /**
178:      * Get Series Format Code
179:      *
180:      * @return  string
181:      */
182:     public function getFormatCode() {
183:         return $this->_formatCode;
184:     }
185: 
186:     /**
187:      * Set Series Format Code
188:      *
189:      * @param   string  $formatCode
190:      * @return  PHPExcel_Chart_DataSeriesValues
191:      */
192:     public function setFormatCode($formatCode = null) {
193:         $this->_formatCode = $formatCode;
194: 
195:         return $this;
196:     }
197: 
198:     /**
199:      * Get Series Point Count
200:      *
201:      * @return  integer
202:      */
203:     public function getPointCount() {
204:         return $this->_pointCount;
205:     }
206: 
207:     /**
208:      * Identify if the Data Series is a multi-level or a simple series
209:      *
210:      * @return  boolean
211:      */
212:     public function isMultiLevelSeries() {
213:         if (count($this->_dataValues) > 0) {
214:             return is_array($this->_dataValues[0]);
215:         }
216:         return null;
217:     }
218: 
219:     /**
220:      * Return the level count of a multi-level Data Series
221:      *
222:      * @return  boolean
223:      */
224:     public function multiLevelCount() {
225:         $levelCount = 0;
226:         foreach($this->_dataValues as $dataValueSet) {
227:             $levelCount = max($levelCount,count($dataValueSet));
228:         }
229:         return $levelCount;
230:     }
231: 
232:     /**
233:      * Get Series Data Values
234:      *
235:      * @return  array of mixed
236:      */
237:     public function getDataValues() {
238:         return $this->_dataValues;
239:     }
240: 
241:     /**
242:      * Get the first Series Data value
243:      *
244:      * @return  mixed
245:      */
246:     public function getDataValue() {
247:         $count = count($this->_dataValues);
248:         if ($count == 0) {
249:             return null;
250:         } elseif ($count == 1) {
251:             return $this->_dataValues[0];
252:         }
253:         return $this->_dataValues;
254:     }
255: 
256:     /**
257:      * Set Series Data Values
258:      *
259:      * @param   array   $dataValues
260:      * @param   boolean $refreshDataSource
261:      *                  TRUE - refresh the value of _dataSource based on the values of $dataValues
262:      *                  FALSE - don't change the value of _dataSource
263:      * @return  PHPExcel_Chart_DataSeriesValues
264:      */
265:     public function setDataValues($dataValues = array(), $refreshDataSource = TRUE) {
266:         $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($dataValues);
267:         $this->_pointCount = count($dataValues);
268: 
269:         if ($refreshDataSource) {
270:             //  TO DO
271:         }
272: 
273:         return $this;
274:     }
275: 
276:     private function _stripNulls($var) {
277:         return $var !== NULL;
278:     }
279: 
280:     public function refresh(PHPExcel_Worksheet $worksheet, $flatten = TRUE) {
281:         if ($this->_dataSource !== NULL) {
282:             $calcEngine = PHPExcel_Calculation::getInstance($worksheet->getParent());
283:             $newDataValues = PHPExcel_Calculation::_unwrapResult(
284:                 $calcEngine->_calculateFormulaValue(
285:                     '='.$this->_dataSource,
286:                     NULL,
287:                     $worksheet->getCell('A1')
288:                 )
289:             );
290:             if ($flatten) {
291:                 $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues);
292:                 foreach($this->_dataValues as &$dataValue) {
293:                     if ((!empty($dataValue)) && ($dataValue[0] == '#')) {
294:                         $dataValue = 0.0;
295:                     }
296:                 }
297:                 unset($dataValue);
298:             } else {
299:                 $cellRange = explode('!',$this->_dataSource);
300:                 if (count($cellRange) > 1) {
301:                     list(,$cellRange) = $cellRange;
302:                 }
303: 
304:                 $dimensions = PHPExcel_Cell::rangeDimension(str_replace('$','',$cellRange));
305:                 if (($dimensions[0] == 1) || ($dimensions[1] == 1)) {
306:                     $this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues);
307:                 } else {
308:                     $newArray = array_values(array_shift($newDataValues));
309:                     foreach($newArray as $i => $newDataSet) {
310:                         $newArray[$i] = array($newDataSet);
311:                     }
312: 
313:                     foreach($newDataValues as $newDataSet) {
314:                         $i = 0;
315:                         foreach($newDataSet as $newDataVal) {
316:                             array_unshift($newArray[$i++],$newDataVal);
317:                         }
318:                     }
319:                     $this->_dataValues = $newArray;
320:                 }
321:             }
322:             $this->_pointCount = count($this->_dataValues);
323:         }
324: 
325:     }
326: 
327: }
328: 
Autene API documentation generated by ApiGen