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: xajaxUserFunction.inc.php
  4: 
  5:     Contains the xajaxUserFunction class
  6: 
  7:     Title: xajaxUserFunction 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: xajaxUserFunction.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:     Class: xajaxUserFunction
 23:     
 24:     Construct instances of this class to define functions that will be registered
 25:     with the <xajax> request processor.  This class defines the parameters that
 26:     are needed for the definition of a xajax enabled function.  While you can
 27:     still specify functions by name during registration, it is advised that you
 28:     convert to using this class when you wish to register external functions or 
 29:     to specify call options as well.
 30: */
 31: final class xajaxUserFunction
 32: {
 33:     /*
 34:         String: sAlias
 35:         
 36:         An alias to use for this function.  This is useful when you want
 37:         to call the same xajax enabled function with a different set of
 38:         call options from what was already registered.
 39:     */
 40:     private $sAlias;
 41:     
 42:     /*
 43:         Object: uf
 44:         
 45:         A string or array which defines the function to be registered.
 46:     */
 47:     private $uf;
 48:     
 49:     /*
 50:         String: sInclude
 51:         
 52:         The path and file name of the include file that contains the function.
 53:     */
 54:     private $sInclude;
 55:     
 56:     /*
 57:         Array: aConfiguration
 58:         
 59:         An associative array containing call options that will be sent to the
 60:         browser curing client script generation.
 61:     */
 62:     private $aConfiguration;
 63:     
 64:     /*
 65:         Function: xajaxUserFunction
 66:         
 67:         Constructs and initializes the <xajaxUserFunction> object.
 68:         
 69:         $uf - (mixed): A function specification in one of the following formats:
 70:         
 71:             - a three element array:
 72:                 (string) Alternate function name: when a method of a class has the same
 73:                     name as another function in the system, you can provide an alias to 
 74:                     help avoid collisions.
 75:                 (object or class name) Class: the name of the class or an instance of
 76:                     the object which contains the function to be called.
 77:                 (string) Method:  the name of the method that will be called.
 78:             - a two element array:
 79:                 (object or class name) Class: the name of the class or an instance of
 80:                     the object which contains the function to be called.
 81:                 (string) Method:  the name of the method that will be called.
 82:             - a string:
 83:                 the name of the function that is available at global scope (not in a 
 84:                 class.
 85:         
 86:         $sInclude - deprecated syntax - use ->configure('include','/path/to/file'); instead
 87:         $sInclude - (string, optional):  The path and file name of the include file
 88:             that contains the class or function to be called.
 89:             
 90:         $aConfiguration - marked as deprecated - might become reactivated as argument #2
 91:         $aConfiguration - (array, optional):  An associative array of call options
 92:             that will be used when sending the request from the client.
 93:             
 94:         Examples:
 95:         
 96:             $myFunction = array('alias', 'myClass', 'myMethod');
 97:             $myFunction = array('alias', &$myObject, 'myMethod');
 98:             $myFunction = array('myClass', 'myMethod');
 99:             $myFunction = array(&$myObject, 'myMethod');
100:             $myFunction = 'myFunction';
101:             
102:             $myUserFunction = new xajaxUserFunction($myFunction, 'myFile.inc.php', array(
103:                 'method' => 'get',
104:                 'mode' => 'synchronous'
105:                 ));
106:                 
107:             $xajax->register(XAJAX_FUNCTION, $myUserFunction);              
108:     */
109:     public function xajaxUserFunction($uf) // /*deprecated parameters */ $sInclude=NULL, $aConfiguration=array())
110:     {
111:         $this->sAlias = '';
112:         $this->uf = $uf;
113:         $this->aConfiguration = array();
114: 
115: /*deprecated parameters */
116: //      $this->sInclude = $sInclude;
117: //      foreach ($aConfiguration as $sKey => $sValue)
118: //          $this->configure($sKey, $sValue);
119:         
120:         if (is_array($this->uf) && 2 < count($this->uf))
121:         {
122:             $this->sAlias = $this->uf[0];
123:             $this->uf = array_slice($this->uf, 1);
124:         }
125: 
126: //SkipDebug
127:         if (is_array($this->uf) && 2 != count($this->uf))
128:             trigger_error(
129:                 'Invalid function declaration for xajaxUserFunction.',
130:                 E_USER_ERROR
131:                 );
132: //EndSkipDebug
133:     }
134:     
135:     /*
136:         Function: getName
137:         
138:         Get the name of the function being referenced.
139:         
140:         Returns:
141:         
142:         string - the name of the function contained within this object.
143:     */
144:     public function getName()
145:     {
146:         // Do not use sAlias here!
147:         if (is_array($this->uf))
148:             return $this->uf[1];
149:         return $this->uf;
150:     }
151:     
152:     /*
153:         Function: configure
154:         
155:         Call this to set call options for this instance.
156:     */
157:     public function configure($sName, $sValue)
158:     {
159:         if ('alias' == $sName)
160:             $this->sAlias = $sValue;
161:         if ('include' == $sName)
162:             $this->sInclude = $sValue;
163:         else
164:             $this->aConfiguration[$sName] = $sValue;
165:     }
166:     
167:     /*
168:         Function: generateRequest
169:         
170:         Constructs and returns a <xajaxRequest> object which is capable
171:         of generating the javascript call to invoke this xajax enabled
172:         function.
173:     */
174:     public function generateRequest($sXajaxPrefix)
175:     {
176:         $sAlias = $this->getName();
177:         if (0 < strlen($this->sAlias))
178:             $sAlias = $this->sAlias;
179:         return new xajaxRequest("{$sXajaxPrefix}{$sAlias}");
180:     }
181:     
182:     /*
183:         Function: generateClientScript
184:         
185:         Called by the <xajaxPlugin> that is referencing this function
186:         reference during the client script generation phase.  This function
187:         will generate the javascript function stub that is sent to the
188:         browser on initial page load.
189:     */
190:     public function generateClientScript($sXajaxPrefix)
191:     {
192:         $sFunction = $this->getName();
193:         $sAlias = $sFunction;
194:         if (0 < strlen($this->sAlias))
195:             $sAlias = $this->sAlias;
196:         echo "{$sXajaxPrefix}{$sAlias} = function() { ";
197:         echo "return xajax.request( ";
198:         echo "{ xjxfun: '{$sFunction}' }, ";
199:         echo "{ parameters: arguments";
200: 
201:         $sSeparator = ", ";
202:         foreach ($this->aConfiguration as $sKey => $sValue)
203:             echo "{$sSeparator}{$sKey}: {$sValue}";
204: 
205:         echo " } ); ";
206:         echo "};\n";
207:     }
208: 
209:     /*
210:         Function: call
211:         
212:         Called by the <xajaxPlugin> that references this function during the
213:         request processing phase.  This function will call the specified
214:         function, including an external file if needed and passing along 
215:         the specified arguments.
216:     */
217:     public function call($aArgs=array())
218:     {
219:         $objResponseManager = xajaxResponseManager::getInstance();
220:         
221:         if (NULL != $this->sInclude)
222:         {
223:             ob_start();
224:             require_once $this->sInclude;
225:             $sOutput = ob_get_clean();
226:             
227: //SkipDebug
228:             if (0 < strlen($sOutput))
229:             {
230:                 $sOutput = 'From include file: ' . $this->sInclude . ' => ' . $sOutput;
231:                 $objResponseManager->debug($sOutput);
232:             }
233: //EndSkipDebug
234:         }
235:         
236:         $mFunction = $this->uf;
237:         $objResponseManager->append(call_user_func_array($mFunction, $aArgs));
238:     }
239: }
240: ?>
241: 
Autene API documentation generated by ApiGen