JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • CallbackFilterIterator
  • ComposerAutoloaderInit205c915b9c7d3e718e7c95793ee67ffe
  • easyparse
  • EasyPeasyICS
  • FOFAutoloaderComponent
  • FOFAutoloaderFof
  • FOFConfigDomainDispatcher
  • FOFConfigDomainTables
  • FOFConfigDomainViews
  • FOFConfigProvider
  • FOFController
  • FOFDatabase
  • FOFDatabaseDriver
  • FOFDatabaseDriverJoomla
  • FOFDatabaseDriverMysql
  • FOFDatabaseDriverMysqli
  • FOFDatabaseDriverOracle
  • FOFDatabaseDriverPdo
  • FOFDatabaseDriverPdomysql
  • FOFDatabaseDriverPostgresql
  • FOFDatabaseDriverSqlazure
  • FOFDatabaseDriverSqlite
  • FOFDatabaseDriverSqlsrv
  • FOFDatabaseFactory
  • FOFDatabaseInstaller
  • FOFDatabaseIterator
  • FOFDatabaseIteratorAzure
  • FOFDatabaseIteratorMysql
  • FOFDatabaseIteratorMysqli
  • FOFDatabaseIteratorOracle
  • FOFDatabaseIteratorPdo
  • FOFDatabaseIteratorPdomysql
  • FOFDatabaseIteratorPostgresql
  • FOFDatabaseIteratorSqlite
  • FOFDatabaseIteratorSqlsrv
  • FOFDatabaseQuery
  • FOFDatabaseQueryElement
  • FOFDatabaseQueryMysql
  • FOFDatabaseQueryMysqli
  • FOFDatabaseQueryOracle
  • FOFDatabaseQueryPdo
  • FOFDatabaseQueryPdomysql
  • FOFDatabaseQueryPostgresql
  • FOFDatabaseQuerySqlazure
  • FOFDatabaseQuerySqlite
  • FOFDatabaseQuerySqlsrv
  • FOFDispatcher
  • FOFDownload
  • FOFDownloadAdapterAbstract
  • FOFDownloadAdapterCurl
  • FOFDownloadAdapterFopen
  • FOFEncryptAes
  • FOFEncryptAesAbstract
  • FOFEncryptAesMcrypt
  • FOFEncryptAesOpenssl
  • FOFEncryptBase32
  • FOFEncryptRandval
  • FOFEncryptTotp
  • FOFForm
  • FOFFormFieldAccesslevel
  • FOFFormFieldActions
  • FOFFormFieldButton
  • FOFFormFieldCachehandler
  • FOFFormFieldCalendar
  • FOFFormFieldCaptcha
  • FOFFormFieldCheckbox
  • FOFFormFieldCheckboxes
  • FOFFormFieldComponents
  • FOFFormFieldEditor
  • FOFFormFieldEmail
  • FOFFormFieldGroupedbutton
  • FOFFormFieldGroupedlist
  • FOFFormFieldHidden
  • FOFFormFieldImage
  • FOFFormFieldImagelist
  • FOFFormFieldInteger
  • FOFFormFieldLanguage
  • FOFFormFieldList
  • FOFFormFieldMedia
  • FOFFormFieldModel
  • FOFFormFieldOrdering
  • FOFFormFieldPassword
  • FOFFormFieldPlugins
  • FOFFormFieldPublished
  • FOFFormFieldRadio
  • FOFFormFieldRelation
  • FOFFormFieldRules
  • FOFFormFieldSelectrow
  • FOFFormFieldSessionhandler
  • FOFFormFieldSpacer
  • FOFFormFieldSql
  • FOFFormFieldTag
  • FOFFormFieldTel
  • FOFFormFieldText
  • FOFFormFieldTextarea
  • FOFFormFieldTimezone
  • FOFFormFieldTitle
  • FOFFormFieldUrl
  • FOFFormFieldUser
  • FOFFormFieldUsergroup
  • FOFFormHeader
  • FOFFormHeaderAccesslevel
  • FOFFormHeaderField
  • FOFFormHeaderFielddate
  • FOFFormHeaderFieldfilterable
  • FOFFormHeaderFieldsearchable
  • FOFFormHeaderFieldselectable
  • FOFFormHeaderFieldsql
  • FOFFormHeaderFilterdate
  • FOFFormHeaderFilterfilterable
  • FOFFormHeaderFiltersearchable
  • FOFFormHeaderFilterselectable
  • FOFFormHeaderFiltersql
  • FOFFormHeaderLanguage
  • FOFFormHeaderModel
  • FOFFormHeaderOrdering
  • FOFFormHeaderPublished
  • FOFFormHeaderRowselect
  • FOFFormHelper
  • FOFHalDocument
  • FOFHalLink
  • FOFHalLinks
  • FOFHalRenderJson
  • FOFInflector
  • FOFInput
  • FOFIntegrationJoomlaFilesystem
  • FOFIntegrationJoomlaPlatform
  • FOFLayoutFile
  • FOFLayoutHelper
  • FOFLess
  • FOFLessFormatterClassic
  • FOFLessFormatterCompressed
  • FOFLessFormatterJoomla
  • FOFLessFormatterLessjs
  • FOFLessParser
  • FOFModel
  • FOFModelBehavior
  • FOFModelBehaviorAccess
  • FOFModelBehaviorEmptynonzero
  • FOFModelBehaviorEnabled
  • FOFModelBehaviorFilters
  • FOFModelBehaviorLanguage
  • FOFModelBehaviorPrivate
  • FOFModelDispatcherBehavior
  • FOFModelField
  • FOFModelFieldBoolean
  • FOFModelFieldDate
  • FOFModelFieldNumber
  • FOFModelFieldText
  • FOFPlatform
  • FOFPlatformFilesystem
  • FOFQueryAbstract
  • FOFRenderAbstract
  • FOFRenderJoomla
  • FOFRenderJoomla3
  • FOFRenderStrapper
  • FOFStringUtils
  • FOFTable
  • FOFTableBehavior
  • FOFTableBehaviorAssets
  • FOFTableBehaviorContenthistory
  • FOFTableBehaviorTags
  • FOFTableDispatcherBehavior
  • FOFTableNested
  • FOFTableRelations
  • FOFTemplateUtils
  • FOFToolbar
  • FOFUtilsArray
  • FOFUtilsCacheCleaner
  • FOFUtilsConfigHelper
  • FOFUtilsFilescheck
  • FOFUtilsIniParser
  • FOFUtilsInstallscript
  • FOFUtilsIp
  • FOFUtilsObject
  • FOFUtilsObservableDispatcher
  • FOFUtilsObservableEvent
  • FOFUtilsPhpfunc
  • FOFUtilsTimer
  • FOFUtilsUpdate
  • FOFUtilsUpdateCollection
  • FOFUtilsUpdateExtension
  • FOFUtilsUpdateJoomla
  • FOFView
  • FOFViewCsv
  • FOFViewForm
  • FOFViewHtml
  • FOFViewJson
  • FOFViewRaw
  • idna_convert
  • JAccess
  • JAccessRule
  • JAccessRules
  • JAccessWrapperAccess
  • JAdapter
  • JAdapterInstance
  • JApplication
  • JApplicationAdministrator
  • JApplicationBase
  • JApplicationCli
  • JApplicationCms
  • JApplicationDaemon
  • JApplicationHelper
  • JApplicationSite
  • JApplicationWeb
  • JApplicationWebRouter
  • JApplicationWebRouterBase
  • JApplicationWebRouterRest
  • JArchive
  • JArchiveBzip2
  • JArchiveGzip
  • JArchiveTar
  • JArchiveWrapperArchive
  • JArchiveZip
  • JArrayHelper
  • JAssociationExtensionHelper
  • JAuthentication
  • JAuthenticationHelper
  • JAuthenticationResponse
  • JBrowser
  • JBuffer
  • JButton
  • JCache
  • JCacheController
  • JCacheControllerCallback
  • JCacheControllerOutput
  • JCacheControllerPage
  • JCacheControllerView
  • JCacheStorage
  • JCacheStorageApc
  • JCacheStorageApcu
  • JCacheStorageCachelite
  • JCacheStorageFile
  • JCacheStorageHelper
  • JCacheStorageMemcache
  • JCacheStorageMemcached
  • JCacheStorageRedis
  • JCacheStorageWincache
  • JCacheStorageXcache
  • JCaptcha
  • JCategories
  • JCategoryNode
  • JClassLoader
  • JCli
  • JClientFtp
  • JClientHelper
  • JClientLdap
  • JClientWrapperHelper
  • JComponentHelper
  • JComponentRecord
  • JComponentRouterBase
  • JComponentRouterLegacy
  • JComponentRouterRulesMenu
  • JComponentRouterRulesNomenu
  • JComponentRouterRulesStandard
  • JComponentRouterView
  • JComponentRouterViewconfiguration
  • JControllerAdmin
  • JControllerBase
  • JControllerForm
  • JControllerLegacy
  • JCrypt
  • JCryptCipher3Des
  • JCryptCipherBlowfish
  • JCryptCipherCrypto
  • JCryptCipherMcrypt
  • JCryptCipherRijndael256
  • JCryptCipherSimple
  • JCryptKey
  • JCryptPasswordSimple
  • JDaemon
  • JDatabase
  • JDatabaseDriver
  • JDatabaseDriverMysql
  • JDatabaseDriverMysqli
  • JDatabaseDriverOracle
  • JDatabaseDriverPdo
  • JDatabaseDriverPdomysql
  • JDatabaseDriverPostgresql
  • JDatabaseDriverSqlazure
  • JDatabaseDriverSqlite
  • JDatabaseDriverSqlsrv
  • JDatabaseExporter
  • JDatabaseExporterMysql
  • JDatabaseExporterMysqli
  • JDatabaseExporterPdomysql
  • JDatabaseExporterPostgresql
  • JDatabaseFactory
  • JDatabaseImporter
  • JDatabaseImporterMysql
  • JDatabaseImporterMysqli
  • JDatabaseImporterPdomysql
  • JDatabaseImporterPostgresql
  • JDatabaseInterface
  • JDatabaseIterator
  • JDatabaseIteratorMysql
  • JDatabaseIteratorMysqli
  • JDatabaseIteratorOracle
  • JDatabaseIteratorPdo
  • JDatabaseIteratorPdomysql
  • JDatabaseIteratorPostgresql
  • JDatabaseIteratorSqlazure
  • JDatabaseIteratorSqlite
  • JDatabaseIteratorSqlsrv
  • JDatabaseMysql
  • JDatabaseMysqli
  • JDatabaseQuery
  • JDatabaseQueryElement
  • JDatabaseQueryLimitable
  • JDatabaseQueryMysql
  • JDatabaseQueryMysqli
  • JDatabaseQueryOracle
  • JDatabaseQueryPdo
  • JDatabaseQueryPdomysql
  • JDatabaseQueryPostgresql
  • JDatabaseQueryPreparable
  • JDatabaseQuerySqlazure
  • JDatabaseQuerySqlite
  • JDatabaseQuerySqlsrv
  • JDatabaseSqlazure
  • JDatabaseSqlsrv
  • JDate
  • JDispatcher
  • JDocument
  • JDocumentError
  • JDocumentFeed
  • JDocumentHtml
  • JDocumentImage
  • JDocumentJson
  • JDocumentOpensearch
  • JDocumentRaw
  • JDocumentRenderer
  • JDocumentRendererAtom
  • JDocumentRendererComponent
  • JDocumentRendererFeedAtom
  • JDocumentRendererFeedRss
  • JDocumentRendererHead
  • JDocumentRendererHtmlComponent
  • JDocumentRendererHtmlHead
  • JDocumentRendererHtmlMessage
  • JDocumentRendererHtmlModule
  • JDocumentRendererHtmlModules
  • JDocumentRendererMessage
  • JDocumentRendererModule
  • JDocumentRendererModules
  • JDocumentRendererRSS
  • JDocumentXml
  • JEditor
  • JError
  • JErrorPage
  • JEvent
  • JEventDispatcher
  • JExtension
  • JFacebook
  • JFacebookAlbum
  • JFacebookCheckin
  • JFacebookComment
  • JFacebookEvent
  • JFacebookGroup
  • JFacebookLink
  • JFacebookNote
  • JFacebookOAuth
  • JFacebookObject
  • JFacebookPhoto
  • JFacebookPost
  • JFacebookStatus
  • JFacebookUser
  • JFacebookVideo
  • JFactory
  • JFeed
  • JFeedEnclosure
  • JFeedEntry
  • JFeedFactory
  • JFeedImage
  • JFeedItem
  • JFeedLink
  • JFeedParser
  • JFeedParserAtom
  • JFeedParserRss
  • JFeedParserRssItunes
  • JFeedParserRssMedia
  • JFeedPerson
  • JFile
  • JFilesystemHelper
  • JFilesystemPatcher
  • JFilesystemWrapperFile
  • JFilesystemWrapperFolder
  • JFilesystemWrapperPath
  • JFilterInput
  • JFilterOutput
  • JFilterWrapperOutput
  • JFolder
  • JForm
  • JFormField
  • JFormFieldAccessLevel
  • JFormFieldAliastag
  • JFormFieldAuthor
  • JFormFieldCacheHandler
  • JFormFieldCalendar
  • JFormFieldCaptcha
  • JFormFieldCategory
  • JFormFieldCheckbox
  • JFormFieldCheckboxes
  • JFormFieldChromeStyle
  • JFormFieldColor
  • JFormFieldCombo
  • JFormFieldComponentlayout
  • JFormFieldComponents
  • JFormFieldContenthistory
  • JFormFieldContentlanguage
  • JFormFieldContenttype
  • JFormFieldDatabaseConnection
  • JFormFieldEditor
  • JFormFieldEMail
  • JFormFieldFile
  • JFormFieldFileList
  • JFormFieldFolderList
  • JFormFieldFrontend_Language
  • JFormFieldGroupedList
  • JFormFieldHeadertag
  • JFormFieldHelpsite
  • JFormFieldHidden
  • JFormFieldImageList
  • JFormFieldInteger
  • JFormFieldLanguage
  • JFormFieldLastvisitDateRange
  • JFormFieldLimitbox
  • JFormFieldList
  • JFormFieldMedia
  • JFormFieldMenu
  • JFormFieldMenuitem
  • JFormFieldMeter
  • JFormFieldModulelayout
  • JFormFieldModuleOrder
  • JFormFieldModulePosition
  • JFormFieldModuletag
  • JFormFieldNote
  • JFormFieldNumber
  • JFormFieldOrdering
  • JFormFieldPassword
  • JFormFieldPlugin_Status
  • JFormFieldPlugins
  • JFormFieldPredefinedList
  • JFormFieldRadio
  • JFormFieldRange
  • JFormFieldRegistrationDateRange
  • JFormFieldRepeatable
  • JFormFieldRules
  • JFormFieldSessionHandler
  • JFormFieldSpacer
  • JFormFieldSQL
  • JFormFieldStatus
  • JFormFieldSubform
  • JFormFieldTag
  • JFormFieldTel
  • JFormFieldTemplatestyle
  • JFormFieldText
  • JFormFieldTextarea
  • JFormFieldTimezone
  • JFormFieldUrl
  • JFormFieldUser
  • JFormFieldUserActive
  • JFormFieldUsergroup
  • JFormFieldUserGroupList
  • JFormFieldUserState
  • JFormHelper
  • JFormRule
  • JFormRuleBoolean
  • JFormRuleCalendar
  • JFormRuleCaptcha
  • JFormRuleColor
  • JFormRuleEmail
  • JFormRuleEquals
  • JFormRuleNotequals
  • JFormRuleNumber
  • JFormRuleOptions
  • JFormRulePassword
  • JFormRuleRules
  • JFormRuleTel
  • JFormRuleUrl
  • JFormRuleUsername
  • JFormWrapperHelper
  • JFTP
  • JGithub
  • JGithubAccount
  • JGithubCommits
  • JGithubForks
  • JGithubHooks
  • JGithubHttp
  • JGithubMeta
  • JGithubMilestones
  • JGithubObject
  • JGithubPackage
  • JGithubPackageActivity
  • JGithubPackageActivityEvents
  • JGithubPackageActivityNotifications
  • JGithubPackageActivityStarring
  • JGithubPackageActivityWatching
  • JGithubPackageAuthorization
  • JGithubPackageData
  • JGithubPackageDataBlobs
  • JGithubPackageDataCommits
  • JGithubPackageDataRefs
  • JGithubPackageDataTags
  • JGithubPackageDataTrees
  • JGithubPackageGists
  • JGithubPackageGistsComments
  • JGithubPackageGitignore
  • JGithubPackageIssues
  • JGithubPackageIssuesAssignees
  • JGithubPackageIssuesComments
  • JGithubPackageIssuesEvents
  • JGithubPackageIssuesLabels
  • JGithubPackageIssuesMilestones
  • JGithubPackageMarkdown
  • JGithubPackageOrgs
  • JGithubPackageOrgsMembers
  • JGithubPackageOrgsTeams
  • JGithubPackagePulls
  • JGithubPackagePullsComments
  • JGithubPackageRepositories
  • JGithubPackageRepositoriesCollaborators
  • JGithubPackageRepositoriesComments
  • JGithubPackageRepositoriesCommits
  • JGithubPackageRepositoriesContents
  • JGithubPackageRepositoriesDownloads
  • JGithubPackageRepositoriesForks
  • JGithubPackageRepositoriesHooks
  • JGithubPackageRepositoriesKeys
  • JGithubPackageRepositoriesMerging
  • JGithubPackageRepositoriesStatistics
  • JGithubPackageRepositoriesStatuses
  • JGithubPackageSearch
  • JGithubPackageUsers
  • JGithubPackageUsersEmails
  • JGithubPackageUsersFollowers
  • JGithubPackageUsersKeys
  • JGithubRefs
  • JGithubStatuses
  • JGoogle
  • JGoogleAuth
  • JGoogleAuthOauth2
  • JGoogleData
  • JGoogleDataAdsense
  • JGoogleDataCalendar
  • JGoogleDataPicasa
  • JGoogleDataPicasaAlbum
  • JGoogleDataPicasaPhoto
  • JGoogleDataPlus
  • JGoogleDataPlusActivities
  • JGoogleDataPlusComments
  • JGoogleDataPlusPeople
  • JGoogleEmbed
  • JGoogleEmbedAnalytics
  • JGoogleEmbedMaps
  • JGrid
  • JHelp
  • JHelper
  • JHelperContent
  • JHelperContenthistory
  • JHelperMedia
  • JHelperRoute
  • JHelperTags
  • JHelperUsergroups
  • JHtml
  • JHtmlAccess
  • JHtmlActionsDropdown
  • JHtmlBatch
  • JHtmlBehavior
  • JHtmlBootstrap
  • JHtmlCategory
  • JHtmlContent
  • JHtmlContentLanguage
  • JHtmlDate
  • JHtmlDebug
  • JHtmlDropdown
  • JHtmlEmail
  • JHtmlForm
  • JHtmlFormbehavior
  • JHtmlGrid
  • JHtmlIcons
  • JHtmlJGrid
  • JHtmlJquery
  • JHtmlLinks
  • JHtmlList
  • JHtmlMenu
  • JHtmlNumber
  • JHtmlRules
  • JHtmlSearchtools
  • JHtmlSelect
  • JHtmlSidebar
  • JHtmlSliders
  • JHtmlSortablelist
  • JHtmlString
  • JHtmlTabs
  • JHtmlTag
  • JHtmlTel
  • JHtmlUser
  • JHttp
  • JHttpFactory
  • JHttpResponse
  • JHttpTransportCurl
  • JHttpTransportSocket
  • JHttpTransportStream
  • JHttpWrapperFactory
  • JImage
  • JImageFilter
  • JImageFilterBackgroundfill
  • JImageFilterBrightness
  • JImageFilterContrast
  • JImageFilterEdgedetect
  • JImageFilterEmboss
  • JImageFilterGrayscale
  • JImageFilterNegate
  • JImageFilterSketchy
  • JImageFilterSmooth
  • JInput
  • JInputCli
  • JInputCookie
  • JInputFiles
  • JInputJSON
  • JInstaller
  • JInstallerAdapter
  • JInstallerAdapterComponent
  • JInstallerAdapterFile
  • JInstallerAdapterLanguage
  • JInstallerAdapterLibrary
  • JInstallerAdapterModule
  • JInstallerAdapterPackage
  • JInstallerAdapterPlugin
  • JInstallerAdapterTemplate
  • JInstallerComponent
  • JInstallerExtension
  • JInstallerFile
  • JInstallerHelper
  • JInstallerLanguage
  • JInstallerLibrary
  • JInstallerManifest
  • JInstallerManifestLibrary
  • JInstallerManifestPackage
  • JInstallerModule
  • JInstallerPackage
  • JInstallerPlugin
  • JInstallerScript
  • JInstallerTemplate
  • JKeychain
  • JLanguage
  • JLanguageAssociations
  • JLanguageHelper
  • JLanguageMultilang
  • JLanguageStemmer
  • JLanguageStemmerPorteren
  • JLanguageTransliterate
  • JLanguageWrapperHelper
  • JLanguageWrapperText
  • JLanguageWrapperTransliterate
  • JLayoutBase
  • JLayoutFile
  • JLayoutHelper
  • JLDAP
  • JLess
  • JLessFormatterJoomla
  • JLibraryHelper
  • JLinkedin
  • JLinkedinCommunications
  • JLinkedinCompanies
  • JLinkedinGroups
  • JLinkedinJobs
  • JLinkedinOauth
  • JLinkedinObject
  • JLinkedinPeople
  • JLinkedinStream
  • JLoader
  • JLog
  • JLogEntry
  • JLogger
  • JLogLogger
  • JLogLoggerCallback
  • JLogLoggerDatabase
  • JLogLoggerEcho
  • JLogLoggerFormattedtext
  • JLogLoggerMessagequeue
  • JLogLoggerSyslog
  • JLogLoggerW3c
  • JMail
  • JMailHelper
  • JMailWrapperHelper
  • JMediawiki
  • JMediawikiCategories
  • JMediawikiHttp
  • JMediawikiImages
  • JMediawikiLinks
  • JMediawikiObject
  • JMediawikiPages
  • JMediawikiSearch
  • JMediawikiSites
  • JMediawikiUsers
  • JMenu
  • JMenuAdministrator
  • JMenuItem
  • JMenuSite
  • JMicrodata
  • JModelAdmin
  • JModelBase
  • JModelDatabase
  • JModelForm
  • JModelItem
  • JModelLegacy
  • JModelList
  • JModuleHelper
  • JNode
  • JOAuth1Client
  • JOAuth2Client
  • JObject
  • JObservable
  • JObserver
  • JObserverMapper
  • JObserverUpdater
  • JObserverWrapperMapper
  • JOpenSearchImage
  • JOpenSearchUrl
  • JOpenstreetmap
  • JOpenstreetmapChangesets
  • JOpenstreetmapElements
  • JOpenstreetmapGps
  • JOpenstreetmapInfo
  • JOpenstreetmapOauth
  • JOpenstreetmapObject
  • JOpenstreetmapUser
  • JPagination
  • JPaginationObject
  • JPath
  • JPathway
  • JPathwaySite
  • JPlatform
  • JPlugin
  • JPluginHelper
  • JProfiler
  • JRequest
  • JResponse
  • JResponseJson
  • JRoute
  • JRouter
  • JRouterAdministrator
  • JRouterSite
  • JRouteWrapperRoute
  • JRule
  • JRules
  • JSchemaChangeitem
  • JSchemaChangeitemMysql
  • JSchemaChangeitemPostgresql
  • JSchemaChangeitemSqlsrv
  • JSchemaChangeset
  • JSearchHelper
  • JSession
  • JSessionHandlerJoomla
  • JSessionHandlerNative
  • JSessionStorage
  • JSessionStorageApc
  • JSessionStorageDatabase
  • JSessionStorageMemcache
  • JSessionStorageMemcached
  • JSessionStorageNone
  • JSessionStorageWincache
  • JSessionStorageXcache
  • JSimplecrypt
  • JSimplepieFactory
  • JStream
  • JStreamString
  • JString
  • JStringController
  • JStringPunycode
  • JStringWrapperNormalise
  • JStringWrapperPunycode
  • JTable
  • JTableAsset
  • JTableCategory
  • JTableContent
  • JTableContenthistory
  • JTableContenttype
  • JTableCorecontent
  • JTableExtension
  • JTableInterface
  • JTableLanguage
  • JTableMenu
  • JTableMenuType
  • JTableModule
  • JTableNested
  • JTableObserver
  • JTableObserverContenthistory
  • JTableObserverTags
  • JTableSession
  • JTableUcm
  • JTableUpdate
  • JTableUpdatesite
  • JTableUser
  • JTableUsergroup
  • JTableViewlevel
  • JText
  • JToolbar
  • JToolbarButton
  • JToolbarButtonConfirm
  • JToolbarButtonCustom
  • JToolbarButtonHelp
  • JToolbarButtonLink
  • JToolbarButtonPopup
  • JToolbarButtonSeparator
  • JToolbarButtonSlider
  • JToolbarButtonStandard
  • JTree
  • JTwitter
  • JTwitterBlock
  • JTwitterDirectmessages
  • JTwitterFavorites
  • JTwitterFriends
  • JTwitterHelp
  • JTwitterLists
  • JTwitterOAuth
  • JTwitterObject
  • JTwitterPlaces
  • JTwitterProfile
  • JTwittersearch
  • JTwitterStatuses
  • JTwitterTrends
  • JTwitterUsers
  • JUcmBase
  • JUcmContent
  • JUcmType
  • JUpdate
  • JUpdateAdapter
  • JUpdater
  • JUpdaterCollection
  • JUpdaterExtension
  • JUri
  • JUser
  • JUserHelper
  • JUserWrapperHelper
  • JUtility
  • JVersion
  • JViewBase
  • JViewCategories
  • JViewCategory
  • JViewCategoryfeed
  • JViewHtml
  • JViewLegacy
  • JWeb
  • JWebClient
  • JXMLElement
  • lessc
  • lessc_formatter_classic
  • lessc_formatter_compressed
  • lessc_formatter_lessjs
  • lessc_parser
  • lessify
  • Net_IDNA_php4
  • nodecounter
  • ntlm_sasl_client_class
  • PHPMailer
  • PHPMailerOAuth
  • PHPMailerOAuthGoogle
  • POP3
  • SimplePie
  • SimplePie_Author
  • SimplePie_Autoloader
  • SimplePie_Cache
  • SimplePie_Cache_DB
  • SimplePie_Cache_File
  • SimplePie_Cache_Memcache
  • SimplePie_Cache_MySQL
  • SimplePie_Caption
  • SimplePie_Category
  • SimplePie_Content_Type_Sniffer
  • SimplePie_Copyright
  • SimplePie_Core
  • SimplePie_Credit
  • SimplePie_Decode_HTML_Entities
  • SimplePie_Enclosure
  • SimplePie_File
  • SimplePie_gzdecode
  • SimplePie_HTTP_Parser
  • SimplePie_IRI
  • SimplePie_Item
  • SimplePie_Locator
  • SimplePie_Misc
  • SimplePie_Net_IPv6
  • SimplePie_Parse_Date
  • SimplePie_Parser
  • SimplePie_Rating
  • SimplePie_Registry
  • SimplePie_Restriction
  • SimplePie_Sanitize
  • SimplePie_Source
  • SimplePie_XML_Declaration_Parser
  • SMTP
  • tagparse
  • TypeError

