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  Environment
  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 /**
 13  * Browser class, provides capability information about the current web client.
 14  *
 15  * Browser identification is performed by examining the HTTP_USER_AGENT
 16  * environment variable provided by the web server.
 17  *
 18  * This class has many influences from the lib/Browser.php code in
 19  * version 3 of Horde by Chuck Hagenbuch and Jon Parise.
 20  *
 21  * @since  11.1
 22  */
 23 class JBrowser
 24 {
 25     /**
 26      * @var    integer  Major version number
 27      * @since  12.1
 28      */
 29     protected $majorVersion = 0;
 30 
 31     /**
 32      * @var    integer  Minor version number
 33      * @since  12.1
 34      */
 35     protected $minorVersion = 0;
 36 
 37     /**
 38      * @var    string  Browser name.
 39      * @since  12.1
 40      */
 41     protected $browser = '';
 42 
 43     /**
 44      * @var    string  Full user agent string.
 45      * @since  12.1
 46      */
 47     protected $agent = '';
 48 
 49     /**
 50      * @var    string  Lower-case user agent string
 51      * @since  12.1
 52      */
 53     protected $lowerAgent = '';
 54 
 55     /**
 56      * @var    string  HTTP_ACCEPT string.
 57      * @since  12.1
 58      */
 59     protected $accept = '';
 60 
 61     /**
 62      * @var    array  Parsed HTTP_ACCEPT string
 63      * @since  12.1
 64      */
 65     protected $acceptParsed = array();
 66 
 67     /**
 68      * @var    string  Platform the browser is running on
 69      * @since  12.1
 70      */
 71     protected $platform = '';
 72 
 73     /**
 74      * @var    array  Known robots.
 75      * @since  12.1
 76      */
 77     protected $robots = array(
 78         /* The most common ones. */
 79         'Googlebot',
 80         'msnbot',
 81         'Slurp',
 82         'Yahoo',
 83         /* The rest alphabetically. */
 84         'Arachnoidea',
 85         'ArchitextSpider',
 86         'Ask Jeeves',
 87         'B-l-i-t-z-Bot',
 88         'Baiduspider',
 89         'BecomeBot',
 90         'cfetch',
 91         'ConveraCrawler',
 92         'ExtractorPro',
 93         'FAST-WebCrawler',
 94         'FDSE robot',
 95         'fido',
 96         'geckobot',
 97         'Gigabot',
 98         'Girafabot',
 99         'grub-client',
100         'Gulliver',
101         'HTTrack',
102         'ia_archiver',
103         'InfoSeek',
104         'kinjabot',
105         'KIT-Fireball',
106         'larbin',
107         'LEIA',
108         'lmspider',
109         'Lycos_Spider',
110         'Mediapartners-Google',
111         'MuscatFerret',
112         'NaverBot',
113         'OmniExplorer_Bot',
114         'polybot',
115         'Pompos',
116         'Scooter',
117         'Teoma',
118         'TheSuBot',
119         'TurnitinBot',
120         'Ultraseek',
121         'ViolaBot',
122         'webbandit',
123         'www.almaden.ibm.com/cs/crawler',
124         'ZyBorg',
125     );
126 
127     /**
128      * @var    boolean  Is this a mobile browser?
129      * @since  12.1
130      */
131     protected $mobile = false;
132 
133     /**
134      * List of viewable image MIME subtypes.
135      * This list of viewable images works for IE and Netscape/Mozilla.
136      *
137      * @var    array
138      * @since  12.1
139      */
140     protected $images = array('jpeg', 'gif', 'png', 'pjpeg', 'x-png', 'bmp');
141 
142     /**
143      * @var    array  JBrowser instances container.
144      * @since  11.3
145      */
146     protected static $instances = array();
147 
148     /**
149      * Create a browser instance (constructor).
150      *
151      * @param   string  $userAgent  The browser string to parse.
152      * @param   string  $accept     The HTTP_ACCEPT settings to use.
153      *
154      * @since   11.1
155      */
156     public function __construct($userAgent = null, $accept = null)
157     {
158         $this->match($userAgent, $accept);
159     }
160 
161     /**
162      * Returns the global Browser object, only creating it
163      * if it doesn't already exist.
164      *
165      * @param   string  $userAgent  The browser string to parse.
166      * @param   string  $accept     The HTTP_ACCEPT settings to use.
167      *
168      * @return  JBrowser  The Browser object.
169      *
170      * @since   11.1
171      */
172     public static function getInstance($userAgent = null, $accept = null)
173     {
174         $signature = serialize(array($userAgent, $accept));
175 
176         if (empty(self::$instances[$signature]))
177         {
178             self::$instances[$signature] = new JBrowser($userAgent, $accept);
179         }
180 
181         return self::$instances[$signature];
182     }
183 
184     /**
185      * Parses the user agent string and inititializes the object with
186      * all the known features and quirks for the given browser.
187      *
188      * @param   string  $userAgent  The browser string to parse.
189      * @param   string  $accept     The HTTP_ACCEPT settings to use.
190      *
191      * @return  void
192      *
193      * @since   11.1
194      */
195     public function match($userAgent = null, $accept = null)
196     {
197         // Set our agent string.
198         if (is_null($userAgent))
199         {
200             if (isset($_SERVER['HTTP_USER_AGENT']))
201             {
202                 $this->agent = trim($_SERVER['HTTP_USER_AGENT']);
203             }
204         }
205         else
206         {
207             $this->agent = $userAgent;
208         }
209 
210         $this->lowerAgent = strtolower($this->agent);
211 
212         // Set our accept string.
213         if (is_null($accept))
214         {
215             if (isset($_SERVER['HTTP_ACCEPT']))
216             {
217                 $this->accept = strtolower(trim($_SERVER['HTTP_ACCEPT']));
218             }
219         }
220         else
221         {
222             $this->accept = strtolower($accept);
223         }
224 
225         if (!empty($this->agent))
226         {
227             $this->_setPlatform();
228 
229             /**
230              * Determine if mobile. Note: Some Handhelds have their screen resolution in the
231              * user agent string, which we can use to look for mobile agents.
232              */
233             if (strpos($this->agent, 'MOT-') !== false
234                 || strpos($this->lowerAgent, 'j-') !== false
235                 || preg_match('/(mobileexplorer|openwave|opera mini|opera mobi|operamini|avantgo|wap|elaine)/i', $this->agent)
236                 || preg_match('/(iPhone|iPod|iPad|Android|Mobile|Phone|BlackBerry|Xiino|Palmscape|palmsource)/i', $this->agent)
237                 || preg_match('/(Nokia|Ericsson|docomo|digital paths|portalmmm|CriOS[\/ ]([0-9.]+))/i', $this->agent)
238                 || preg_match('/(UP|UP.B|UP.L)/', $this->agent)
239                 || preg_match('/; (120x160|240x280|240x320|320x320)\)/', $this->agent))
240             {
241                 $this->mobile = true;
242             }
243 
244             // We have to check for Edge as the first browser, because Edge has something like:
245             // Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
246             if (preg_match('|Edge/([0-9.]+)|', $this->agent, $version))
247             {
248                 $this->setBrowser('edge');
249 
250                 if (strpos($version[1], '.') !== false)
251                 {
252                     list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
253                 }
254                 else
255                 {
256                     $this->majorVersion = $version[1];
257                     $this->minorVersion = 0;
258                 }
259             }
260             elseif (preg_match('|Opera[/ ]([0-9.]+)|', $this->agent, $version))
261             {
262                 $this->setBrowser('opera');
263                 list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
264 
265                 /* Due to changes in Opera UA, we need to check Version/xx.yy,
266                  * but only if version is > 9.80. See: http://dev.opera.com/articles/view/opera-ua-string-changes/ */
267                 if ($this->majorVersion == 9 && $this->minorVersion >= 80)
268                 {
269                     $this->identifyBrowserVersion();
270                 }
271             }
272 
273             // Opera 15+
274             elseif (preg_match('/OPR[\/ ]([0-9.]+)/', $this->agent, $version))
275             {
276                 $this->setBrowser('opera');
277                 list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
278             }
279             elseif (preg_match('/Chrome[\/ ]([0-9.]+)|CrMo[\/ ]([0-9.]+)|CriOS[\/ ]([0-9.]+)/i', $this->agent, $version))
280             {
281                 $this->setBrowser('chrome');
282                 list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
283             }
284             elseif (strpos($this->lowerAgent, 'elaine/') !== false
285                 || strpos($this->lowerAgent, 'palmsource') !== false
286                 || strpos($this->lowerAgent, 'digital paths') !== false)
287             {
288                 $this->setBrowser('palm');
289             }
290             elseif ((preg_match('/MSIE ([0-9.]+)|Internet Explorer\/([0-9.]+)|Trident\/([0-9.]+)/i', $this->agent, $version)))
291             {
292                 $this->setBrowser('msie');
293 
294                 // Special case for IE 11+
295                 if (strpos($version[0], 'Trident') !== false && strpos($version[0], 'rv:') !== false)
296                 {
297                     preg_match('|rv:([0-9.]+)|', $this->agent, $version);
298                 }
299 
300                 if (strpos($version[1], '.') !== false)
301                 {
302                     list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
303                 }
304                 else
305                 {
306                     $this->majorVersion = $version[1];
307                     $this->minorVersion = 0;
308                 }
309             }
310             elseif (preg_match('|amaya/([0-9.]+)|', $this->agent, $version))
311             {
312                 $this->setBrowser('amaya');
313                 $this->majorVersion = $version[1];
314 
315                 if (isset($version[2]))
316                 {
317                     $this->minorVersion = $version[2];
318                 }
319             }
320             elseif (preg_match('|ANTFresco/([0-9]+)|', $this->agent, $version))
321             {
322                 $this->setBrowser('fresco');
323             }
324             elseif (strpos($this->lowerAgent, 'avantgo') !== false)
325             {
326                 $this->setBrowser('avantgo');
327             }
328             elseif (preg_match('|[Kk]onqueror/([0-9]+)|', $this->agent, $version) || preg_match('|Safari/([0-9]+)\.?([0-9]+)?|', $this->agent, $version))
329             {
330                 // Konqueror and Apple's Safari both use the KHTML
331                 // rendering engine.
332                 $this->setBrowser('konqueror');
333                 $this->majorVersion = $version[1];
334 
335                 if (isset($version[2]))
336                 {
337                     $this->minorVersion = $version[2];
338                 }
339 
340                 if (strpos($this->agent, 'Safari') !== false && $this->majorVersion >= 60)
341                 {
342                     // Safari.
343                     $this->setBrowser('safari');
344                     $this->identifyBrowserVersion();
345                 }
346             }
347             elseif (preg_match('|Mozilla/([0-9.]+)|', $this->agent, $version))
348             {
349                 $this->setBrowser('mozilla');
350 
351                 list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
352             }
353             elseif (preg_match('|Lynx/([0-9]+)|', $this->agent, $version))
354             {
355                 $this->setBrowser('lynx');
356             }
357             elseif (preg_match('|Links \(([0-9]+)|', $this->agent, $version))
358             {
359                 $this->setBrowser('links');
360             }
361             elseif (preg_match('|HotJava/([0-9]+)|', $this->agent, $version))
362             {
363                 $this->setBrowser('hotjava');
364             }
365             elseif (strpos($this->agent, 'UP/') !== false || strpos($this->agent, 'UP.B') !== false || strpos($this->agent, 'UP.L') !== false)
366             {
367                 $this->setBrowser('up');
368             }
369             elseif (strpos($this->agent, 'Xiino/') !== false)
370             {
371                 $this->setBrowser('xiino');
372             }
373             elseif (strpos($this->agent, 'Palmscape/') !== false)
374             {
375                 $this->setBrowser('palmscape');
376             }
377             elseif (strpos($this->agent, 'Nokia') !== false)
378             {
379                 $this->setBrowser('nokia');
380             }
381             elseif (strpos($this->agent, 'Ericsson') !== false)
382             {
383                 $this->setBrowser('ericsson');
384             }
385             elseif (strpos($this->lowerAgent, 'wap') !== false)
386             {
387                 $this->setBrowser('wap');
388             }
389             elseif (strpos($this->lowerAgent, 'docomo') !== false || strpos($this->lowerAgent, 'portalmmm') !== false)
390             {
391                 $this->setBrowser('imode');
392             }
393             elseif (strpos($this->agent, 'BlackBerry') !== false)
394             {
395                 $this->setBrowser('blackberry');
396             }
397             elseif (strpos($this->agent, 'MOT-') !== false)
398             {
399                 $this->setBrowser('motorola');
400             }
401             elseif (strpos($this->lowerAgent, 'j-') !== false)
402             {
403                 $this->setBrowser('mml');
404             }
405         }
406     }
407 
408     /**
409      * Match the platform of the browser.
410      *
411      * This is a pretty simplistic implementation, but it's intended
412      * to let us tell what line breaks to send, so it's good enough
413      * for its purpose.
414      *
415      * @return  void
416      *
417      * @since   11.1
418      */
419     protected function _setPlatform()
420     {
421         if (strpos($this->lowerAgent, 'wind') !== false)
422         {
423             $this->platform = 'win';
424         }
425         elseif (strpos($this->lowerAgent, 'mac') !== false)
426         {
427             $this->platform = 'mac';
428         }
429         else
430         {
431             $this->platform = 'unix';
432         }
433     }
434 
435     /**
436      * Return the currently matched platform.
437      *
438      * @return  string  The user's platform.
439      *
440      * @since   11.1
441      */
442     public function getPlatform()
443     {
444         return $this->platform;
445     }
446 
447     /**
448      * Set browser version, not by engine version
449      * Fallback to use when no other method identify the engine version
450      *
451      * @return  void
452      *
453      * @since   11.1
454      */
455     protected function identifyBrowserVersion()
456     {
457         if (preg_match('|Version[/ ]([0-9.]+)|', $this->agent, $version))
458         {
459             list ($this->majorVersion, $this->minorVersion) = explode('.', $version[1]);
460 
461             return;
462         }
463 
464         // Can't identify browser version
465         $this->majorVersion = 0;
466         $this->minorVersion = 0;
467     }
468 
469     /**
470      * Sets the current browser.
471      *
472      * @param   string  $browser  The browser to set as current.
473      *
474      * @return  void
475      *
476      * @since   11.1
477      */
478     public function setBrowser($browser)
479     {
480         $this->browser = $browser;
481     }
482 
483     /**
484      * Retrieve the current browser.
485      *
486      * @return  string  The current browser.
487      *
488      * @since   11.1
489      */
490     public function getBrowser()
491     {
492         return $this->browser;
493     }
494 
495     /**
496      * Retrieve the current browser's major version.
497      *
498      * @return  integer  The current browser's major version
499      *
500      * @since   11.1
501      */
502     public function getMajor()
503     {
504         return $this->majorVersion;
505     }
506 
507     /**
508      * Retrieve the current browser's minor version.
509      *
510      * @return  integer  The current browser's minor version.
511      *
512      * @since   11.1
513      */
514     public function getMinor()
515     {
516         return $this->minorVersion;
517     }
518 
519     /**
520      * Retrieve the current browser's version.
521      *
522      * @return  string  The current browser's version.
523      *
524      * @since   11.1
525      */
526     public function getVersion()
527     {
528         return $this->majorVersion . '.' . $this->minorVersion;
529     }
530 
531     /**
532      * Return the full browser agent string.
533      *
534      * @return  string  The browser agent string
535      *
536      * @since   11.1
537      */
538     public function getAgentString()
539     {
540         return $this->agent;
541     }
542 
543     /**
544      * Returns the server protocol in use on the current server.
545      *
546      * @return  string  The HTTP server protocol version.
547      *
548      * @since   11.1
549      */
550     public function getHTTPProtocol()
551     {
552         if (isset($_SERVER['SERVER_PROTOCOL']))
553         {
554             if (($pos = strrpos($_SERVER['SERVER_PROTOCOL'], '/')))
555             {
556                 return substr($_SERVER['SERVER_PROTOCOL'], $pos + 1);
557             }
558         }
559 
560         return;
561     }
562 
563     /**
564      * Determines if a browser can display a given MIME type.
565      *
566      * Note that  image/jpeg and image/pjpeg *appear* to be the same
567      * entity, but Mozilla doesn't seem to want to accept the latter.
568      * For our purposes, we will treat them the same.
569      *
570      * @param   string  $mimetype  The MIME type to check.
571      *
572      * @return  boolean  True if the browser can display the MIME type.
573      *
574      * @since   11.1
575      */
576     public function isViewable($mimetype)
577     {
578         $mimetype = strtolower($mimetype);
579         list ($type, $subtype) = explode('/', $mimetype);
580 
581         if (!empty($this->accept))
582         {
583             $wildcard_match = false;
584 
585             if (strpos($this->accept, $mimetype) !== false)
586             {
587                 return true;
588             }
589 
590             if (strpos($this->accept, '*/*') !== false)
591             {
592                 $wildcard_match = true;
593 
594                 if ($type != 'image')
595                 {
596                     return true;
597                 }
598             }
599 
600             // Deal with Mozilla pjpeg/jpeg issue
601             if ($this->isBrowser('mozilla') && ($mimetype == 'image/pjpeg') && (strpos($this->accept, 'image/jpeg') !== false))
602             {
603                 return true;
604             }
605 
606             if (!$wildcard_match)
607             {
608                 return false;
609             }
610         }
611 
612         if ($type != 'image')
613         {
614             return false;
615         }
616 
617         return in_array($subtype, $this->images);
618     }
619 
620     /**
621      * Determine if the given browser is the same as the current.
622      *
623      * @param   string  $browser  The browser to check.
624      *
625      * @return  boolean  Is the given browser the same as the current?
626      *
627      * @since   11.1
628      */
629     public function isBrowser($browser)
630     {
631         return $this->browser === $browser;
632     }
633 
634     /**
635      * Determines if the browser is a robot or not.
636      *
637      * @return  boolean  True if browser is a known robot.
638      *
639      * @since   11.1
640      */
641     public function isRobot()
642     {
643         foreach ($this->robots as $robot)
644         {
645             if (strpos($this->agent, $robot) !== false)
646             {
647                 return true;
648             }
649         }
650 
651         return false;
652     }
653 
654     /**
655      * Determines if the browser is mobile version or not.
656      *
657      * @return boolean  True if browser is a known mobile version.
658      *
659      * @since   11.1
660      */
661     public function isMobile()
662     {
663         return $this->mobile;
664     }
665 
666     /**
667      * Determine if we are using a secure (SSL) connection.
668      *
669      * @return  boolean  True if using SSL, false if not.
670      *
671      * @since   11.1
672      * @deprecated  13.3 (Platform) & 4.0 (CMS) - Use the isSSLConnection method on the application object.
673      */
674     public function isSSLConnection()
675     {
676         JLog::add(
677             'JBrowser::isSSLConnection() is deprecated. Use the isSSLConnection method on the application object instead.',
678             JLog::WARNING,
679             'deprecated'
680         );
681 
682         return (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) || getenv('SSL_PROTOCOL_VERSION');
683     }
684 }
685 
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.