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: xajaxCallableObject.inc.php
  4: 
  5:     Contains the xajaxCallableObject class
  6: 
  7:     Title: xajaxCallableObject 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: xajaxCallableObject.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: xajaxCallableObject
 23:     
 24:     A class that stores a reference to an object whose methods can be called from
 25:     the client via a xajax request.  <xajax> will call 
 26:     <xajaxCallableObject->generateClientScript> so that stub functions can be 
 27:     generated and sent to the browser.
 28: */
 29: final class xajaxCallableObject
 30: {
 31:     /*
 32:         Object: obj
 33:         
 34:         A reference to the callable object.
 35:     */
 36:     private $obj;
 37:     
 38:     /*
 39:         Array: aConfiguration
 40:         
 41:         An associative array that will contain configuration options for zero
 42:         or more of the objects methods.  These configuration options will 
 43:         define the call options for each request.  The call options will be
 44:         passed to the client browser when the function stubs are generated.
 45:     */
 46:     private $aConfiguration;
 47:     
 48:     /*
 49:         Function: xajaxCallableObject
 50:         
 51:         Constructs and initializes the <xajaxCallableObject>
 52:         
 53:         obj - (object):  The object to reference.
 54:     */
 55:     public function __construct($obj)
 56:     {
 57:         $this->obj = $obj;
 58:         $this->aConfiguration = array();
 59:     }
 60:     
 61:     /*
 62:         Function: getName
 63:         
 64:         Returns the name of this callable object.  This is typically the
 65:         class name of the object.
 66:     */
 67:     public function getName()
 68:     {
 69:         return get_class($this->obj);
 70:     }
 71:     
 72:     /*
 73:         Function: configure
 74:         
 75:         Used to set configuration options / call options for each method.
 76:         
 77:         sMethod - (string):  The name of the method.
 78:         sName - (string):  The name of the configuration option.
 79:         sValue - (string):  The value to be set.
 80:     */
 81:     public function configure($sMethod, $sName, $sValue)
 82:     {
 83:         $sMethod = strtolower($sMethod);
 84:         
 85:         if (false == isset($this->aConfiguration[$sMethod]))
 86:             $this->aConfiguration[$sMethod] = array();
 87:             
 88:         $this->aConfiguration[$sMethod][$sName] = $sValue;
 89:     }
 90: 
 91:     /*
 92:         Function: generateRequests
 93:         
 94:         Produces an array of <xajaxRequest> objects, one for each method
 95:         exposed by this callable object.
 96:         
 97:         sXajaxPrefix - (string):  The prefix to be prepended to the
 98:             javascript function names; this will correspond to the name
 99:             used for the function stubs that are generated by the
100:             <xajaxCallableObject->generateClientScript> call.
101:     */
102:     public function generateRequests($sXajaxPrefix)
103:     {
104:         $aRequests = array();
105:         
106:         $sClass = get_class($this->obj);
107:         
108:         foreach (get_class_methods($this->obj) as $sMethodName)
109:         {
110:             $bInclude = true;
111:             // exclude magic __call, __construct, __destruct methods
112:             if (2 < strlen($sMethodName))
113:                 if ("__" == substr($sMethodName, 0, 2))
114:                     $bInclude = false;
115:             // exclude constructor
116:             if ($sClass == $sMethodName)
117:                 $bInclude = false;
118:             if ($bInclude)
119:                 $aRequests[strtolower($sMethodName)] = 
120:                     new xajaxRequest("{$sXajaxPrefix}{$sClass}.{$sMethodName}");
121:         }
122: 
123:         return $aRequests;
124:     }
125:     
126:     /*
127:         Function: generateClientScript
128:         
129:         Called by <xajaxCallableObject->generateClientScript> while <xajax> is 
130:         generating the javascript to be sent to the browser.
131: 
132:         sXajaxPrefix - (string):  The prefix to be prepended to the
133:             javascript function names.
134:     */  
135:     public function generateClientScript($sXajaxPrefix)
136:     {
137:         $sClass = get_class($this->obj);
138:         
139:         echo "{$sXajaxPrefix}{$sClass} = {};\n";
140:         
141:         foreach (get_class_methods($this->obj) as $sMethodName)
142:         {
143:             $bInclude = true;
144:             // exclude magic __call, __construct, __destruct methods
145:             if (2 < strlen($sMethodName))
146:                 if ("__" == substr($sMethodName, 0, 2))
147:                     $bInclude = false;
148:             // exclude constructor
149:             if ($sClass == $sMethodName)
150:                 $bInclude = false;
151:             if ($bInclude)
152:             {
153:                 echo "{$sXajaxPrefix}{$sClass}.{$sMethodName} = function() { ";
154:                 echo "return xajax.request( ";
155:                 echo "{ xjxcls: '{$sClass}', xjxmthd: '{$sMethodName}' }, ";
156:                 echo "{ parameters: arguments";
157:                 
158:                 $sSeparator = ", ";
159:                 if (isset($this->aConfiguration['*']))
160:                     foreach ($this->aConfiguration['*'] as $sKey => $sValue)
161:                         echo "{$sSeparator}{$sKey}: {$sValue}";
162:                 if (isset($this->aConfiguration[strtolower($sMethodName)]))
163:                     foreach ($this->aConfiguration[strtolower($sMethodName)] as $sKey => $sValue)
164:                         echo "{$sSeparator}{$sKey}: {$sValue}";
165: 
166:                 echo " } ); ";
167:                 echo "};\n";
168:             }
169:         }
170:     }
171:     
172:     /*
173:         Function: isClass
174:         
175:         Determins if the specified class name matches the class name of the
176:         object referenced by <xajaxCallableObject->obj>.
177:         
178:         sClass - (string):  The name of the class to check.
179:         
180:         Returns:
181:         
182:         boolean - True of the specified class name matches the class of
183:             the object being referenced; false otherwise.
184:     */
185:     public function isClass($sClass)
186:     {
187:         if (get_class($this->obj) === $sClass)
188:             return true;
189:         return false;
190:     }
191:     
192:     /*
193:         Function: hasMethod
194:         
195:         Determines if the specified method name is one of the methods of the
196:         object referenced by <xajaxCallableObject->obj>.
197:         
198:         sMethod - (object):  The name of the method to check.
199:         
200:         Returns:
201:         
202:         boolean - True of the referenced object contains the specified method,
203:             false otherwise.
204:     */
205:     public function hasMethod($sMethod)
206:     {
207:         return method_exists($this->obj, $sMethod) || method_exists($this->obj, "__call");
208:     }
209:     
210:     /*
211:         Function: call
212:         
213:         Call the specified method of the object being referenced using the specified
214:         array of arguments.
215:         
216:         sMethod - (string): The name of the method to call.
217:         aArgs - (array):  The arguments to pass to the method.
218:     */
219:     public function call($sMethod, $aArgs)
220:     {
221:         $objResponseManager = xajaxResponseManager::getInstance();
222:         $objResponseManager->append(
223:             call_user_func_array(
224:                 array($this->obj, $sMethod),
225:                 $aArgs
226:                 )
227:             );
228:     }
229: }
230: 
Autene API documentation generated by ApiGen