Interfaces

  • FOFConfigDomainInterface
  • FOFDatabaseInterface
  • FOFDatabaseQueryLimitable
  • FOFDatabaseQueryPreparable
  • FOFDownloadInterface
  • FOFEncryptAesInterface
  • FOFEncryptRandvalinterface
  • FOFFormField
  • FOFHalRenderInterface
  • FOFPlatformFilesystemInterface
  • FOFPlatformInterface
  • JArchiveExtractable
  • JAssociationExtensionInterface
  • JCacheException
  • JComponentRouterInterface
  • JComponentRouterRulesInterface
  • JController
  • JCryptCipher
  • JCryptPassword
  • JFeedParserNamespace
  • JHttpTransport
  • JLayout
  • JModel
  • JObservableInterface
  • JObserverInterface
  • JObserverUpdaterInterface
  • JSessionHandlerInterface
  • JsonSerializable
  • JUcm
  • JView
  • SimplePie_Cache_Base

Exceptions

  • Error
  • JAccessExceptionNotallowed
  • JCacheExceptionConnecting
  • JCacheExceptionUnsupported
  • JComponentExceptionMissing
  • JDatabaseException
  • JDatabaseExceptionConnecting
  • JDatabaseExceptionExecuting
  • JDatabaseExceptionUnsupported
  • JException
  • JSessionExceptionUnsupported
  • LogException
  • phpmailerException
  • SimplePie_Exception

