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: xajaxFunctionPlugin.inc.php
  4: 
  5:     Contains the xajaxFunctionPlugin class
  6: 
  7:     Title: xajaxFunctionPlugin 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: xajaxFunctionPlugin.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_FUNCTION
 23:         Specifies that the item being registered via the <xajax->register> function
 24:         is a php function available at global scope, or a specific function from
 25:         an instance of an object.
 26: */
 27: if (!defined ('XAJAX_FUNCTION')) define ('XAJAX_FUNCTION', 'function');
 28: 
 29: // require_once is necessary here as the xajaxEvent class will include this also
 30: //SkipAIO
 31: require_once dirname(__FILE__) . '/support/xajaxUserFunction.inc.php';
 32: //EndSkipAIO
 33: 
 34: /*
 35:     Class: xajaxFunctionPlugin
 36: */
 37: class xajaxFunctionPlugin extends xajaxRequestPlugin
 38: {
 39:     /*
 40:         Array: aFunctions
 41:         
 42:         An array of <xajaxUserFunction> object that are registered and
 43:         available via a <xajax.request> call.
 44:     */
 45:     var $aFunctions;
 46: 
 47:     /*
 48:         String: sXajaxPrefix
 49:         
 50:         A configuration setting that is stored locally and used during
 51:         the client script generation phase.
 52:     */
 53:     var $sXajaxPrefix;
 54:     
 55:     /*
 56:         String: sDefer
 57:         
 58:         Configuration option that can be used to request that the
 59:         javascript file is loaded after the page has been fully loaded.
 60:     */
 61:     var $sDefer;
 62:     
 63:     var $bDeferScriptGeneration;
 64: 
 65:     /*
 66:         String: sRequestedFunction
 67: 
 68:         This string is used to temporarily hold the name of the function
 69:         that is being requested (during the request processing phase).
 70: 
 71:         Since canProcessRequest loads this value from the get or post
 72:         data, it is unnecessary to load it again.
 73:     */
 74:     var $sRequestedFunction;
 75: 
 76:     /*
 77:         Function: xajaxFunctionPlugin
 78:         
 79:         Constructs and initializes the <xajaxFunctionPlugin>.  The GET and POST
 80:         data is searched for xajax function call parameters.  This will later
 81:         be used to determine if the request is for a registered function in
 82:         <xajaxFunctionPlugin->canProcessRequest>
 83:     */
 84:     function xajaxFunctionPlugin()
 85:     {
 86:         $this->aFunctions = array();
 87: 
 88:         $this->sXajaxPrefix = 'xajax_';
 89:         $this->sDefer = '';
 90:         $this->bDeferScriptGeneration = false;
 91: 
 92:         $this->sRequestedFunction = NULL;
 93:         
 94:         if (isset($_GET['xjxfun'])) $this->sRequestedFunction = $_GET['xjxfun'];
 95:         if (isset($_POST['xjxfun'])) $this->sRequestedFunction = $_POST['xjxfun'];
 96:     }
 97: 
 98:     /*
 99:         Function: configure
100:         
101:         Sets/stores configuration options used by this plugin.
102:     */
103:     function configure($sName, $mValue)
104:     {
105:         if ('wrapperPrefix' == $sName) {
106:             $this->sXajaxPrefix = $mValue;
107:         } else if ('scriptDefferal' == $sName) {
108:             if (true === $mValue) $this->sDefer = 'defer ';
109:             else $this->sDefer = '';
110:         } else if ('deferScriptGeneration' == $sName) {
111:             if (true === $mValue || false === $mValue)
112:                 $this->bDeferScriptGeneration = $mValue;
113:             else if ('deferred' === $mValue)
114:                 $this->bDeferScriptGeneration = $mValue;
115:         }
116:     }
117: 
118:     /*
119:         Function: register
120:         
121:         Provides a mechanism for functions to be registered and made available to
122:         the page via the javascript <xajax.request> call.
123:     */
124:     function register($aArgs)
125:     {
126:         if (1 < count($aArgs))
127:         {
128:             $sType = $aArgs[0];
129: 
130:             if (XAJAX_FUNCTION == $sType)
131:             {
132:                 $xuf = $aArgs[1];
133: 
134:                 if (false === ($xuf instanceof xajaxUserFunction))
135:                     $xuf = new xajaxUserFunction($xuf);
136: 
137:                 if (2 < count($aArgs))
138:                 {
139:                     if (is_array($aArgs[2]))
140:                     {
141:                         foreach ($aArgs[2] as $sName => $sValue)
142:                         {
143:                             $xuf->configure($sName, $sValue);
144:                         }
145:                     } else {
146:                         $xuf->configure('include', $aArgs[2]);
147:                     }
148:                 }
149:                 $this->aFunctions[] = $xuf;
150: 
151:                 return $xuf->generateRequest($this->sXajaxPrefix);
152:             }
153:         }
154: 
155:         return false;
156:     }
157: 
158:     /*
159:         Function: generateClientScript
160:         
161:         Called by the <xajaxPluginManager> during the client script generation
162:         phase.  This is used to generate a block of javascript code that will
163:         contain function declarations that can be used on the browser through
164:         javascript to initiate xajax requests.
165:     */
166:     function generateClientScript()
167:     {
168:         if (false === $this->bDeferScriptGeneration || 'deferred' === $this->bDeferScriptGeneration)
169:         {
170:             if (0 < count($this->aFunctions))
171:             {
172:                 echo "\n<script type='text/javascript' " . $this->sDefer . "charset='UTF-8'>\n";
173:                 echo "/* <![CDATA[ */\n";
174: 
175:                 foreach (array_keys($this->aFunctions) as $sKey)
176:                     $this->aFunctions[$sKey]->generateClientScript($this->sXajaxPrefix);
177: 
178:                 echo "/* ]]> */\n";
179:                 echo "</script>\n";
180:             }
181:         }
182:     }
183: 
184:     /*
185:         Function: canProcessRequest
186:         
187:         Determines whether or not the current request can be processed
188:         by this plugin.
189:         
190:         Returns:
191:         
192:         boolean - True if the current request can be handled by this plugin;
193:             false otherwise.
194:     */
195:     function canProcessRequest()
196:     {
197:         if (NULL == $this->sRequestedFunction)
198:             return false;
199: 
200:         return true;
201:     }
202: 
203:     /*
204:         Function: processRequest
205:         
206:         Called by the <xajaxPluginManager> when a request needs to be
207:         processed.
208:         
209:         Returns:
210:         
211:         mixed - True when the request has been processed successfully.
212:             An error message when an error has occurred.
213:     */
214:     function processRequest()
215:     {
216:         if (NULL == $this->sRequestedFunction)
217:             return false;
218: 
219:         $objArgumentManager = xajaxArgumentManager::getInstance();
220:         $aArgs = $objArgumentManager->process();
221: 
222:         foreach (array_keys($this->aFunctions) as $sKey)
223:         {
224:             $xuf = $this->aFunctions[$sKey];
225: 
226:             if ($xuf->getName() == $this->sRequestedFunction)
227:             {
228:                 $xuf->call($aArgs);
229:                 return true;
230:             }
231:         }
232: 
233:         return 'Invalid function request received; no request processor found with this name.';
234:     }
235: }
236: 
237: $objPluginManager = xajaxPluginManager::getInstance();
238: $objPluginManager->registerPlugin(new xajaxFunctionPlugin(), 100);
239: 
Autene API documentation generated by ApiGen