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: /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3: // +----------------------------------------------------------------------+
  4: // | PHP Version 4                                                        |
  5: // +----------------------------------------------------------------------+
  6: // | Copyright (c) 1997-2002 The PHP Group                                |
  7: // +----------------------------------------------------------------------+
  8: // | This source file is subject to version 2.02 of the PHP license,      |
  9: // | that is bundled with this package in the file LICENSE, and is        |
 10: // | available at through the world-wide-web at                           |
 11: // | http://www.php.net/license/2_02.txt.                                 |
 12: // | If you did not receive a copy of the PHP license and are unable to   |
 13: // | obtain it through the world-wide-web, please send a note to          |
 14: // | license@php.net so we can mail you a copy immediately.               |
 15: // +----------------------------------------------------------------------+
 16: // | Author: Xavier Noguer <xnoguer@php.net>                              |
 17: // | Based on OLE::Storage_Lite by Kawai, Takanori                        |
 18: // +----------------------------------------------------------------------+
 19: //
 20: // $Id: PPS.php,v 1.7 2007/02/13 21:00:42 schmidt Exp $
 21: 
 22: 
 23: /**
 24: * Class for creating PPS's for OLE containers
 25: *
 26: * @author   Xavier Noguer <xnoguer@php.net>
 27: * @category PHPExcel
 28: * @package  PHPExcel_Shared_OLE
 29: */
 30: class PHPExcel_Shared_OLE_PPS
 31: {
 32:     /**
 33:     * The PPS index
 34:     * @var integer
 35:     */
 36:     public $No;
 37: 
 38:     /**
 39:     * The PPS name (in Unicode)
 40:     * @var string
 41:     */
 42:     public $Name;
 43: 
 44:     /**
 45:     * The PPS type. Dir, Root or File
 46:     * @var integer
 47:     */
 48:     public $Type;
 49: 
 50:     /**
 51:     * The index of the previous PPS
 52:     * @var integer
 53:     */
 54:     public $PrevPps;
 55: 
 56:     /**
 57:     * The index of the next PPS
 58:     * @var integer
 59:     */
 60:     public $NextPps;
 61: 
 62:     /**
 63:     * The index of it's first child if this is a Dir or Root PPS
 64:     * @var integer
 65:     */
 66:     public $DirPps;
 67: 
 68:     /**
 69:     * A timestamp
 70:     * @var integer
 71:     */
 72:     public $Time1st;
 73: 
 74:     /**
 75:     * A timestamp
 76:     * @var integer
 77:     */
 78:     public $Time2nd;
 79: 
 80:     /**
 81:     * Starting block (small or big) for this PPS's data  inside the container
 82:     * @var integer
 83:     */
 84:     public $_StartBlock;
 85: 
 86:     /**
 87:     * The size of the PPS's data (in bytes)
 88:     * @var integer
 89:     */
 90:     public $Size;
 91: 
 92:     /**
 93:     * The PPS's data (only used if it's not using a temporary file)
 94:     * @var string
 95:     */
 96:     public $_data;
 97: 
 98:     /**
 99:     * Array of child PPS's (only used by Root and Dir PPS's)
100:     * @var array
101:     */
102:     public $children = array();
103: 
104:     /**
105:     * Pointer to OLE container
106:     * @var OLE
107:     */
108:     public $ole;
109: 
110:     /**
111:     * The constructor
112:     *
113:     * @access public
114:     * @param integer $No   The PPS index
115:     * @param string  $name The PPS name
116:     * @param integer $type The PPS type. Dir, Root or File
117:     * @param integer $prev The index of the previous PPS
118:     * @param integer $next The index of the next PPS
119:     * @param integer $dir  The index of it's first child if this is a Dir or Root PPS
120:     * @param integer $time_1st A timestamp
121:     * @param integer $time_2nd A timestamp
122:     * @param string  $data  The (usually binary) source data of the PPS
123:     * @param array   $children Array containing children PPS for this PPS
124:     */
125:     public function __construct($No, $name, $type, $prev, $next, $dir, $time_1st, $time_2nd, $data, $children)
126:     {
127:         $this->No      = $No;
128:         $this->Name    = $name;
129:         $this->Type    = $type;
130:         $this->PrevPps = $prev;
131:         $this->NextPps = $next;
132:         $this->DirPps  = $dir;
133:         $this->Time1st = $time_1st;
134:         $this->Time2nd = $time_2nd;
135:         $this->_data      = $data;
136:         $this->children   = $children;
137:         if ($data != '') {
138:             $this->Size = strlen($data);
139:         } else {
140:             $this->Size = 0;
141:         }
142:     }
143: 
144:     /**
145:     * Returns the amount of data saved for this PPS
146:     *
147:     * @access public
148:     * @return integer The amount of data (in bytes)
149:     */
150:     public function _DataLen()
151:     {
152:         if (!isset($this->_data)) {
153:             return 0;
154:         }
155:         //if (isset($this->_PPS_FILE)) {
156:         //  fseek($this->_PPS_FILE, 0);
157:         //  $stats = fstat($this->_PPS_FILE);
158:         //  return $stats[7];
159:         //} else {
160:             return strlen($this->_data);
161:         //}
162:     }
163: 
164:     /**
165:     * Returns a string with the PPS's WK (What is a WK?)
166:     *
167:     * @access public
168:     * @return string The binary string
169:     */
170:     public function _getPpsWk()
171:     {
172:         $ret = str_pad($this->Name,64,"\x00");
173: 
174:         $ret .= pack("v", strlen($this->Name) + 2)  // 66
175:               . pack("c", $this->Type)              // 67
176:               . pack("c", 0x00) //UK                // 68
177:               . pack("V", $this->PrevPps) //Prev    // 72
178:               . pack("V", $this->NextPps) //Next    // 76
179:               . pack("V", $this->DirPps)  //Dir     // 80
180:               . "\x00\x09\x02\x00"                  // 84
181:               . "\x00\x00\x00\x00"                  // 88
182:               . "\xc0\x00\x00\x00"                  // 92
183:               . "\x00\x00\x00\x46"                  // 96 // Seems to be ok only for Root
184:               . "\x00\x00\x00\x00"                  // 100
185:               . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time1st)       // 108
186:               . PHPExcel_Shared_OLE::LocalDate2OLE($this->Time2nd)       // 116
187:               . pack("V", isset($this->_StartBlock)?
188:                         $this->_StartBlock:0)        // 120
189:               . pack("V", $this->Size)               // 124
190:               . pack("V", 0);                        // 128
191:         return $ret;
192:     }
193: 
194:     /**
195:     * Updates index and pointers to previous, next and children PPS's for this
196:     * PPS. I don't think it'll work with Dir PPS's.
197:     *
198:     * @access public
199:     * @param array &$raList Reference to the array of PPS's for the whole OLE
200:     *                          container
201:     * @return integer          The index for this PPS
202:     */
203:     public static function _savePpsSetPnt(&$raList, $to_save, $depth = 0)
204:     {
205:         if ( !is_array($to_save) || (empty($to_save)) ) {
206:             return 0xFFFFFFFF;
207:         } elseif( count($to_save) == 1 ) {
208:             $cnt = count($raList);
209:             // If the first entry, it's the root... Don't clone it!
210:             $raList[$cnt] = ( $depth == 0 ) ? $to_save[0] : clone $to_save[0];
211:             $raList[$cnt]->No = $cnt;
212:             $raList[$cnt]->PrevPps = 0xFFFFFFFF;
213:             $raList[$cnt]->NextPps = 0xFFFFFFFF;
214:             $raList[$cnt]->DirPps  = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++);
215:         } else {
216:             $iPos  = floor(count($to_save) / 2);
217:             $aPrev = array_slice($to_save, 0, $iPos);
218:             $aNext = array_slice($to_save, $iPos + 1);
219:             $cnt   = count($raList);
220:             // If the first entry, it's the root... Don't clone it!
221:             $raList[$cnt] = ( $depth == 0 ) ? $to_save[$iPos] : clone $to_save[$iPos];
222:             $raList[$cnt]->No = $cnt;
223:             $raList[$cnt]->PrevPps = self::_savePpsSetPnt($raList, $aPrev, $depth++);
224:             $raList[$cnt]->NextPps = self::_savePpsSetPnt($raList, $aNext, $depth++);
225:             $raList[$cnt]->DirPps  = self::_savePpsSetPnt($raList, @$raList[$cnt]->children, $depth++);
226: 
227:         }
228:         return $cnt;
229:     }
230: }
231: 
Autene API documentation generated by ApiGen