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: xajaxPluginManager.inc.php
  4: 
  5:     Contains the xajax plugin manager.
  6:     
  7:     Title: xajax plugin manager
  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: xajaxPluginManager.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: //SkipAIO
 22: require(dirname(__FILE__) . '/xajaxPlugin.inc.php');
 23: //EndSkipAIO
 24: 
 25: /*
 26:     Class: xajaxPluginManager
 27: */
 28: final class xajaxPluginManager
 29: {
 30:     /*
 31:         Array: aRequestPlugins
 32:     */
 33:     private $aRequestPlugins;
 34:     
 35:     /*
 36:         Array: aResponsePlugins
 37:     */
 38:     private $aResponsePlugins;
 39:     
 40:     /*
 41:         Array: aConfigurable
 42:     */
 43:     private $aConfigurable;
 44:     
 45:     /*
 46:         Array: aRegistrars
 47:     */
 48:     private $aRegistrars;
 49:     
 50:     /*
 51:         Array: aProcessors
 52:     */
 53:     private $aProcessors;
 54:     
 55:     /*
 56:         Array: aClientScriptGenerators
 57:     */
 58:     private $aClientScriptGenerators;
 59:     
 60:     /*
 61:         Function: xajaxPluginManager
 62:         
 63:         Construct and initialize the one and only xajax plugin manager.
 64:     */
 65:     private function __construct()
 66:     {
 67:         $this->aRequestPlugins = array();
 68:         $this->aResponsePlugins = array();
 69:         
 70:         $this->aConfigurable = array();
 71:         $this->aRegistrars = array();
 72:         $this->aProcessors = array();
 73:         $this->aClientScriptGenerators = array();
 74:     }
 75:     
 76:     /*
 77:         Function: getInstance
 78:         
 79:         Implementation of the singleton pattern: returns the one and only instance of the 
 80:         xajax plugin manager.
 81:         
 82:         Returns:
 83:         
 84:         object : a reference to the one and only instance of the
 85:             plugin manager.
 86:     */
 87:     public static function &getInstance()
 88:     {
 89:         static $obj;
 90:         if (!$obj) {
 91:             $obj = new xajaxPluginManager();    
 92:         }
 93:         return $obj;
 94:     }
 95:     
 96:     /*
 97:         Function: loadPlugins
 98:         
 99:         Loads plugins from the folders specified.
100:         
101:         Parameters:
102:             $aFolders - (array): Array of folders to check for plugins
103:     */
104:     public function loadPlugins($aFolders)
105:     {
106:         foreach ($aFolders as $sFolder) {
107:             if (is_dir($sFolder))
108:             if ($handle = opendir($sFolder)) {
109:                 while (!(false === ($sName = readdir($handle)))) {
110:                     $nLength = strlen($sName);
111:                     if (8 < $nLength) {
112:                         $sFileName = substr($sName, 0, $nLength - 8);
113:                         $sExtension = substr($sName, $nLength - 8, 8);
114:                         if ('.inc.php' == $sExtension) {
115:                             require $sFolder . '/' . $sFileName . $sExtension;
116:                         }
117:                     }
118:                 }
119:                 
120:                 closedir($handle);
121:             }
122:         }
123:     }
124:     
125:     /*
126:         Function: _insertIntoArray
127:         
128:         Inserts an entry into an array given the specified priority number. 
129:         If a plugin already exists with the given priority, the priority is
130:         automatically incremented until a free spot is found.  The plugin
131:         is then inserted into the empty spot in the array.
132:         
133:         Parameters:
134:         
135:         $aPlugins - (array): Plugins array
136:         $objPlugin - (object): A reference to an instance of a plugin.
137:         $nPriority - (number): The desired priority, used to order
138:             the plugins.
139:         
140:     */
141:     private function _insertIntoArray(&$aPlugins, $objPlugin, $nPriority)
142:     {
143:         while (isset($aPlugins[$nPriority]))
144:             $nPriority++;
145:         
146:         $aPlugins[$nPriority] = $objPlugin;
147:     }
148:     
149:     /*
150:         Function: registerPlugin
151:         
152:         Registers a plugin.
153:         
154:         Parameters:
155:         
156:         objPlugin - (object):  A reference to an instance of a plugin.
157:         
158:         Note:
159:         Below is a table for priorities and their description:
160:         0 thru 999: Plugins that are part of or extensions to the xajax core
161:         1000 thru 8999: User created plugins, typically, these plugins don't care about order
162:         9000 thru 9999: Plugins that generally need to be last or near the end of the plugin list
163:     */
164:     public function registerPlugin($objPlugin, $nPriority=1000)
165:     {
166:         if ($objPlugin instanceof xajaxRequestPlugin)
167:         {
168:             $this->_insertIntoArray($this->aRequestPlugins, $objPlugin, $nPriority);
169:             
170:             if (method_exists($objPlugin, 'register'))
171:                 $this->_insertIntoArray($this->aRegistrars, $objPlugin, $nPriority);
172:             
173:             if (method_exists($objPlugin, 'canProcessRequest'))
174:                 if (method_exists($objPlugin, 'processRequest'))
175:                     $this->_insertIntoArray($this->aProcessors, $objPlugin, $nPriority);
176:         }
177:         else if ( $objPlugin instanceof xajaxResponsePlugin)
178:         {
179:             $this->aResponsePlugins[] = $objPlugin;
180:         }
181:         else
182:         {
183: //SkipDebug
184:             $objLanguageManager = xajaxLanguageManager::getInstance();
185:             trigger_error(
186:                 $objLanguageManager->getText('XJXPM:IPLGERR:01') 
187:                 . get_class($objPlugin) 
188:                 . $objLanguageManager->getText('XJXPM:IPLGERR:02')
189:                 , E_USER_ERROR
190:                 );
191: //EndSkipDebug
192:         }
193:         
194:         if (method_exists($objPlugin, 'configure'))
195:             $this->_insertIntoArray($this->aConfigurable, $objPlugin, $nPriority);
196: 
197:         if (method_exists($objPlugin, 'generateClientScript'))
198:             $this->_insertIntoArray($this->aClientScriptGenerators, $objPlugin, $nPriority);
199:     }
200: 
201:     /*
202:         Function: canProcessRequest
203:         
204:         Calls each of the request plugins and determines if the
205:         current request can be processed by one of them.  If no processor identifies
206:         the current request, then the request must be for the initial page load.
207:         
208:         See <xajax->canProcessRequest> for more information.
209:     */
210:     public function canProcessRequest()
211:     {
212:         $bHandled = false;
213:         
214:         $aKeys = array_keys($this->aProcessors);
215:         sort($aKeys);
216:         foreach ($aKeys as $sKey) {
217:             $mResult = $this->aProcessors[$sKey]->canProcessRequest();
218:             if (true === $mResult)
219:                 $bHandled = true;
220:             else if (is_string($mResult))
221:                 return $mResult;
222:         }
223: 
224:         return $bHandled;
225:     }
226: 
227:     /*
228:         Function: processRequest
229:         
230:         Calls each of the request plugins to request that they process the
231:         current request.  If the plugin processes the request, it will
232:         return true.
233:     */
234:     public function processRequest()
235:     {
236:         $bHandled = false;
237:         
238:         $aKeys = array_keys($this->aProcessors);
239:         sort($aKeys);
240:         foreach ($aKeys as $sKey) {
241:             $mResult = $this->aProcessors[$sKey]->processRequest();
242:             if (true === $mResult)
243:                 $bHandled = true;
244:             else if (is_string($mResult))
245:                 return $mResult;
246:         }
247: 
248:         return $bHandled;
249:     }
250:     
251:     /*
252:         Function: configure
253:         
254:         Call each of the request plugins passing along the configuration
255:         setting specified.
256:         
257:         Parameters:
258:         
259:         sName - (string):  The name of the configuration setting to set.
260:         mValue - (mixed):  The value to be set.
261:     */
262:     public function configure($sName, $mValue)
263:     {
264:         $aKeys = array_keys($this->aConfigurable);
265:         sort($aKeys);
266:         foreach ($aKeys as $sKey)
267:             $this->aConfigurable[$sKey]->configure($sName, $mValue);
268:     }
269:     
270:     /*
271:         Function: register
272:         
273:         Call each of the request plugins and give them the opportunity to 
274:         handle the registration of the specified function, event or callable object.
275:         
276:         Parameters:
277:          $aArgs - (array) :
278:     */
279:     public function register($aArgs)
280:     {
281:         $aKeys = array_keys($this->aRegistrars);
282:         sort($aKeys);
283:         foreach ($aKeys as $sKey)
284:         {
285:             $objPlugin = $this->aRegistrars[$sKey];
286:             $mResult = $objPlugin->register($aArgs);
287:             if ( $mResult instanceof xajaxRequest )
288:                 return $mResult;
289:             if (is_array($mResult))
290:                 return $mResult;
291:             if (is_bool($mResult))
292:                 if (true === $mResult)
293:                     return true;
294:         }
295: //SkipDebug
296:         $objLanguageManager = xajaxLanguageManager::getInstance();
297:         trigger_error(
298:             $objLanguageManager->getText('XJXPM:MRMERR:01') 
299:             . print_r($aArgs, true)
300:             , E_USER_ERROR
301:             );
302: //EndSkipDebug
303:     }
304:     
305:     /*
306:         Function: generateClientScript
307:         
308:         Call each of the request and response plugins giving them the
309:         opportunity to output some javascript to the page being generated.  This
310:         is called only when the page is being loaded initially.  This is not 
311:         called when processing a request.
312:     */
313:     public function generateClientScript()
314:     {
315:         $aKeys = array_keys($this->aClientScriptGenerators);
316:         sort($aKeys);
317:         foreach ($aKeys as $sKey)
318:             $this->aClientScriptGenerators[$sKey]->generateClientScript();
319:     }
320:     
321:     /*
322:         Function: getResponsePlugin
323:         
324:         Locate the specified response plugin by name and return
325:         a reference to it if one exists.
326:         
327:         Parameters:
328:             $sName - (string): Name of the plugin.
329:             
330:         Returns:
331:             mixed : Returns plugin or false if not found.
332:     */
333:     public function getResponsePlugin($sName)
334:     {
335:         $aKeys = array_keys($this->aResponsePlugins);
336:         sort($aKeys);
337:         foreach ($aKeys as $sKey)
338:             if ( $this->aResponsePlugins[$sKey] instanceof  $sName )
339:                 return $this->aResponsePlugins[$sKey];
340:         $bFailure = false;
341:         return $bFailure;
342:     }
343: 
344:     /*
345:         Function: getRequestPlugin
346:         
347:         Locate the specified response plugin by name and return
348:         a reference to it if one exists.
349:         
350:         Parameters:
351:             $sName - (string): Name of the plugin.
352:             
353:         Returns:
354:             mixed : Returns plugin or false if not found.
355:     */
356:     public function getRequestPlugin($sName)
357:     {
358:         $aKeys = array_keys($this->aRequestPlugins);
359:         sort($aKeys);
360:         foreach ($aKeys as $sKey) {
361:             if ( get_class($this->aRequestPlugins[$sKey]) ==  $sName ) {
362:                 return $this->aRequestPlugins[$sKey];
363:             } 
364:         }   
365: 
366: 
367:         $bFailure = false;
368:         return $bFailure;
369:     }
370: }
371: 
Autene API documentation generated by ApiGen