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:     File: xajaxRequest.inc.php
  4: 
  5:     Contains the xajaxRequest class
  6: 
  7:     Title: xajaxRequest class
  8: 
  9:     Please see <copyright.inc.php> for a detailed description, copyright
 10:     and license information.
 11: */
 12: 
 13: /*
 14:     @package xajax
 15:     @version $Id: xajaxRequest.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
 16:     @copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
 17:     @copyright Copyright (c) 2008-2010 by Joseph Woolley, Steffen Konerow, Jared White  & J. Max Wilson
 18:     @license http://www.xajaxproject.org/bsd_license.txt BSD License
 19: */
 20: 
 21: /*
 22:     Constant: XAJAX_FORM_VALUES
 23:         Specifies that the parameter will consist of an array of form values.
 24: */
 25: if (!defined ('XAJAX_FORM_VALUES')) define ('XAJAX_FORM_VALUES', 'get form values');
 26: /*      
 27:     Constant: XAJAX_INPUT_VALUE
 28:         Specifies that the parameter will contain the value of an input control.
 29: */
 30: if (!defined ('XAJAX_INPUT_VALUE')) define ('XAJAX_INPUT_VALUE', 'get input value');
 31: /*      
 32:     Constant: XAJAX_CHECKED_VALUE
 33:         Specifies that the parameter will consist of a boolean value of a checkbox.
 34: */
 35: if (!defined ('XAJAX_CHECKED_VALUE')) define ('XAJAX_CHECKED_VALUE', 'get checked value');
 36: /*      
 37:     Constant: XAJAX_ELEMENT_INNERHTML
 38:         Specifies that the parameter value will be the innerHTML value of the element.
 39: */
 40: if (!defined ('XAJAX_ELEMENT_INNERHTML')) define ('XAJAX_ELEMENT_INNERHTML', 'get element innerHTML');
 41: /*      
 42:     Constant: XAJAX_QUOTED_VALUE
 43:         Specifies that the parameter will be a quoted value (string).
 44: */
 45: if (!defined ('XAJAX_QUOTED_VALUE')) define ('XAJAX_QUOTED_VALUE', 'quoted value');
 46: /*      
 47:     Constant: XAJAX_JS_VALUE
 48:         Specifies that the parameter will be a non-quoted value (evaluated by the 
 49:         browsers javascript engine at run time.
 50: */
 51: if (!defined ('XAJAX_JS_VALUE')) define ('XAJAX_JS_VALUE', 'unquoted value');
 52: 
 53: /*
 54:     Class: xajaxRequest
 55:     
 56:     Used to store and generate the client script necessary to invoke
 57:     a xajax request from the browser to the server script.
 58:     
 59:     This object is typically generated by the <xajax->register> method
 60:     and can be used to quickly generate the javascript that is used
 61:     to initiate a xajax request to the registered function, object, event
 62:     or other xajax call.
 63: */
 64: class xajaxRequest
 65: {
 66:     /*
 67:         String: sName
 68:         
 69:         The name of the function.
 70:     */
 71:     private $sName;
 72:     
 73:     /*
 74:         String: sQuoteCharacter
 75:         
 76:         A string containing either a single or a double quote character
 77:         that will be used during the generation of the javascript for
 78:         this function.  This can be set prior to calling <xajaxRequest->printScript>
 79:     */
 80:     private $sQuoteCharacter;
 81:     
 82:     /*
 83:         Array: aParameters
 84:     
 85:         An array of parameters that will be used to populate the argument list
 86:         for this function when the javascript is output in <xajaxRequest->printScript>  
 87:     */
 88:     private $aParameters;
 89:     
 90:     /*
 91:         Function: xajaxRequest
 92:         
 93:         Construct and initialize this request.
 94:         
 95:         sName - (string):  The name of this request.
 96:     */
 97:     public function __construct($sName)
 98:     {
 99:         $this->aParameters = array();
100:         $this->sQuoteCharacter = '"';
101:         $this->sName = $sName;
102:     }
103:     
104:     /*
105:         Function: useSingleQuote
106:         
107:         Call this to instruct the request to use single quotes when generating
108:         the javascript.
109:     */
110:     public function useSingleQuote()
111:     {
112:         $this->sQuoteCharacter = "'";
113:     }
114:     
115:     /*
116:         Function: useDoubleQuote
117:         
118:         Call this to instruct the request to use double quotes while generating
119:         the javascript.
120:     */
121:     public function useDoubleQuote()
122:     {
123:         $this->sQuoteCharacter = '"';
124:     }
125:     
126:     /*
127:         Function: clearParameters
128:         
129:         Clears the parameter list associated with this request.
130:     */
131:     public function clearParameters()
132:     {
133:         $this->aParameters = array();
134:     }
135:     
136:     /*
137:         Function: addParameter
138:         
139:         Adds a parameter value to the parameter list for this request.
140:         
141:         sType - (string): The type of the value to be used.
142:         sValue - (string: The value to be used.
143:         
144:         See Also:
145:         See <xajaxRequest->setParameter> for details.
146:     */
147:     public function addParameter()
148:     {
149:         $aArgs = func_get_args();
150:         
151:         if (1 < count($aArgs))
152:             $this->setParameter(
153:                 count($this->aParameters), 
154:                 $aArgs[0], 
155:                 $aArgs[1]);
156:     }
157:     
158:     /*
159:         Function: setParameter
160:         
161:         Sets a specific parameter value.
162:         
163:         Parameters:
164:         
165:         nParameter - (number): The index of the parameter to set
166:         sType - (string): The type of value
167:         sValue - (string): The value as it relates to the specified type
168:         
169:         Note:
170:         
171:         Types should be one of the following <XAJAX_FORM_VALUES>, <XAJAX_QUOTED_VALUE>,
172:         <XAJAX_JS_VALUE>, <XAJAX_INPUT_VALUE>, <XAJAX_CHECKED_VALUE>.  
173:         The value should be as follows:
174:             <XAJAX_FORM_VALUES> - Use the ID of the form you want to process.
175:             <XAJAX_QUOTED_VALUE> - The string data to be passed.
176:             <XAJAX_JS_VALUE> - A string containing valid javascript (either a javascript
177:                 variable name that will be in scope at the time of the call or a 
178:                 javascript function call whose return value will become the parameter.
179:                 
180:     */
181:     public function setParameter()
182:     {
183:         $aArgs = func_get_args();
184:         
185:         if (2 < count($aArgs))
186:         {
187:             $nParameter = $aArgs[0];
188:             $sType = $aArgs[1];
189:             
190:             if (XAJAX_FORM_VALUES == $sType)
191:             {
192:                 $sFormID = $aArgs[2];
193:                 $this->aParameters[$nParameter] = 
194:                     "xajax.getFormValues(" 
195:                     . $this->sQuoteCharacter 
196:                     . $sFormID 
197:                     . $this->sQuoteCharacter 
198:                     . ")";
199:             }
200:             else if (XAJAX_INPUT_VALUE == $sType)
201:             {
202:                 $sInputID = $aArgs[2];
203:                 $this->aParameters[$nParameter] = 
204:                     "xajax.$(" 
205:                     . $this->sQuoteCharacter 
206:                     . $sInputID 
207:                     . $this->sQuoteCharacter 
208:                     . ").value";
209:             }
210:             else if (XAJAX_CHECKED_VALUE == $sType)
211:             {
212:                 $sCheckedID = $aArgs[2];
213:                 $this->aParameters[$nParameter] = 
214:                     "xajax.$(" 
215:                     . $this->sQuoteCharacter 
216:                     . $sCheckedID 
217:                     . $this->sQuoteCharacter 
218:                     . ").checked";
219:             }
220:             else if (XAJAX_ELEMENT_INNERHTML == $sType)
221:             {
222:                 $sElementID = $aArgs[2];
223:                 $this->aParameters[$nParameter] = 
224:                     "xajax.$(" 
225:                     . $this->sQuoteCharacter 
226:                     . $sElementID 
227:                     . $this->sQuoteCharacter 
228:                     . ").innerHTML";
229:             }
230:             else if (XAJAX_QUOTED_VALUE == $sType)
231:             {
232:                 $sValue = $aArgs[2];
233:                 $this->aParameters[$nParameter] = 
234:                     $this->sQuoteCharacter 
235:                     . $sValue 
236:                     . $this->sQuoteCharacter;
237:             }
238:             else if (XAJAX_JS_VALUE == $sType)
239:             {
240:                 $sValue = $aArgs[2];
241:                 $this->aParameters[$nParameter] = $sValue;
242:             }
243:         }
244:     }
245: 
246:     /*
247:         Function: getScript
248:         
249:         Returns a string representation of the script output (javascript) from 
250:         this request object.  See also:  <xajaxRequest::printScript>
251:     */
252:     public function getScript()
253:     {
254:         ob_start();
255:         $this->printScript();
256:         return ob_get_clean();
257:     }
258:         
259:     /*
260:         Function: printScript
261:         
262:         Generates a block of javascript code that can be used to invoke
263:         the specified xajax request.
264:     */
265:     public function printScript()
266:     {
267:         echo $this->sName;
268:         echo '(';
269:         
270:         $sSeparator = '';
271:         
272:         foreach ($this->aParameters as $sParameter)
273:         {
274:             echo $sSeparator;
275:             echo $sParameter;
276:             $sSeparator = ', ';
277:         }
278:         
279:         echo ')';
280:     }
281: }
282: 
283: /*
284:     Class: xajaxCustomRequest
285:     
286:     This class extends the <xajaxRequest> class such that simple javascript
287:     can be put in place of a xajax request to the server.  The primary purpose
288:     of this class is to provide simple scripting services to the <xajaxControl>
289:     based objects, like <clsInput>, <clsTable> and <clsButton>.
290: */
291: class xajaxCustomRequest extends xajaxRequest
292: {
293:     /*
294:         Array: aVariables;
295:     */
296:     var $aVariables;
297:     
298:     /*
299:         String: sScript;
300:     */
301:     var $sScript;
302:     
303:     /*
304:         Function: xajaxCustomRequest
305:         
306:         Constructs and initializes an instance of the object.
307:         
308:         Parameters:
309:         
310:         sScript - (string):  The javascript (template) that will be printed
311:             upon request.
312:         aVariables - (associative array, optional):  An array of variable name, 
313:             value pairs that will be passed to <xajaxCustomRequest->setVariable>
314:     */
315:     function xajaxCustomRequest($sScript)
316:     {
317:         $this->aVariables = array();
318:         $this->sScript = $sScript;
319:     }
320:     
321:     /*
322:         Function: clearVariables
323:         
324:         Clears the array of variables that will be used to modify the script before
325:         it is printed and sent to the client.
326:     */
327:     function clearVariables()
328:     {
329:         $this->aVariables = array();
330:     }
331:     
332:     /*
333:         Function: setVariable
334:         
335:         Sets a value that will be used to modify the script before it is sent to
336:         the browser.  The <xajaxCustomRequest> object will perform a string 
337:         replace operation on each of the values set with this function.
338:         
339:         Parameters:
340:             $sName - (string): Variable name
341:             $sValue - (string): Value
342:         
343:     */
344:     function setVariable($sName, $sValue)
345:     {
346:         $this->aVariables[$sName] = $sValue;
347:     }
348:     
349:     /*
350:         Function: printScript
351:     */
352:     function printScript()
353:     {
354:         $sScript = $this->sScript;
355:         foreach ($this->aVariables as $sKey => $sValue)
356:             $sScript = str_replace($sKey, $sValue, $sScript);
357:         echo $sScript;
358:     }
359: }
360: 
Autene API documentation generated by ApiGen