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: xajaxCallableObjectPlugin.inc.php
  4: 
  5:     Contains the xajaxCallableObjectPlugin class
  6: 
  7:     Title: xajaxCallableObjectPlugin 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: xajaxCallableObjectPlugin.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_CALLABLE_OBJECT
 23:         Specifies that the item being registered via the <xajax->register> function is a
 24:         object who's methods will be callable from the browser.
 25: */
 26: if (!defined ('XAJAX_CALLABLE_OBJECT')) define ('XAJAX_CALLABLE_OBJECT', 'callable object');
 27: 
 28: //SkipAIO
 29: require dirname(__FILE__) . '/support/xajaxCallableObject.inc.php';
 30: //EndSkipAIO
 31: 
 32: /*
 33:     Class: xajaxCallableObjectPlugin
 34: */
 35: final class xajaxCallableObjectPlugin extends xajaxRequestPlugin
 36: {
 37:     /*
 38:         Array: aCallableObjects
 39:     */
 40:     private $aCallableObjects;
 41: 
 42:     /*
 43:         String: sXajaxPrefix
 44:     */
 45:     private $sXajaxPrefix;
 46:     
 47:     /*
 48:         String: sDefer
 49:     */
 50:     private $sDefer;
 51:     
 52:     private $bDeferScriptGeneration;
 53: 
 54:     /*
 55:         String: sRequestedClass
 56:     */
 57:     private $sRequestedClass;
 58:     
 59:     /*
 60:         String: sRequestedMethod
 61:     */
 62:     private $sRequestedMethod;
 63: 
 64:     /*
 65:         Function: xajaxCallableObjectPlugin
 66:     */
 67:     public function __construct()
 68:     {
 69:         $this->aCallableObjects = array();
 70: 
 71:         $this->sXajaxPrefix = 'xajax_';
 72:         $this->sDefer = '';
 73:         $this->bDeferScriptGeneration = false;
 74: 
 75:         $this->sRequestedClass = NULL;
 76:         $this->sRequestedMethod = NULL;
 77: 
 78:         if (!empty($_GET['xjxcls'])) $this->sRequestedClass = $_GET['xjxcls'];
 79:         if (!empty($_GET['xjxmthd'])) $this->sRequestedMethod = $_GET['xjxmthd'];
 80:         if (!empty($_POST['xjxcls'])) $this->sRequestedClass = $_POST['xjxcls'];
 81:         if (!empty($_POST['xjxmthd'])) $this->sRequestedMethod = $_POST['xjxmthd'];
 82:     }
 83: 
 84:     /*
 85:         Function: configure
 86:     */
 87:     public function configure($sName, $mValue)
 88:     {
 89:         if ('wrapperPrefix' == $sName) {
 90:             $this->sXajaxPrefix = $mValue;
 91:         } else if ('scriptDefferal' == $sName) {
 92:             if (true === $mValue) $this->sDefer = 'defer ';
 93:             else $this->sDefer = '';
 94:         } else if ('deferScriptGeneration' == $sName) {
 95:             if (true === $mValue || false === $mValue)
 96:                 $this->bDeferScriptGeneration = $mValue;
 97:             else if ('deferred' === $mValue)
 98:                 $this->bDeferScriptGeneration = $mValue;
 99:         }
100:     }
101: 
102:     /*
103:         Function: register
104:     */
105:     public function register($aArgs)
106:     {
107:         if (1 < count($aArgs))
108:         {
109:             $sType = $aArgs[0];
110: 
111:             if (XAJAX_CALLABLE_OBJECT == $sType)
112:             {
113:                 $xco = $aArgs[1];
114: 
115: //SkipDebug
116:                 if (false === is_object($xco))
117:                 {
118:                     trigger_error("To register a callable object, please provide an instance of the desired class.", E_USER_WARNING);
119:                     return false;
120:                 }
121: //EndSkipDebug
122: 
123:                 if (false === ($xco instanceof xajaxCallableObject))
124:                     $xco = new xajaxCallableObject($xco);
125: 
126:                 if (2 < count($aArgs))
127:                     if (is_array($aArgs[2]))
128:                         foreach ($aArgs[2] as $sKey => $aValue)
129:                             foreach ($aValue as $sName => $sValue)
130:                                 $xco->configure($sKey, $sName, $sValue);
131: 
132:                 $this->aCallableObjects[] = $xco;
133: 
134:                 return $xco->generateRequests($this->sXajaxPrefix);
135:             }
136:         }
137: 
138:         return false;
139:     }
140: 
141:     /*
142:         Function: generateClientScript
143:     */
144:     public function generateClientScript()
145:     {
146:         if (false === $this->bDeferScriptGeneration || 'deferred' === $this->bDeferScriptGeneration)
147:         {
148:             if (0 < count($this->aCallableObjects))
149:             {
150:                 $sCrLf = "\n";
151:                 
152:                 echo $sCrLf;
153:                 echo '<';
154:                 echo 'script type="text/javascript" ';
155:                 echo $this->sDefer;
156:                 echo 'charset="UTF-8">';
157:                 echo $sCrLf;
158:                 echo '/* <';
159:                 echo '![CDATA[ */';
160:                 echo $sCrLf;
161: 
162:                 foreach(array_keys($this->aCallableObjects) as $sKey)
163:                     $this->aCallableObjects[$sKey]->generateClientScript($this->sXajaxPrefix);
164: 
165:                 echo '/* ]]> */';
166:                 echo $sCrLf;
167:                 echo '<';
168:                 echo '/script>';
169:                 echo $sCrLf;
170:             }
171:         }
172:     }
173: 
174:     /*
175:         Function: canProcessRequest
176:     */
177:     public function canProcessRequest()
178:     {
179:         if (NULL == $this->sRequestedClass)
180:             return false;
181:         if (NULL == $this->sRequestedMethod)
182:             return false;
183: 
184:         return true;
185:     }
186: 
187:     /*
188:         Function: processRequest
189:     */
190:     public function processRequest()
191:     {
192:         if (NULL == $this->sRequestedClass)
193:             return false;
194:         if (NULL == $this->sRequestedMethod)
195:             return false;
196: 
197:         $objArgumentManager = xajaxArgumentManager::getInstance();
198:         $aArgs = $objArgumentManager->process();
199: 
200:         foreach (array_keys($this->aCallableObjects) as $sKey)
201:         {
202:             $xco = $this->aCallableObjects[$sKey];
203: 
204:             if ($xco->isClass($this->sRequestedClass))
205:             {
206:                 if ($xco->hasMethod($this->sRequestedMethod))
207:                 {
208:                     $xco->call($this->sRequestedMethod, $aArgs);
209:                     return true;
210:                 }
211:             }
212:         }
213: 
214:         return 'Invalid request for a callable object.';
215:     }
216: }
217: 
218: $objPluginManager = xajaxPluginManager::getInstance();
219: $objPluginManager->registerPlugin(new xajaxCallableObjectPlugin(), 102);
220: 
Autene API documentation generated by ApiGen