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.Libraries
  4  * @subpackage  Layout
  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.txt
  8  */
  9 
 10 defined('JPATH_PLATFORM') or die;
 11 
 12 /**
 13  * Base class for rendering a display layout
 14  * loaded from from a layout file
 15  *
 16  * @link   https://docs.joomla.org/Special:MyLanguage/Sharing_layouts_across_views_or_extensions_with_JLayout
 17  * @since  3.0
 18  */
 19 class JLayoutFile extends JLayoutBase
 20 {
 21     /**
 22      * Cached layout paths
 23      *
 24      * @var    array
 25      * @since  3.5
 26      */
 27     protected static $cache = array();
 28 
 29     /**
 30      * Dot separated path to the layout file, relative to base path
 31      *
 32      * @var    string
 33      * @since  3.0
 34      */
 35     protected $layoutId = '';
 36 
 37     /**
 38      * Base path to use when loading layout files
 39      *
 40      * @var    string
 41      * @since  3.0
 42      */
 43     protected $basePath = null;
 44 
 45     /**
 46      * Full path to actual layout files, after possible template override check
 47      *
 48      * @var    string
 49      * @since  3.0.3
 50      */
 51     protected $fullPath = null;
 52 
 53     /**
 54      * Paths to search for layouts
 55      *
 56      * @var    array
 57      * @since  3.2
 58      */
 59     protected $includePaths = array();
 60 
 61     /**
 62      * Method to instantiate the file-based layout.
 63      *
 64      * @param   string  $layoutId  Dot separated path to the layout file, relative to base path
 65      * @param   string  $basePath  Base path to use when loading layout files
 66      * @param   mixed   $options   Optional custom options to load. Registry or array format [@since 3.2]
 67      *
 68      * @since   3.0
 69      */
 70     public function __construct($layoutId, $basePath = null, $options = null)
 71     {
 72         // Initialise / Load options
 73         $this->setOptions($options);
 74 
 75         // Main properties
 76         $this->setLayout($layoutId);
 77         $this->basePath = $basePath;
 78 
 79         // Init Enviroment
 80         $this->setComponent($this->options->get('component', 'auto'));
 81         $this->setClient($this->options->get('client', 'auto'));
 82     }
 83 
 84     /**
 85      * Method to render the layout.
 86      *
 87      * @param   array  $displayData  Array of properties available for use inside the layout file to build the displayed output
 88      *
 89      * @return  string  The necessary HTML to display the layout
 90      *
 91      * @since   3.0
 92      */
 93     public function render($displayData = array())
 94     {
 95         $this->clearDebugMessages();
 96 
 97         // Inherit base output from parent class
 98         $layoutOutput = '';
 99 
100         // Automatically merge any previously data set if $displayData is an array
101         if (is_array($displayData))
102         {
103             $displayData = array_merge($this->data, $displayData);
104         }
105 
106         // Check possible overrides, and build the full path to layout file
107         $path = $this->getPath();
108 
109         if ($this->isDebugEnabled())
110         {
111             echo '<pre>' . $this->renderDebugMessages() . '</pre>';
112         }
113 
114         // Nothing to show
115         if (empty($path))
116         {
117             return $layoutOutput;
118         }
119 
120         ob_start();
121         include $path;
122         $layoutOutput .= ob_get_contents();
123         ob_end_clean();
124 
125         return $layoutOutput;
126     }
127 
128     /**
129      * Method to finds the full real file path, checking possible overrides
130      *
131      * @return  string  The full path to the layout file
132      *
133      * @since   3.0
134      */
135     protected function getPath()
136     {
137         JLoader::import('joomla.filesystem.path');
138 
139         $layoutId     = $this->getLayoutId();
140         $includePaths = $this->getIncludePaths();
141         $suffixes     = $this->getSuffixes();
142 
143         $this->addDebugMessage('<strong>Layout:</strong> ' . $this->layoutId);
144 
145         if (!$layoutId)
146         {
147             $this->addDebugMessage('<strong>There is no active layout</strong>');
148 
149             return;
150         }
151 
152         if (!$includePaths)
153         {
154             $this->addDebugMessage('<strong>There are no folders to search for layouts:</strong> ' . $layoutId);
155 
156             return;
157         }
158 
159         $hash = md5(
160             json_encode(
161                 array(
162                     'paths'    => $includePaths,
163                     'suffixes' => $suffixes,
164                 )
165             )
166         );
167 
168         if (!empty(static::$cache[$layoutId][$hash]))
169         {
170             $this->addDebugMessage('<strong>Cached path:</strong> ' . static::$cache[$layoutId][$hash]);
171 
172             return static::$cache[$layoutId][$hash];
173         }
174 
175         $this->addDebugMessage('<strong>Include Paths:</strong> ' . print_r($includePaths, true));
176 
177         // Search for suffixed versions. Example: tags.j31.php
178         if ($suffixes)
179         {
180             $this->addDebugMessage('<strong>Suffixes:</strong> ' . print_r($suffixes, true));
181 
182             foreach ($suffixes as $suffix)
183             {
184                 $rawPath  = str_replace('.', '/', $this->layoutId) . '.' . $suffix . '.php';
185                 $this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath);
186 
187                 if ($foundLayout = JPath::find($this->includePaths, $rawPath))
188                 {
189                     $this->addDebugMessage('<strong>Found layout:</strong> ' . $this->fullPath);
190 
191                     static::$cache[$layoutId][$hash] = $foundLayout;
192 
193                     return static::$cache[$layoutId][$hash];
194                 }
195             }
196         }
197 
198         // Standard version
199         $rawPath  = str_replace('.', '/', $this->layoutId) . '.php';
200         $this->addDebugMessage('<strong>Searching layout for:</strong> ' . $rawPath);
201 
202         $foundLayout = JPath::find($this->includePaths, $rawPath);
203 
204         if (!$foundLayout)
205         {
206             $this->addDebugMessage('<strong>Unable to find layout: </strong> ' . $layoutId);
207 
208             return;
209         }
210 
211         $this->addDebugMessage('<strong>Found layout:</strong> ' . $foundLayout);
212 
213         static::$cache[$layoutId][$hash] = $foundLayout;
214 
215         return static::$cache[$layoutId][$hash];
216     }
217 
218     /**
219      * Add one path to include in layout search. Proxy of addIncludePaths()
220      *
221      * @param   string  $path  The path to search for layouts
222      *
223      * @return  self
224      *
225      * @since   3.2
226      */
227     public function addIncludePath($path)
228     {
229         $this->addIncludePaths($path);
230 
231         return $this;
232     }
233 
234     /**
235      * Add one or more paths to include in layout search
236      *
237      * @param   string  $paths  The path or array of paths to search for layouts
238      *
239      * @return  self
240      *
241      * @since   3.2
242      */
243     public function addIncludePaths($paths)
244     {
245         if (empty($paths))
246         {
247             return $this;
248         }
249 
250         $includePaths = $this->getIncludePaths();
251 
252         if (is_array($paths))
253         {
254             $includePaths = array_unique(array_merge($paths, $includePaths));
255         }
256         else
257         {
258             array_unshift($includePaths, $paths);
259         }
260 
261         $this->setIncludePaths($includePaths);
262 
263         return $this;
264     }
265 
266     /**
267      * Clear the include paths
268      *
269      * @return  self
270      *
271      * @since   3.5
272      */
273     public function clearIncludePaths()
274     {
275         $this->includePaths = array();
276 
277         return $this;
278     }
279 
280     /**
281      * Get the active include paths
282      *
283      * @return  array
284      *
285      * @since   3.5
286      */
287     public function getIncludePaths()
288     {
289         if (empty($this->includePaths))
290         {
291             $this->includePaths = $this->getDefaultIncludePaths();
292         }
293 
294         return $this->includePaths;
295     }
296 
297     /**
298      * Get the active layout id
299      *
300      * @return  string
301      *
302      * @since   3.5
303      */
304     public function getLayoutId()
305     {
306         return $this->layoutId;
307     }
308 
309     /**
310      * Get the active suffixes
311      *
312      * @return  array
313      *
314      * @since   3.5
315      */
316     public function getSuffixes()
317     {
318         return $this->getOptions()->get('suffixes', array());
319     }
320 
321     /**
322      * Load the automatically generated language suffixes.
323      * Example: array('es-ES', 'es', 'ltr')
324      *
325      * @return  self
326      *
327      * @since   3.5
328      */
329     public function loadLanguageSuffixes()
330     {
331         $lang = JFactory::getLanguage();
332 
333         $langTag = $lang->getTag();
334         $langParts = explode('-', $langTag);
335 
336         $suffixes = array($langTag, $langParts[0]);
337         $suffixes[] = $lang->isRTL() ? 'rtl' : 'ltr';
338 
339         $this->setSuffixes($suffixes);
340 
341         return $this;
342     }
343 
344     /**
345      * Load the automatically generated version suffixes.
346      * Example: array('j311', 'j31', 'j3')
347      *
348      * @return  self
349      *
350      * @since   3.5
351      */
352     public function loadVersionSuffixes()
353     {
354         $cmsVersion = new JVersion;
355 
356         // Example j311
357         $fullVersion = 'j' . str_replace('.', '', $cmsVersion->getShortVersion());
358 
359         // Create suffixes like array('j311', 'j31', 'j3')
360         $suffixes = array(
361             $fullVersion,
362             substr($fullVersion, 0, 3),
363             substr($fullVersion, 0, 2),
364         );
365 
366         $this->setSuffixes(array_unique($suffixes));
367 
368         return $this;
369     }
370 
371     /**
372      * Remove one path from the layout search
373      *
374      * @param   string  $path  The path to remove from the layout search
375      *
376      * @return  self
377      *
378      * @since   3.2
379      */
380     public function removeIncludePath($path)
381     {
382         $this->removeIncludePaths($path);
383 
384         return $this;
385     }
386 
387     /**
388      * Remove one or more paths to exclude in layout search
389      *
390      * @param   string  $paths  The path or array of paths to remove for the layout search
391      *
392      * @return  self
393      *
394      * @since   3.2
395      */
396     public function removeIncludePaths($paths)
397     {
398         if (!empty($paths))
399         {
400             $paths = (array) $paths;
401 
402             $this->includePaths = array_diff($this->includePaths, $paths);
403         }
404 
405         return $this;
406     }
407 
408     /**
409      * Validate that the active component is valid
410      *
411      * @param   string  $option  URL Option of the component. Example: com_content
412      *
413      * @return  boolean
414      *
415      * @since   3.2
416      */
417     protected function validComponent($option = null)
418     {
419         // By default we will validate the active component
420         $component = ($option !== null) ? $option : $this->options->get('component', null);
421 
422         // Valid option format
423         if (!empty($component) && substr_count($component, 'com_'))
424         {
425             // Latest check: component exists and is enabled
426             return JComponentHelper::isEnabled($component);
427         }
428 
429         return false;
430     }
431 
432     /**
433      * Method to change the component where search for layouts
434      *
435      * @param   string  $option  URL Option of the component. Example: com_content
436      *
437      * @return  mixed  Component option string | null for none
438      *
439      * @since   3.2
440      */
441     public function setComponent($option)
442     {
443         $component = null;
444 
445         switch ((string) $option)
446         {
447             case 'none':
448                 $component = null;
449                 break;
450 
451             case 'auto':
452                 $component = JApplicationHelper::getComponentName();
453                 break;
454 
455             default:
456                 $component = $option;
457                 break;
458         }
459 
460         // Extra checks
461         if (!$this->validComponent($component))
462         {
463             $component = null;
464         }
465 
466         $this->options->set('component', $component);
467 
468         // Refresh include paths
469         $this->refreshIncludePaths();
470     }
471 
472     /**
473      * Function to initialise the application client
474      *
475      * @param   mixed  $client  Frontend: 'site' or 0 | Backend: 'admin' or 1
476      *
477      * @return  void
478      *
479      * @since   3.2
480      */
481     public function setClient($client)
482     {
483         // Force string conversion to avoid unexpected states
484         switch ((string) $client)
485         {
486             case 'site':
487             case '0':
488                 $client = 0;
489                 break;
490 
491             case 'admin':
492             case '1':
493                 $client = 1;
494                 break;
495 
496             default:
497                 $client = (int) JFactory::getApplication()->isClient('administrator');
498                 break;
499         }
500 
501         $this->options->set('client', $client);
502 
503         // Refresh include paths
504         $this->refreshIncludePaths();
505     }
506 
507     /**
508      * Change the layout
509      *
510      * @param   string  $layoutId  Layout to render
511      *
512      * @return  self
513      *
514      * @since   3.2
515      *
516      * @deprecated  3.5  Use setLayoutId()
517      */
518     public function setLayout($layoutId)
519     {
520         // Log usage of deprecated function
521         JLog::add(__METHOD__ . '() is deprecated, use JLayoutFile::setLayoutId() instead.', JLog::WARNING, 'deprecated');
522 
523         return $this->setLayoutId($layoutId);
524     }
525 
526     /**
527      * Set the active layout id
528      *
529      * @param   string  $layoutId  Layout identifier
530      *
531      * @return  self
532      *
533      * @since   3.5
534      */
535     public function setLayoutId($layoutId)
536     {
537         $this->layoutId = $layoutId;
538         $this->fullPath = null;
539 
540         return $this;
541     }
542 
543     /**
544      * Refresh the list of include paths
545      *
546      * @return  self
547      *
548      * @since   3.2
549      *
550      * @deprecated  3.5  Use JLayoutFile::clearIncludePaths()
551      */
552     protected function refreshIncludePaths()
553     {
554         // Log usage of deprecated function
555         JLog::add(__METHOD__ . '() is deprecated, use JLayoutFile::clearIncludePaths() instead.', JLog::WARNING, 'deprecated');
556 
557         $this->clearIncludePaths();
558 
559         return $this;
560     }
561 
562     /**
563      * Get the default array of include paths
564      *
565      * @return  array
566      *
567      * @since   3.5
568      */
569     public function getDefaultIncludePaths()
570     {
571         // Reset includePaths
572         $paths = array();
573 
574         // (1 - highest priority) Received a custom high priority path
575         if ($this->basePath !== null)
576         {
577             $paths[] = rtrim($this->basePath, DIRECTORY_SEPARATOR);
578         }
579 
580         // Component layouts & overrides if exist
581         $component = $this->options->get('component', null);
582 
583         if (!empty($component))
584         {
585             // (2) Component template overrides path
586             $paths[] = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/layouts/' . $component;
587 
588             // (3) Component path
589             if ($this->options->get('client') == 0)
590             {
591                 $paths[] = JPATH_SITE . '/components/' . $component . '/layouts';
592             }
593             else
594             {
595                 $paths[] = JPATH_ADMINISTRATOR . '/components/' . $component . '/layouts';
596             }
597         }
598 
599         // (4) Standard Joomla! layouts overriden
600         $paths[] = JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/layouts';
601 
602         // (5 - lower priority) Frontend base layouts
603         $paths[] = JPATH_ROOT . '/layouts';
604 
605         return $paths;
606     }
607 
608     /**
609      * Set the include paths to search for layouts
610      *
611      * @param   array  $paths  Array with paths to search in
612      *
613      * @return  self
614      *
615      * @since   3.5
616      */
617     public function setIncludePaths($paths)
618     {
619         $this->includePaths = (array) $paths;
620 
621         return $this;
622     }
623 
624     /**
625      * Set suffixes to search layouts
626      *
627      * @param   mixed  $suffixes  String with a single suffix or 'auto' | 'none' or array of suffixes
628      *
629      * @return  self
630      *
631      * @since   3.5
632      */
633     public function setSuffixes(array $suffixes)
634     {
635         $this->options->set('suffixes', $suffixes);
636 
637         return $this;
638     }
639 
640     /**
641      * Render a layout with the same include paths & options
642      *
643      * @param   string  $layoutId     The identifier for the sublayout to be searched in a subfolder with the name of the current layout
644      * @param   mixed   $displayData  Data to be rendered
645      *
646      * @return  string  The necessary HTML to display the layout
647      *
648      * @since   3.2
649      */
650     public function sublayout($layoutId, $displayData)
651     {
652         // Sublayouts are searched in a subfolder with the name of the current layout
653         if (!empty($this->layoutId))
654         {
655             $layoutId = $this->layoutId . '.' . $layoutId;
656         }
657 
658         $sublayout = new static($layoutId, $this->basePath, $this->options);
659         $sublayout->includePaths = $this->includePaths;
660 
661         return $sublayout->render($displayData);
662     }
663 }
664 
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.