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: xajaxLanguageManager.inc.php
  4: 
  5:     Contains the code that manages the inclusion of alternate language support
  6:     files; so debug and error messages can be shown in a language other than
  7:     the default (english) language.
  8: 
  9:     Title: xajaxLanguageManager class
 10: 
 11:     Please see <copyright.inc.php> for a detailed description, copyright
 12:     and license information.
 13: */
 14: 
 15: /*
 16:     @package xajax
 17:     @version $Id: xajaxLanguageManager.inc.php 362 2007-05-29 15:32:24Z calltoconstruct $
 18:     @copyright Copyright (c) 2005-2007 by Jared White & J. Max Wilson
 19:     @copyright Copyright (c) 2008-2010 by Joseph Woolley, Steffen Konerow, Jared White  & J. Max Wilson
 20:     @license http://www.xajaxproject.org/bsd_license.txt BSD License
 21: */
 22: 
 23: /*
 24:     Class: xajaxLanguageManager
 25:     
 26:     This class contains the default language (english) and the code used to supply 
 27:     debug and error messages upon request; as well as the code used to load alternate
 28:     language text as requested via the <xajax::configure> function.
 29: */
 30: final class xajaxLanguageManager
 31: {
 32:     /*
 33:         Array: aMessages
 34:         
 35:         An array of the currently registered languages.
 36:     */
 37:     private $aMessages;
 38:     
 39:     /*
 40:         String: sLanguage
 41:         
 42:         The currently configured language.
 43:     */
 44:     private $sLanguage;
 45:     
 46:     /*
 47:         Function: xajaxLanguageManager
 48:         
 49:         Construct and initialize the one and only xajax language manager object.
 50:     */
 51:     private function __construct()
 52:     {
 53:         $this->aMessages = array();
 54:         
 55:         $this->aMessages['en'] = array(
 56:             'LOGHDR:01' => '** xajax Error Log - ',
 57:             'LOGHDR:02' => " **\n",
 58:             'LOGHDR:03' => "\n\n\n",
 59:             'LOGERR:01' => "** Logging Error **\n\nxajax was unable to write to the error log file:\n",
 60:             'LOGMSG:01' => "** PHP Error Messages: **",
 61:             'CMPRSJS:RDERR:01' => 'The xajax uncompressed Javascript file could not be found in the <b>',
 62:             'CMPRSJS:RDERR:02' => '</b> folder.  Error ',
 63:             'CMPRSJS:WTERR:01' => 'The xajax compressed javascript file could not be written in the <b>',
 64:             'CMPRSJS:WTERR:02' => '</b> folder.  Error ',
 65:             'CMPRSPHP:WTERR:01' => 'The xajax compressed file <b>',
 66:             'CMPRSPHP:WTERR:02' => '</b> could not be written to.  Error ',
 67:             'CMPRSAIO:WTERR:01' => 'The xajax compressed file <b>',
 68:             'CMPRSAIO:WTERR:02' => '/xajaxAIO.inc.php</b> could not be written to.  Error ',
 69:             'DTCTURI:01' => 'xajax Error: xajax failed to automatically identify your Request URI.',
 70:             'DTCTURI:02' => 'Please set the Request URI explicitly when you instantiate the xajax object.',
 71:             'ARGMGR:ERR:01' => 'Malformed object argument received: ',
 72:             'ARGMGR:ERR:02' => ' <==> ',
 73:             'ARGMGR:ERR:03' => 'The incoming xajax data could not be converted from UTF-8',
 74:             'XJXCTL:IAERR:01' => 'Invalid attribute [',
 75:             'XJXCTL:IAERR:02' => '] for element [',
 76:             'XJXCTL:IAERR:03' => '].',
 77:             'XJXCTL:IRERR:01' => 'Invalid request object passed to xajaxControl::setEvent',
 78:             'XJXCTL:IEERR:01' => 'Invalid attribute (event name) [',
 79:             'XJXCTL:IEERR:02' => '] for element [',
 80:             'XJXCTL:IEERR:03' => '].',
 81:             'XJXCTL:MAERR:01' => 'Missing required attribute [',
 82:             'XJXCTL:MAERR:02' => '] for element [',
 83:             'XJXCTL:MAERR:03' => '].',
 84:             'XJXCTL:IETERR:01' => "Invalid end tag designation; should be forbidden or optional.\n",
 85:             'XJXCTL:ICERR:01' => "Invalid class specified for html control; should be %inline, %block or %flow.\n",
 86:             'XJXCTL:ICLERR:01' => 'Invalid control passed to addChild; should be derived from xajaxControl.',
 87:             'XJXCTL:ICLERR:02' => 'Invalid control passed to addChild [',
 88:             'XJXCTL:ICLERR:03' => '] for element [',
 89:             'XJXCTL:ICLERR:04' => "].\n",
 90:             'XJXCTL:ICHERR:01' => 'Invalid parameter passed to xajaxControl::addChildren; should be array of xajaxControl objects',
 91:             'XJXCTL:MRAERR:01' => 'Missing required attribute [',
 92:             'XJXCTL:MRAERR:02' => '] for element [',
 93:             'XJXCTL:MRAERR:03' => '].',
 94:             'XJXPLG:GNERR:01' => 'Response plugin should override the getName function.',
 95:             'XJXPLG:PERR:01' => 'Response plugin should override the process function.',
 96:             'XJXPM:IPLGERR:01' => 'Attempt to register invalid plugin: ',
 97:             'XJXPM:IPLGERR:02' => ' should be derived from xajaxRequestPlugin or xajaxResponsePlugin.',
 98:             'XJXPM:MRMERR:01' => 'Failed to locate registration method for the following: ',
 99:             'XJXRSP:EDERR:01' => 'Passing character encoding to the xajaxResponse constructor is deprecated, instead use $xajax->configure("characterEncoding", ...);',
100:             'XJXRSP:MPERR:01' => 'Invalid or missing plugin name detected in call to xajaxResponse::plugin',
101:             'XJXRSP:CPERR:01' => "The \$sType parameter of addCreate has been deprecated.  Use the addCreateInput() method instead.",
102:             'XJXRSP:LCERR:01' => "The xajax response object could not load commands as the data provided was not a valid array.",
103:             'XJXRSP:AKERR:01' => 'Invalid tag name encoded in array.',
104:             'XJXRSP:IEAERR:01' => 'Improperly encoded array.',
105:             'XJXRSP:NEAERR:01' => 'Non-encoded array detected.',
106:             'XJXRSP:MBEERR:01' => 'The xajax response output could not be converted to HTML entities because the mb_convert_encoding function is not available',
107:             'XJXRSP:MXRTERR' => 'Error: Cannot mix types in a single response.',
108:             'XJXRSP:MXCTERR' => 'Error: Cannot mix content types in a single response.',
109:             'XJXRSP:MXCEERR' => 'Error: Cannot mix character encodings in a single response.',
110:             'XJXRSP:MXOEERR' => 'Error: Cannot mix output entities (true/false) in a single response.',
111:             'XJXRM:IRERR' => 'An invalid response was returned while processing this request.',
112:             'XJXRM:MXRTERR' => 'Error:  You cannot mix response types while processing a single request: '
113:             );
114:             
115:         $this->sLanguage = 'en';
116:     }
117:     
118:     /*
119:         Function: getInstance
120:         
121:         Implements the singleton pattern: provides a single instance of the xajax 
122:         language manager object to all object which request it.
123:     */
124:     public static function &getInstance()
125:     {
126:         static $obj;
127:         if (!$obj) {
128:             $obj = new xajaxLanguageManager();
129:         }
130:         return $obj;
131:     }
132:     
133:     /*
134:         Function: configure
135:         
136:         Called by the main xajax object as configuration options are set.  See also:
137:         <xajax::configure>.  The <xajaxLanguageManager> tracks the following configuration
138:         options.
139:         Parameters:
140:         
141:         - language (string, default 'en'): The currently selected language.
142:     */
143:     public function configure($sName, $mValue)
144:     {
145:         if ('language' == $sName) {
146:             if ($mValue !== $this->sLanguage) {
147:                 $sFolder = dirname(__FILE__);
148:                 @include $sFolder . '/xajax_lang_' . $mValue . '.inc.php';
149:                 // require $sFolder . '/xajax_lang_' . $mValue . '.inc.php';
150:                 $this->sLanguage = $mValue;
151:             }
152:         }
153:     }
154:     
155:     /*
156:         Function: register
157:         
158:         Called to register an array of alternate language messages.
159:         
160:         Parameters:
161:         
162:         sLanguage - (string): the character code which represents the language being registered.
163:         aMessages - (array): the array of translated debug and error messages
164:     */
165:     public function register($sLanguage, $aMessages) {
166:         $this->aMessages[$sLanguage] = $aMessages;
167:     }
168:     
169:     /*
170:         Function: getText
171:         
172:         Called by the main xajax object and other objects during the initial page generation
173:         or request processing phase to obtain language specific debug and error messages.
174:         
175:         sMessage - (string):  A code indicating the message text being requested.
176:     */
177:     public function getText($sMessage)
178:     {
179:         if (isset($this->aMessages[$this->sLanguage]))
180:              if (isset($this->aMessages[$this->sLanguage][$sMessage]))
181:                 return $this->aMessages[$this->sLanguage][$sMessage];
182:                 
183:         return '(Unknown language or message identifier)'
184:             . $this->sLanguage
185:             . '::'
186:             . $sMessage;
187:     }
188: }
189: 
Autene API documentation generated by ApiGen