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     FrameworkOnFramework
  4  * @subpackage  render
  5  * @copyright   Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
  6  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  7  */
  8 defined('FOF_INCLUDED') or die;
  9 
 10 /**
 11  * Default Joomla! 1.5, 1.7, 2.5 view renderer class
 12  *
 13  * @package  FrameworkOnFramework
 14  * @since    2.0
 15  */
 16 class FOFRenderJoomla extends FOFRenderAbstract
 17 {
 18     /**
 19      * Public constructor. Determines the priority of this class and if it should be enabled
 20      */
 21     public function __construct()
 22     {
 23         $this->priority  = 50;
 24         $this->enabled   = true;
 25     }
 26 
 27     /**
 28      * Echoes any HTML to show before the view template
 29      *
 30      * @param   string    $view    The current view
 31      * @param   string    $task    The current task
 32      * @param   FOFInput  $input   The input array (request parameters)
 33      * @param   array     $config  The view configuration array
 34      *
 35      * @return  void
 36      */
 37     public function preRender($view, $task, $input, $config = array())
 38     {
 39         $format  = $input->getCmd('format', 'html');
 40 
 41         if (empty($format))
 42         {
 43             $format  = 'html';
 44         }
 45 
 46         if ($format != 'html')
 47         {
 48             return;
 49         }
 50 
 51         $platform = FOFPlatform::getInstance();
 52 
 53         if ($platform->isCli())
 54         {
 55             return;
 56         }
 57 
 58         if (version_compare(JVERSION, '3.0.0', 'lt'))
 59         {
 60             JHtml::_('behavior.framework');
 61         }
 62         else
 63         {
 64             if (version_compare(JVERSION, '3.3.0', 'ge'))
 65             {
 66                 JHtml::_('behavior.core');
 67             }
 68             else
 69             {
 70                 JHtml::_('behavior.framework', true);
 71             }
 72 
 73             JHtml::_('jquery.framework');
 74         }
 75 
 76         // Wrap output in various classes
 77         $version = new JVersion;
 78         $versionParts = explode('.', $version->RELEASE);
 79         $minorVersion = str_replace('.', '', $version->RELEASE);
 80         $majorVersion = array_shift($versionParts);
 81 
 82         if ($platform->isBackend())
 83         {
 84             $area = $platform->isBackend() ? 'admin' : 'site';
 85             $option = $input->getCmd('option', '');
 86             $view = $input->getCmd('view', '');
 87             $layout = $input->getCmd('layout', '');
 88             $task = $input->getCmd('task', '');
 89 
 90             $classes = array(
 91                 'joomla-version-' . $majorVersion,
 92                 'joomla-version-' . $minorVersion,
 93                 $area,
 94                 $option,
 95                 'view-' . $view,
 96                 'layout-' . $layout,
 97                 'task-' . $task,
 98             );
 99         }
100         elseif ($platform->isFrontend())
101         {
102             // @TODO: Remove the frontend Joomla! version classes in FOF 3
103             $classes = array(
104                 'joomla-version-' . $majorVersion,
105                 'joomla-version-' . $minorVersion,
106             );
107         }
108 
109         echo '<div id="akeeba-renderjoomla" class="' . implode($classes, ' ') . "\">\n";
110 
111         // Render submenu and toolbar (only if asked to)
112         if ($input->getBool('render_toolbar', true))
113         {
114             $this->renderButtons($view, $task, $input, $config);
115             $this->renderLinkbar($view, $task, $input, $config);
116         }
117     }
118 
119     /**
120      * Echoes any HTML to show after the view template
121      *
122      * @param   string    $view    The current view
123      * @param   string    $task    The current task
124      * @param   FOFInput  $input   The input array (request parameters)
125      * @param   array     $config  The view configuration array
126      *
127      * @return  void
128      */
129     public function postRender($view, $task, $input, $config = array())
130     {
131         $format  = $input->getCmd('format', 'html');
132 
133         if (empty($format))
134         {
135             $format  = 'html';
136         }
137 
138         if ($format != 'html')
139         {
140             return;
141         }
142 
143         // Closing tag only if we're not in CLI
144         if (FOFPlatform::getInstance()->isCli())
145         {
146             return;
147         }
148 
149         echo "</div>\n";    // Closes akeeba-renderjoomla div
150     }
151 
152     /**
153      * Renders a FOFForm for a Browse view and returns the corresponding HTML
154      *
155      * @param   FOFForm   &$form  The form to render
156      * @param   FOFModel  $model  The model providing our data
157      * @param   FOFInput  $input  The input object
158      *
159      * @return  string    The HTML rendering of the form
160      */
161     protected function renderFormBrowse(FOFForm &$form, FOFModel $model, FOFInput $input)
162     {
163         JHtml::_('behavior.multiselect');
164 
165         // Getting all header row elements
166         $headerFields = $form->getHeaderset();
167 
168         // Start the form
169         $html                = '';
170         $filter_order        = $form->getView()->getLists()->order;
171         $filter_order_Dir    = $form->getView()->getLists()->order_Dir;
172         $actionUrl           = FOFPlatform::getInstance()->isBackend() ? 'index.php' : JUri::root().'index.php';
173 
174         if (FOFPlatform::getInstance()->isFrontend() && ($input->getCmd('Itemid', 0) != 0))
175         {
176             $itemid = $input->getCmd('Itemid', 0);
177             $uri = new JUri($actionUrl);
178 
179             if ($itemid)
180             {
181                 $uri->setVar('Itemid', $itemid);
182             }
183 
184             $actionUrl = JRoute::_($uri->toString());
185         }
186 
187         $html .= '<form action="'.$actionUrl.'" method="post" name="adminForm" id="adminForm">' . PHP_EOL;
188         $html .= "\t" . '<input type="hidden" name="option" value="' . $input->getCmd('option') . '" />' . PHP_EOL;
189         $html .= "\t" . '<input type="hidden" name="view" value="' . FOFInflector::pluralize($input->getCmd('view')) . '" />' . PHP_EOL;
190         $html .= "\t" . '<input type="hidden" name="task" value="" />' . PHP_EOL;
191         $html .= "\t" . '<input type="hidden" name="layout" value="' . $input->getCmd('layout', '') . '" />' . PHP_EOL;
192         $html .= "\t" . '<input type="hidden" name="boxchecked" value="" />' . PHP_EOL;
193         $html .= "\t" . '<input type="hidden" name="hidemainmenu" value="" />' . PHP_EOL;
194         $html .= "\t" . '<input type="hidden" name="filter_order" value="' . $filter_order . '" />' . PHP_EOL;
195         $html .= "\t" . '<input type="hidden" name="filter_order_Dir" value="' . $filter_order_Dir . '" />' . PHP_EOL;
196 
197         $html .= "\t" . '<input type="hidden" name="' . JFactory::getSession()->getFormToken() . '" value="1" />' . PHP_EOL;
198 
199         // Start the table output
200         $html .= "\t\t" . '<table class="adminlist" id="adminList">' . PHP_EOL;
201 
202         // Get form parameters
203         $show_header         = $form->getAttribute('show_header', 1);
204         $show_filters        = $form->getAttribute('show_filters', 1);
205         $show_pagination     = $form->getAttribute('show_pagination', 1);
206         $norows_placeholder  = $form->getAttribute('norows_placeholder', '');
207 
208         // Open the table header region if required
209         if ($show_header || $show_filters)
210         {
211             $html .= "\t\t\t<thead>" . PHP_EOL;
212         }
213 
214         // Pre-render the header and filter rows
215         if ($show_header || $show_filters)
216         {
217             $header_html = '';
218             $filter_html = '';
219 
220             foreach ($headerFields as $header)
221             {
222                 // Make sure we have a header field. Under Joomla! 2.5 we cannot
223                 // render filter-only fields.
224                 $tmpHeader = $header->header;
225 
226                 if (empty($tmpHeader))
227                 {
228                     continue;
229                 }
230 
231                 $tdwidth = $header->tdwidth;
232 
233                 if (!empty($tdwidth))
234                 {
235                     $tdwidth = 'width="' . $tdwidth . '"';
236                 }
237                 else
238                 {
239                     $tdwidth = '';
240                 }
241 
242                 $header_html .= "\t\t\t\t\t<th $tdwidth>" . PHP_EOL;
243                 $header_html .= "\t\t\t\t\t\t" . $tmpHeader;
244                 $header_html .= "\t\t\t\t\t</th>" . PHP_EOL;
245 
246                 $filter  = $header->filter;
247                 $buttons = $header->buttons;
248                 $options = $header->options;
249 
250                 $filter_html .= "\t\t\t\t\t<td>" . PHP_EOL;
251 
252                 if (!empty($filter))
253                 {
254                     $filter_html .= "\t\t\t\t\t\t$filter" . PHP_EOL;
255 
256                     if (!empty($buttons))
257                     {
258                         $filter_html .= "\t\t\t\t\t\t<nobr>$buttons</nobr>" . PHP_EOL;
259                     }
260                 }
261                 elseif (!empty($options))
262                 {
263                     $label       = $header->label;
264                     $emptyOption = JHtml::_('select.option', '', '- ' . JText::_($label) . ' -');
265                     array_unshift($options, $emptyOption);
266                     $attribs     = array(
267                         'onchange' => 'document.adminForm.submit();'
268                     );
269                     $filter      = JHtml::_('select.genericlist', $options, $header->name, $attribs, 'value', 'text', $header->value, false, true);
270                     $filter_html .= "\t\t\t\t\t\t$filter" . PHP_EOL;
271                 }
272 
273                 $filter_html .= "\t\t\t\t\t</td>" . PHP_EOL;
274             }
275         }
276 
277         // Render header if enabled
278         if ($show_header)
279         {
280             $html .= "\t\t\t\t<tr>" . PHP_EOL;
281             $html .= $header_html;
282             $html .= "\t\t\t\t</tr>" . PHP_EOL;
283         }
284 
285         // Render filter row if enabled
286         if ($show_filters)
287         {
288             $html .= "\t\t\t\t<tr>";
289             $html .= $filter_html;
290             $html .= "\t\t\t\t</tr>";
291         }
292 
293         // Close the table header region if required
294         if ($show_header || $show_filters)
295         {
296             $html .= "\t\t\t</thead>" . PHP_EOL;
297         }
298 
299         // Loop through rows and fields, or show placeholder for no rows
300         $html .= "\t\t\t<tbody>" . PHP_EOL;
301         $fields      = $form->getFieldset('items');
302         $num_columns = count($fields);
303         $items       = $form->getModel()->getItemList();
304 
305         if ($count = count($items))
306         {
307             $m = 1;
308 
309             foreach ($items as $i => $item)
310             {
311                 $table_item = $form->getModel()->getTable();
312                 $table_item->reset();
313                 $table_item->bind($item);
314 
315                 $form->bind($item);
316 
317                 $m       = 1 - $m;
318                 $class   = 'row' . $m;
319 
320                 $html .= "\t\t\t\t<tr class=\"$class\">" . PHP_EOL;
321 
322                 $fields = $form->getFieldset('items');
323 
324                 foreach ($fields as $field)
325                 {
326                     $field->rowid    = $i;
327                     $field->item     = $table_item;
328                     $labelClass = $field->labelClass ? $field->labelClass : $field->labelclass; // Joomla! 2.5/3.x use different case for the same name
329                     $class           = $labelClass ? 'class ="' . $labelClass . '"' : '';
330                     $html .= "\t\t\t\t\t<td $class>" . $field->getRepeatable() . '</td>' . PHP_EOL;
331                 }
332 
333                 $html .= "\t\t\t\t</tr>" . PHP_EOL;
334             }
335         }
336         elseif ($norows_placeholder)
337         {
338             $html .= "\t\t\t\t<tr><td colspan=\"$num_columns\">";
339             $html .= JText::_($norows_placeholder);
340             $html .= "</td></tr>\n";
341         }
342 
343         $html .= "\t\t\t</tbody>" . PHP_EOL;
344 
345         // Render the pagination bar, if enabled
346 
347         if ($show_pagination)
348         {
349             $pagination = $form->getModel()->getPagination();
350             $html .= "\t\t\t<tfoot>" . PHP_EOL;
351             $html .= "\t\t\t\t<tr><td colspan=\"$num_columns\">";
352 
353             if (($pagination->total > 0))
354             {
355                 $html .= $pagination->getListFooter();
356             }
357 
358             $html .= "</td></tr>\n";
359             $html .= "\t\t\t</tfoot>" . PHP_EOL;
360         }
361 
362         // End the table output
363         $html .= "\t\t" . '</table>' . PHP_EOL;
364 
365         // End the form
366         $html .= '</form>' . PHP_EOL;
367 
368         return $html;
369     }
370 
371     /**
372      * Renders a FOFForm for a Read view and returns the corresponding HTML
373      *
374      * @param   FOFForm   &$form  The form to render
375      * @param   FOFModel  $model  The model providing our data
376      * @param   FOFInput  $input  The input object
377      *
378      * @return  string    The HTML rendering of the form
379      */
380     protected function renderFormRead(FOFForm &$form, FOFModel $model, FOFInput $input)
381     {
382         $html = $this->renderFormRaw($form, $model, $input, 'read');
383 
384         return $html;
385     }
386 
387     /**
388      * Renders a FOFForm for an Edit view and returns the corresponding HTML
389      *
390      * @param   FOFForm   &$form  The form to render
391      * @param   FOFModel  $model  The model providing our data
392      * @param   FOFInput  $input  The input object
393      *
394      * @return  string    The HTML rendering of the form
395      */
396     protected function renderFormEdit(FOFForm &$form, FOFModel $model, FOFInput $input)
397     {
398         // Get the key for this model's table
399         $key         = $model->getTable()->getKeyName();
400         $keyValue    = $model->getId();
401 
402         JHTML::_('behavior.tooltip');
403 
404         $html = '';
405 
406         $validate    = strtolower($form->getAttribute('validate'));
407         $class       = '';
408 
409         if (in_array($validate, array('true', 'yes', '1', 'on')))
410         {
411             JHtml::_('behavior.formvalidation');
412             $class = 'form-validate ';
413             $this->loadValidationScript($form);
414         }
415 
416         // Check form enctype. Use enctype="multipart/form-data" to upload binary files in your form.
417         $template_form_enctype = $form->getAttribute('enctype');
418 
419         if (!empty($template_form_enctype))
420         {
421             $enctype = ' enctype="' . $form->getAttribute('enctype') . '" ';
422         }
423         else
424         {
425             $enctype = '';
426         }
427 
428         // Check form name. Use name="yourformname" to modify the name of your form.
429         $formname = $form->getAttribute('name');
430 
431         if (empty($formname))
432         {
433             $formname = 'adminForm';
434         }
435 
436         // Check form ID. Use id="yourformname" to modify the id of your form.
437         $formid = $form->getAttribute('name');
438 
439         if (empty($formid))
440         {
441             $formid = 'adminForm';
442         }
443 
444         // Check if we have a custom task
445         $customTask = $form->getAttribute('customTask');
446 
447         if (empty($customTask))
448         {
449             $customTask = '';
450         }
451 
452         // Get the form action URL
453         $actionUrl = FOFPlatform::getInstance()->isBackend() ? 'index.php' : JUri::root().'index.php';
454 
455         if (FOFPlatform::getInstance()->isFrontend() && ($input->getCmd('Itemid', 0) != 0))
456         {
457             $itemid = $input->getCmd('Itemid', 0);
458             $uri = new JUri($actionUrl);
459 
460             if ($itemid)
461             {
462                 $uri->setVar('Itemid', $itemid);
463             }
464 
465             $actionUrl = JRoute::_($uri->toString());
466         }
467 
468         $html .= '<form action="'.$actionUrl.'" method="post" name="' . $formname .
469             '" id="' . $formid . '"' . $enctype . ' class="' . $class .
470             '">' . PHP_EOL;
471         $html .= "\t" . '<input type="hidden" name="option" value="' . $input->getCmd('option') . '" />' . PHP_EOL;
472         $html .= "\t" . '<input type="hidden" name="view" value="' . $input->getCmd('view', 'edit') . '" />' . PHP_EOL;
473         $html .= "\t" . '<input type="hidden" name="task" value="' . $customTask . '" />' . PHP_EOL;
474         $html .= "\t" . '<input type="hidden" name="' . $key . '" value="' . $keyValue . '" />' . PHP_EOL;
475 
476         $html .= "\t" . '<input type="hidden" name="' . JFactory::getSession()->getFormToken() . '" value="1" />' . PHP_EOL;
477 
478         $html .= $this->renderFormRaw($form, $model, $input, 'edit');
479         $html .= '</form>';
480 
481         return $html;
482     }
483 
484     /**
485      * Renders a raw FOFForm and returns the corresponding HTML
486      *
487      * @param   FOFForm   &$form     The form to render
488      * @param   FOFModel  $model     The model providing our data
489      * @param   FOFInput  $input     The input object
490      * @param   string    $formType  The form type e.g. 'edit' or 'read'
491      *
492      * @return  string    The HTML rendering of the form
493      */
494     protected function renderFormRaw(FOFForm &$form, FOFModel $model, FOFInput $input, $formType)
495     {
496         $html = '';
497 
498         foreach ($form->getFieldsets() as $fieldset)
499         {
500             $html .= $this->renderFieldset($fieldset, $form, $model, $input, $formType, false);
501         }
502 
503         return $html;
504     }
505 
506     /**
507      * Renders a raw fieldset of a FOFForm and returns the corresponding HTML
508      *
509      * @param   stdClass  &$fieldset   The fieldset to render
510      * @param   FOFForm   &$form       The form to render
511      * @param   FOFModel  $model       The model providing our data
512      * @param   FOFInput  $input       The input object
513      * @param   string    $formType    The form type e.g. 'edit' or 'read'
514      * @param   boolean   $showHeader  Should I render the fieldset's header?
515      *
516      * @return  string    The HTML rendering of the fieldset
517      */
518     protected function renderFieldset(stdClass &$fieldset, FOFForm &$form, FOFModel $model, FOFInput $input, $formType, $showHeader = true)
519     {
520         $html = '';
521 
522         $fields = $form->getFieldset($fieldset->name);
523 
524         if (isset($fieldset->class))
525         {
526             $class = 'class="' . $fieldset->class . '"';
527         }
528         else
529         {
530             $class = '';
531         }
532 
533         $element = empty($fields) ? 'div' : 'fieldset';
534         $html .= "\t" . '<' . $element . ' id="' . $fieldset->name . '" ' . $class . '>' . PHP_EOL;
535 
536         $isTabbedFieldset = $this->isTabFieldset($fieldset);
537 
538         if (isset($fieldset->label) && !empty($fieldset->label) && !$isTabbedFieldset)
539         {
540             $html .= "\t\t" . '<h3>' . JText::_($fieldset->label) . '</h3>' . PHP_EOL;
541         }
542 
543         foreach ($fields as $field)
544         {
545             $groupClass  = $form->getFieldAttribute($field->fieldname, 'groupclass', '', $field->group);
546 
547             // Auto-generate label and description if needed
548             // Field label
549             $title       = $form->getFieldAttribute($field->fieldname, 'label', '', $field->group);
550             $emptylabel  = $form->getFieldAttribute($field->fieldname, 'emptylabel', false, $field->group);
551 
552             if (empty($title) && !$emptylabel)
553             {
554                 $model->getName();
555                 $title = strtoupper($input->get('option') . '_' . $model->getName() . '_' . $field->id . '_LABEL');
556             }
557 
558             // Field description
559             $description = $form->getFieldAttribute($field->fieldname, 'description', '', $field->group);
560 
561             /**
562              * The following code is backwards incompatible. Most forms don't require a description in their form
563              * fields. Having to use emptydescription="1" on each one of them is an overkill. Removed.
564              */
565             /*
566             $emptydescription   = $form->getFieldAttribute($field->fieldname, 'emptydescription', false, $field->group);
567             if (empty($description) && !$emptydescription)
568             {
569                 $description = strtoupper($input->get('option') . '_' . $model->getName() . '_' . $field->id . '_DESC');
570             }
571             */
572 
573             if ($formType == 'read')
574             {
575                 $inputField = $field->static;
576             }
577             elseif ($formType == 'edit')
578             {
579                 $inputField = $field->input;
580             }
581 
582             if (empty($title))
583             {
584                 $html .= "\t\t\t" . $inputField . PHP_EOL;
585 
586                 if (!empty($description) && $formType == 'edit')
587                 {
588                     $html .= "\t\t\t\t" . '<span class="help-block">';
589                     $html .= JText::_($description) . '</span>' . PHP_EOL;
590                 }
591             }
592             else
593             {
594                 $html .= "\t\t\t" . '<div class="fof-row ' . $groupClass . '">' . PHP_EOL;
595                 $html .= $this->renderFieldsetLabel($field, $form, $title);
596                 $html .= "\t\t\t\t" . $inputField . PHP_EOL;
597 
598                 if (!empty($description))
599                 {
600                     $html .= "\t\t\t\t" . '<span class="help-block">';
601                     $html .= JText::_($description) . '</span>' . PHP_EOL;
602                 }
603 
604                 $html .= "\t\t\t" . '</div>' . PHP_EOL;
605             }
606         }
607 
608         $element = empty($fields) ? 'div' : 'fieldset';
609         $html .= "\t" . '</' . $element . '>' . PHP_EOL;
610 
611         return $html;
612     }
613 
614     /**
615      * Renders a label for a fieldset.
616      *
617      * @param   object      $field      The field of the label to render
618      * @param   FOFForm     &$form      The form to render
619      * @param   string      $title      The title of the label
620      *
621      * @return  string      The rendered label
622      */
623     protected function renderFieldsetLabel($field, FOFForm &$form, $title)
624     {
625         $html = '';
626 
627         $labelClass  = $field->labelClass ? $field->labelClass : $field->labelclass; // Joomla! 2.5/3.x use different case for the same name
628         $required    = $field->required;
629 
630         if ($required)
631         {
632             $labelClass .= ' required';
633         }
634 
635         $tooltip = $form->getFieldAttribute($field->fieldname, 'tooltip', '', $field->group);
636 
637         if (!empty($tooltip))
638         {
639             JHtml::_('behavior.tooltip');
640 
641             $tooltipText = JText::_($title) . '::' . JText::_($tooltip);
642 
643             $labelClass .= ' hasTip';
644 
645             $html .= "\t\t\t\t" . '<label id="' . $field->id . '-lbl" class="' . $labelClass . '" for="' . $field->id . '" title="' . $tooltipText . '" rel="tooltip">';
646         }
647         else
648         {
649             $html .= "\t\t\t\t" . '<label class="' . $labelClass . '" for="' . $field->id . '">';
650         }
651 
652         $html .= JText::_($title);
653 
654         if ($required)
655         {
656             $html .= '<span class="star">&nbsp;*</span>';
657         }
658 
659         $html .= "\t\t\t\t" . '</label>' . PHP_EOL;
660 
661         return $html;
662     }
663 
664     /**
665      * Loads the validation script for an edit form
666      *
667      * @param   FOFForm  &$form  The form we are rendering
668      *
669      * @return  void
670      */
671     protected function loadValidationScript(FOFForm &$form)
672     {
673         $message = $form->getView()->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));
674 
675         $js = <<<JS
676 Joomla.submitbutton = function(task)
677 {
678     if (task == 'cancel' || document.formvalidator.isValid(document.id('adminForm')))
679     {
680         Joomla.submitform(task, document.getElementById('adminForm'));
681     }
682     else {
683         alert('$message');
684     }
685 };
686 JS;
687 
688         $document = FOFPlatform::getInstance()->getDocument();
689 
690         if ($document instanceof JDocument)
691         {
692             $document->addScriptDeclaration($js);
693         }
694     }
695 
696     /**
697      * Renders the submenu (link bar)
698      *
699      * @param   string    $view    The active view name
700      * @param   string    $task    The current task
701      * @param   FOFInput  $input   The input object
702      * @param   array     $config  Extra configuration variables for the toolbar
703      *
704      * @return  void
705      */
706     protected function renderLinkbar($view, $task, $input, $config = array())
707     {
708         // On command line don't do anything
709 
710         if (FOFPlatform::getInstance()->isCli())
711         {
712             return;
713         }
714 
715         // Do not render a submenu unless we are in the the admin area
716         $toolbar                 = FOFToolbar::getAnInstance($input->getCmd('option', 'com_foobar'), $config);
717         $renderFrontendSubmenu   = $toolbar->getRenderFrontendSubmenu();
718 
719         if (!FOFPlatform::getInstance()->isBackend() && !$renderFrontendSubmenu)
720         {
721             return;
722         }
723 
724         $this->renderLinkbarItems($toolbar);
725     }
726 
727     /**
728      * do the rendering job for the linkbar
729      *
730      * @param   FOFToolbar  $toolbar  A toolbar object
731      *
732      * @return  void
733      */
734     protected function renderLinkbarItems($toolbar)
735     {
736         $links = $toolbar->getLinks();
737 
738         if (!empty($links))
739         {
740             foreach ($links as $link)
741             {
742                 JSubMenuHelper::addEntry($link['name'], $link['link'], $link['active']);
743             }
744         }
745     }
746 
747     /**
748      * Renders the toolbar buttons
749      *
750      * @param   string    $view    The active view name
751      * @param   string    $task    The current task
752      * @param   FOFInput  $input   The input object
753      * @param   array     $config  Extra configuration variables for the toolbar
754      *
755      * @return  void
756      */
757     protected function renderButtons($view, $task, $input, $config = array())
758     {
759         // On command line don't do anything
760 
761         if (FOFPlatform::getInstance()->isCli())
762         {
763             return;
764         }
765 
766         // Do not render buttons unless we are in the the frontend area and we are asked to do so
767         $toolbar                 = FOFToolbar::getAnInstance($input->getCmd('option', 'com_foobar'), $config);
768         $renderFrontendButtons   = $toolbar->getRenderFrontendButtons();
769 
770         if (FOFPlatform::getInstance()->isBackend() || !$renderFrontendButtons)
771         {
772             return;
773         }
774 
775         // Load main backend language, in order to display toolbar strings
776         // (JTOOLBAR_BACK, JTOOLBAR_PUBLISH etc etc)
777         FOFPlatform::getInstance()->loadTranslations('joomla');
778 
779         $title   = JFactory::getApplication()->get('JComponentTitle');
780         $bar     = JToolbar::getInstance('toolbar');
781 
782         // Delete faux links, since if SEF is on, Joomla will follow the link instead of submitting the form
783         $bar_content = str_replace('href="#"', '', $bar->render());
784 
785         echo '<div id="FOFHeaderHolder">', $bar_content, $title, '<div style="clear:both"></div>', '</div>';
786     }
787 }
788 
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.