Constants

  • JERROR_CALLBACK_NOT_CALLABLE
  • JERROR_ILLEGAL_MODE
  • JERROR_ILLEGAL_OPTIONS
  • JREQUEST_ALLOWHTML
  • JREQUEST_ALLOWRAW
  • JREQUEST_NOTRIM
  • JROUTER_MODE_RAW
  • JROUTER_MODE_SEF

Functions

  • __autoload
  • array_column
  • boolval
  • composerRequire205c915b9c7d3e718e7c95793ee67ffe
  • gzopen
  • gzseek
  • gztell
  • hash_equals
  • hash_pbkdf2
  • HTMLFilter
  • jexit
  • jimport
  • json_last_error_msg
  • ldap_escape
  • password_get_info
  • password_hash
  • password_needs_rehash
  • password_verify
  • PHPMailerAutoload
  • random_bytes
  • random_int
  • RandomCompat_intval
  • RandomCompat_strlen
  • RandomCompat_substr
  • tln_body2div
  • tln_casenormalize
  • tln_deent
  • tln_defang
  • tln_findnxreg
  • tln_findnxstr
  • tln_fixatts
  • tln_fixstyle
  • tln_fixurl
  • tln_getnxtag
  • tln_sanitize
  • tln_skipspace
  • tln_tagprint
  • tln_unspace
  • utf8_accents_to_ascii
  • utf8_bad_explain
  • utf8_bad_find
  • utf8_bad_findall
  • utf8_bad_identify
  • utf8_bad_replace
  • utf8_bad_strip
  • utf8_byte_position
  • utf8_compliant
  • utf8_from_unicode
  • utf8_ireplace
  • utf8_is_ascii
  • utf8_is_ascii_ctrl
  • utf8_is_valid
  • utf8_is_word_chars
  • utf8_locate_current_chr
  • utf8_locate_next_chr
  • utf8_ltrim
  • utf8_ord
  • utf8_rtrim
  • utf8_specials_pattern
  • utf8_str_pad
  • utf8_str_split
  • utf8_strcasecmp
  • utf8_strcspn
  • utf8_strip_ascii_ctrl
  • utf8_strip_non_ascii
  • utf8_strip_non_ascii_ctrl
  • utf8_strip_specials
  • utf8_stristr
  • utf8_strlen
  • utf8_strpos
  • utf8_strrev
  • utf8_strrpos
  • utf8_strspn
  • utf8_strtolower
  • utf8_strtoupper
  • utf8_substr
  • utf8_substr_replace
  • utf8_to_unicode
  • utf8_trim
  • utf8_ucfirst
  • utf8_ucwords
  • utf8_ucwords_callback
  1 <?php
  2 /**
  3  * @package     Joomla.Platform
  4  * @subpackage  Google
  5  *
  6  * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved
  7  * @license     GNU General Public License version 2 or later; see LICENSE
  8  */
  9 
 10 defined('JPATH_PLATFORM') or die;
 11 
 12 use Joomla\Registry\Registry;
 13 
 14 /**
 15  * Google Maps embed class for the Joomla Platform.
 16  *
 17  * @since       12.3
 18  * @deprecated  4.0  Use the `joomla/google` package via Composer instead
 19  */
 20 class JGoogleEmbedMaps extends JGoogleEmbed
 21 {
 22     /**
 23      * @var    JHttp  The HTTP client object to use in sending HTTP requests.
 24      * @since  12.3
 25      */
 26     protected $http;
 27 
 28     /**
 29      * Constructor.
 30      *
 31      * @param   Registry  $options  Google options object
 32      * @param   JUri      $uri      URL of the page being rendered
 33      * @param   JHttp     $http     Http client for geocoding requests
 34      *
 35      * @since   12.3
 36      */
 37     public function __construct(Registry $options = null, JUri $uri = null, JHttp $http = null)
 38     {
 39         parent::__construct($options, $uri);
 40         $this->http = $http ? $http : new JHttp($this->options);
 41     }
 42 
 43     /**
 44      * Method to get the API key
 45      *
 46      * @return  string  The Google Maps API key
 47      *
 48      * @since   12.3
 49      */
 50     public function getKey()
 51     {
 52         return $this->getOption('key');
 53     }
 54 
 55     /**
 56      * Method to set the API key
 57      *
 58      * @param   string  $key  The Google Maps API key
 59      *
 60      * @return  JGoogleEmbedMaps  The object for method chaining
 61      *
 62      * @since   12.3
 63      */
 64     public function setKey($key)
 65     {
 66         $this->setOption('key', $key);
 67 
 68         return $this;
 69     }
 70 
 71     /**
 72      * Method to get the id of the map div
 73      *
 74      * @return  string  The ID
 75      *
 76      * @since   12.3
 77      */
 78     public function getMapId()
 79     {
 80         return $this->getOption('mapid') ? $this->getOption('mapid') : 'map_canvas';
 81     }
 82 
 83     /**
 84      * Method to set the map div id
 85      *
 86      * @param   string  $id  The ID
 87      *
 88      * @return  JGoogleEmbedMaps  The object for method chaining
 89      *
 90      * @since   12.3
 91      */
 92     public function setMapId($id)
 93     {
 94         $this->setOption('mapid', $id);
 95 
 96         return $this;
 97     }
 98 
 99     /**
100      * Method to get the class of the map div
101      *
102      * @return  string  The class
103      *
104      * @since   12.3
105      */
106     public function getMapClass()
107     {
108         return $this->getOption('mapclass') ? $this->getOption('mapclass') : '';
109     }
110 
111     /**
112      * Method to set the map div class
113      *
114      * @param   string  $class  The class
115      *
116      * @return  JGoogleEmbedMaps  The object for method chaining
117      *
118      * @since   12.3
119      */
120     public function setMapClass($class)
121     {
122         $this->setOption('mapclass', $class);
123 
124         return $this;
125     }
126 
127     /**
128      * Method to get the style of the map div
129      *
130      * @return  string  The style
131      *
132      * @since   12.3
133      */
134     public function getMapStyle()
135     {
136         return $this->getOption('mapstyle') ? $this->getOption('mapstyle') : '';
137     }
138 
139     /**
140      * Method to set the map div style
141      *
142      * @param   string  $style  The style
143      *
144      * @return  JGoogleEmbedMaps  The object for method chaining
145      *
146      * @since   12.3
147      */
148     public function setMapStyle($style)
149     {
150         $this->setOption('mapstyle', $style);
151 
152         return $this;
153     }
154 
155     /**
156      * Method to get the map type setting
157      *
158      * @return  string  The class
159      *
160      * @since   12.3
161      */
162     public function getMapType()
163     {
164         return $this->getOption('maptype') ? $this->getOption('maptype') : 'ROADMAP';
165     }
166 
167     /**
168      * Method to set the map type ()
169      *
170      * @param   string  $type  Valid types are ROADMAP, SATELLITE, HYBRID, and TERRAIN
171      *
172      * @return  JGoogleEmbedMaps  The object for method chaining
173      *
174      * @since   12.3
175      */
176     public function setMapType($type)
177     {
178         $this->setOption('maptype', strtoupper($type));
179 
180         return $this;
181     }
182 
183     /**
184      * Method to get additional map options
185      *
186      * @return  string  The options
187      *
188      * @since   12.3
189      */
190     public function getAdditionalMapOptions()
191     {
192         return $this->getOption('mapoptions') ? $this->getOption('mapoptions') : array();
193     }
194 
195     /**
196      * Method to add additional map options
197      *
198      * @param   array  $options  Additional map options
199      *
200      * @return  JGoogleEmbedMaps  The object for method chaining
201      *
202      * @since   12.3
203      */
204     public function setAdditionalMapOptions($options)
205     {
206         $this->setOption('mapoptions', $options);
207 
208         return $this;
209     }
210 
211     /**
212      * Method to get additional map options
213      *
214      * @return  string  The options
215      *
216      * @since   12.3
217      */
218     public function getAdditionalJavascript()
219     {
220         return $this->getOption('extrascript') ? $this->getOption('extrascript') : '';
221     }
222 
223     /**
224      * Method to add additional javascript
225      *
226      * @param   array  $script  Additional javascript
227      *
228      * @return  JGoogleEmbedMaps  The object for method chaining
229      *
230      * @since   12.3
231      */
232     public function setAdditionalJavascript($script)
233     {
234         $this->setOption('extrascript', $script);
235 
236         return $this;
237     }
238 
239     /**
240      * Method to get the zoom
241      *
242      * @return  int  The zoom level
243      *
244      * @since   12.3
245      */
246     public function getZoom()
247     {
248         return $this->getOption('zoom') ? $this->getOption('zoom') : 0;
249     }
250 
251     /**
252      * Method to set the map zoom
253      *
254      * @param   int  $zoom  Zoom level (0 is whole world)
255      *
256      * @return  JGoogleEmbedMaps  The object for method chaining
257      *
258      * @since   12.3
259      */
260     public function setZoom($zoom)
261     {
262         $this->setOption('zoom', $zoom);
263 
264         return $this;
265     }
266 
267     /**
268      * Method to set the center of the map
269      *
270      * @return  mixed  A latitude longitude array or an address string
271      *
272      * @since   12.3
273      */
274     public function getCenter()
275     {
276         return $this->getOption('mapcenter') ? $this->getOption('mapcenter') : array(0, 0);
277     }
278 
279     /**
280      * Method to set the center of the map
281      *
282      * @param   mixed  $location       A latitude/longitude array or an address string
283      * @param   mixed  $title          Title of marker or false for no marker
284      * @param   array  $markeroptions  Options for marker
285      * @param   array  $markerevents   Events for marker
286      *
287      * @example with events call:
288      *      $map->setCenter(
289      *          array(0, 0),
290      *          'Map Center',
291      *          array(),
292      *          array(
293      *              'click' => 'function() { // code goes here }
294      *          )
295      *      )
296      *
297      * @return  JGoogleEmbedMaps  The latitude/longitude of the center or false on failure
298      *
299      * @since   12.3
300      */
301     public function setCenter($location, $title = true, $markeroptions = array(), $markerevents = array())
302     {
303         if ($title)
304         {
305             $title = is_string($title) ? $title : null;
306 
307             if (!$marker = $this->addMarker($location, $title, $markeroptions, $markerevents))
308             {
309                 return false;
310             }
311 
312             $location = $marker['loc'];
313         }
314         elseif (is_string($location))
315         {
316             $geocode = $this->geocodeAddress($location);
317 
318             if (!$geocode)
319             {
320                 return false;
321             }
322 
323             $location = $geocode['geometry']['location'];
324             $location = array_values($location);
325         }
326 
327         $this->setOption('mapcenter', $location);
328 
329         return $this;
330     }
331 
332     /**
333      * Method to add an event handler to the map.
334      * Event handlers must be passed in either as callback name or fully qualified function declaration
335      *
336      * @param   string  $type      The event name
337      * @param   string  $function  The event handling function body
338      *
339      * @example to add an event call:
340      *      $map->addEventHandler('click', 'function(){ alert("map click event"); }');
341      *
342      * @return  JGoogleEmbedMaps   The object for method chaining
343      *
344      * @since   12.3
345      */
346     public function addEventHandler($type, $function)
347     {
348         $events = $this->listEventHandlers();
349 
350         $events[$type] = $function;
351 
352         $this->setOption('events', $events);
353 
354         return $this;
355     }
356 
357     /**
358      * Method to remove an event handler from the map
359      *
360      * @param   string  $type  The event name
361      *
362      * @example to delete an event call:
363      *      $map->deleteEventHandler('click');
364      *
365      * @return  string  The event handler content
366      *
367      * @since   12.3
368      */
369     public function deleteEventHandler($type = null)
370     {
371         $events = $this->listEventHandlers();
372 
373         if ($type === null || !isset($events[$type]))
374         {
375             return;
376         }
377 
378         $event = $events[$type];
379         unset($events[$type]);
380         $this->setOption('events', $events);
381 
382         return $event;
383     }
384 
385     /**
386      * List the events added to the map
387      *
388      * @return  array  A list of events
389      *
390      * @since   12.3
391      */
392     public function listEventHandlers()
393     {
394         return $this->getOption('events') ? $this->getOption('events') : array();
395     }
396 
397     /**
398      * Add a marker to the map
399      *
400      * @param   mixed  $location  A latitude/longitude array or an address string
401      * @param   mixed  $title     The hover-text for the marker
402      * @param   array  $options   Options for marker
403      * @param   array  $events    Events for marker
404      *
405      * @example with events call:
406      *      $map->addMarker(
407      *          array(0, 0),
408      *          'My Marker',
409      *          array(),
410      *          array(
411      *              'click' => 'function() { // code goes here }
412      *          )
413      *      )
414      *
415      * @return  mixed  The marker or false on failure
416      *
417      * @since   12.3
418      */
419     public function addMarker($location, $title = null, $options = array(), $events = array())
420     {
421         if (is_string($location))
422         {
423             if (!$title)
424             {
425                 $title = $location;
426             }
427 
428             $geocode = $this->geocodeAddress($location);
429 
430             if (!$geocode)
431             {
432                 return false;
433             }
434 
435             $location = $geocode['geometry']['location'];
436         }
437         elseif (!$title)
438         {
439             $title = implode(', ', $location);
440         }
441 
442         $location = array_values($location);
443         $marker = array('loc' => $location, 'title' => $title, 'options' => $options, 'events' => $events);
444 
445         $markers = $this->listMarkers();
446         $markers[] = $marker;
447         $this->setOption('markers', $markers);
448 
449         return $marker;
450     }
451 
452     /**
453      * List the markers added to the map
454      *
455      * @return  array  A list of markers
456      *
457      * @since   12.3
458      */
459     public function listMarkers()
460     {
461         return $this->getOption('markers') ? $this->getOption('markers') : array();
462     }
463 
464     /**
465      * Delete a marker from the map
466      *
467      * @param   int  $index  Index of marker to delete (defaults to last added marker)
468      *
469      * @return  array The latitude/longitude of the deleted marker
470      *
471      * @since   12.3
472      */
473     public function deleteMarker($index = null)
474     {
475         $markers = $this->listMarkers();
476 
477         if ($index === null)
478         {
479             $index = count($markers) - 1;
480         }
481 
482         if ($index >= count($markers) || $index < 0)
483         {
484             throw new OutOfBoundsException('Marker index out of bounds.');
485         }
486 
487         $marker = $markers[$index];
488         unset($markers[$index]);
489         $markers = array_values($markers);
490         $this->setOption('markers', $markers);
491 
492         return $marker;
493     }
494 
495     /**
496      * Checks if the javascript is set to be asynchronous
497      *
498      * @return  boolean  True if asynchronous
499      *
500      * @since   12.3
501      */
502     public function isAsync()
503     {
504         return $this->getOption('async') === null ? true : $this->getOption('async');
505     }
506 
507     /**
508      * Load javascript asynchronously
509      *
510      * @return  JGoogleEmbedMaps  The object for method chaining
511      *
512      * @since   12.3
513      */
514     public function useAsync()
515     {
516         $this->setOption('async', true);
517 
518         return $this;
519     }
520 
521     /**
522      * Load javascript synchronously
523      *
524      * @return  JGoogleEmbedAMaps  The object for method chaining
525      *
526      * @since   12.3
527      */
528     public function useSync()
529     {
530         $this->setOption('async', false);
531 
532         return $this;
533     }
534 
535     /**
536      * Method to get callback function for async javascript loading
537      *
538      * @return  string  The ID
539      *
540      * @since   12.3
541      */
542     public function getAsyncCallback()
543     {
544         return $this->getOption('callback') ? $this->getOption('callback') : 'initialize';
545     }
546 
547     /**
548      * Method to set the callback function for async javascript loading
549      *
550      * @param   string  $callback  The callback function name
551      *
552      * @return  JGoogleEmbedMaps  The object for method chaining
553      *
554      * @since   12.3
555      */
556     public function setAsyncCallback($callback)
557     {
558         $this->setOption('callback', $callback);
559 
560         return $this;
561     }
562 
563     /**
564      * Checks if a sensor is set to be required
565      *
566      * @return  boolean  True if asynchronous
567      *
568      * @since   12.3
569      */
570     public function hasSensor()
571     {
572         return $this->getOption('sensor') === null ? false : $this->getOption('sensor');
573     }
574 
575     /**
576      * Require access to sensor data
577      *
578      * @return  JGoogleEmbedMaps  The object for method chaining
579      *
580      * @since   12.3
581      */
582     public function useSensor()
583     {
584         $this->setOption('sensor', true);
585 
586         return $this;
587     }
588 
589     /**
590      * Don't require access to sensor data
591      *
592      * @return  JGoogleEmbedAMaps  The object for method chaining
593      *
594      * @since   12.3
595      */
596     public function noSensor()
597     {
598         $this->setOption('sensor', false);
599 
600         return $this;
601     }
602 
603     /**
604      * Checks how the script should be loaded
605      *
606      * @return  string  Autoload type (onload, jquery, mootools, or false)
607      *
608      * @since   12.3
609      */
610     public function getAutoload()
611     {
612         return $this->getOption('autoload') ? $this->getOption('autoload') : 'false';
613     }
614 
615     /**
616      * Automatically add the callback to the window
617      *
618      * @param   string  $type  The method to add the callback (options are onload, jquery, mootools, and false)
619      *
620      * @return  JGoogleEmbedAMaps  The object for method chaining
621      *
622      * @since   12.3
623      */
624     public function setAutoload($type = 'onload')
625     {
626         $this->setOption('autoload', $type);
627 
628         return $this;
629     }
630 
631     /**
632      * Get code to load Google Maps javascript
633      *
634      * @return  string  Javascript code
635      *
636      * @since   12.3
637      */
638     public function getHeader()
639     {
640         $zoom = $this->getZoom();
641         $center = $this->getCenter();
642         $maptype = $this->getMapType();
643         $id = $this->getMapId();
644         $scheme = $this->isSecure() ? 'https' : 'http';
645         $key = $this->getKey();
646         $sensor = $this->hasSensor() ? 'true' : 'false';
647 
648         $setup = 'var mapOptions = {';
649         $setup .= "zoom: {$zoom},";
650         $setup .= "center: new google.maps.LatLng({$center[0]},{$center[1]}),";
651         $setup .= "mapTypeId: google.maps.MapTypeId.{$maptype},";
652         $setup .= substr(json_encode($this->getAdditionalMapOptions()), 1, -1);
653         $setup .= '};';
654         $setup .= "var map = new google.maps.Map(document.getElementById('{$id}'), mapOptions);";
655 
656         $events = $this->listEventHandlers();
657 
658         if (isset($events) && count($events))
659         {
660             foreach ($events as $type => $handler)
661             {
662                 $setup .= "google.maps.event.addListener(map, '{$type}', {$handler});";
663             }
664         }
665 
666         $markers = $this->listMarkers();
667 
668         if (isset($markers) && count($markers))
669         {
670             $setup .= 'var marker;';
671 
672             foreach ($markers as $marker)
673             {
674                 $loc = $marker['loc'];
675                 $title = $marker['title'];
676                 $options = $marker['options'];
677 
678                 $setup .= 'marker = new google.maps.Marker({';
679                 $setup .= "position: new google.maps.LatLng({$loc[0]},{$loc[1]}),";
680                 $setup .= 'map: map,';
681                 $setup .= "title:'{$title}',";
682                 $setup .= substr(json_encode($options), 1, -1);
683                 $setup .= '});';
684 
685                 if (isset($marker['events']) && is_array($marker['events']))
686                 {
687                     foreach ($marker['events'] as $type => $handler)
688                     {
689                         $setup .= 'google.maps.event.addListener(marker, "' . $type . '", ' . $handler . ');';
690                     }
691                 }
692             }
693         }
694 
695         $setup .= $this->getAdditionalJavascript();
696 
697         if ($this->isAsync())
698         {
699             $asynccallback = $this->getAsyncCallback();
700 
701             $output = '<script type="text/javascript">';
702             $output .= "function {$asynccallback}() {";
703             $output .= $setup;
704             $output .= '}';
705 
706             $onload = 'function() {';
707             $onload .= 'var script = document.createElement("script");';
708             $onload .= 'script.type = "text/javascript";';
709             $onload .= "script.src = '{$scheme}://maps.googleapis.com/maps/api/js?" . ($key ? "key={$key}&" : '')
710                 . "sensor={$sensor}&callback={$asynccallback}';";
711             $onload .= 'document.body.appendChild(script);';
712             $onload .= '}';
713         }
714         else
715         {
716             $output = "<script type='text/javascript' src='{$scheme}://maps.googleapis.com/maps/api/js?" . ($key ? "key={$key}&" : '') . "sensor={$sensor}'>";
717             $output .= '</script>';
718             $output .= '<script type="text/javascript">';
719 
720             $onload = 'function() {';
721             $onload .= $setup;
722             $onload .= '}';
723         }
724 
725         switch ($this->getAutoload())
726         {
727             case 'onload':
728             $output .= "window.onload={$onload};";
729             break;
730 
731             case 'jquery':
732             $output .= "jQuery(document).ready({$onload});";
733             break;
734 
735             case 'mootools':
736             $output .= "window.addEvent('domready',{$onload});";
737             break;
738         }
739 
740         $output .= '</script>';
741 
742         return $output;
743     }
744 
745     /**
746      * Method to retrieve the div that the map is loaded into
747      *
748      * @return  string  The body
749      *
750      * @since   12.3
751      */
752     public function getBody()
753     {
754         $id = $this->getMapId();
755         $class = $this->getMapClass();
756         $style = $this->getMapStyle();
757 
758         $output = "<div id='{$id}'";
759 
760         if (!empty($class))
761         {
762             $output .= " class='{$class}'";
763         }
764 
765         if (!empty($style))
766         {
767             $output .= " style='{$style}'";
768         }
769 
770         $output .= '></div>';
771 
772         return $output;
773     }
774 
775     /**
776      * Method to get the location information back from an address
777      *
778      * @param   string  $address  The address to geocode
779      *
780      * @return  array  An array containing Google's geocode data
781      *
782      * @since   12.3
783      */
784     public function geocodeAddress($address)
785     {
786         $uri = JUri::getInstance('https://maps.googleapis.com/maps/api/geocode/json');
787 
788         $uri->setVar('address', urlencode($address));
789 
790         if (($key = $this->getKey()))
791         {
792             $uri->setVar('key', $key);
793         }
794 
795         $response = $this->http->get($uri->toString());
796 
797         if ($response->code < 200 || $response->code >= 300)
798         {
799             throw new RuntimeException('Error code ' . $response->code . ' received geocoding address: ' . $response->body . '.');
800         }
801 
802         $data = json_decode($response->body, true);
803 
804         if (!$data)
805         {
806             throw new RuntimeException('Invalid json received geocoding address: ' . $response->body . '.');
807         }
808 
809         if ($data['status'] != 'OK')
810         {
811             if (!empty($data['error_message']))
812             {
813                 throw new RuntimeException($data['error_message']);
814             }
815 
816             return;
817         }
818 
819         return $data['results'][0];
820     }
821 }
822 
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.