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  Installer
  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 jimport('joomla.filesystem.folder');
 13 
 14 /**
 15  * Template installer
 16  *
 17  * @since  3.1
 18  */
 19 class JInstallerAdapterTemplate extends JInstallerAdapter
 20 {
 21     /**
 22      * The install client ID
 23      *
 24      * @var    integer
 25      * @since  3.4
 26      */
 27     protected $clientId;
 28 
 29     /**
 30      * Method to check if the extension is already present in the database
 31      *
 32      * @return  void
 33      *
 34      * @since   3.4
 35      * @throws  RuntimeException
 36      */
 37     protected function checkExistingExtension()
 38     {
 39         try
 40         {
 41             $this->currentExtensionId = $this->extension->find(
 42                 array(
 43                     'element'   => $this->element,
 44                     'type'      => $this->type,
 45                     'client_id' => $this->clientId,
 46                 )
 47             );
 48         }
 49         catch (RuntimeException $e)
 50         {
 51             // Install failed, roll back changes
 52             throw new RuntimeException(
 53                 JText::sprintf(
 54                     'JLIB_INSTALLER_ABORT_ROLLBACK',
 55                     JText::_('JLIB_INSTALLER_' . $this->route),
 56                     $e->getMessage()
 57                 ),
 58                 $e->getCode(),
 59                 $e
 60             );
 61         }
 62     }
 63 
 64     /**
 65      * Method to copy the extension's base files from the `<files>` tag(s) and the manifest file
 66      *
 67      * @return  void
 68      *
 69      * @since   3.4
 70      * @throws  RuntimeException
 71      */
 72     protected function copyBaseFiles()
 73     {
 74         // Copy all the necessary files
 75         if ($this->parent->parseFiles($this->getManifest()->files, -1) === false)
 76         {
 77             throw new RuntimeException(
 78                 JText::sprintf(
 79                     'JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_FILES',
 80                     'files'
 81                 )
 82             );
 83         }
 84 
 85         if ($this->parent->parseFiles($this->getManifest()->images, -1) === false)
 86         {
 87             throw new RuntimeException(
 88                 JText::sprintf(
 89                     'JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_FILES',
 90                     'images'
 91                 )
 92             );
 93         }
 94 
 95         if ($this->parent->parseFiles($this->getManifest()->css, -1) === false)
 96         {
 97             throw new RuntimeException(
 98                 JText::sprintf(
 99                     'JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_FILES',
100                     'css'
101                 )
102             );
103         }
104 
105         // If there is a manifest script, let's copy it.
106         if ($this->manifest_script)
107         {
108             $path['src']  = $this->parent->getPath('source') . '/' . $this->manifest_script;
109             $path['dest'] = $this->parent->getPath('extension_root') . '/' . $this->manifest_script;
110 
111             if ($this->parent->isOverwrite() || !file_exists($path['dest']))
112             {
113                 if (!$this->parent->copyFiles(array($path)))
114                 {
115                     throw new RuntimeException(
116                         JText::sprintf(
117                             'JLIB_INSTALLER_ABORT_MANIFEST',
118                             JText::_('JLIB_INSTALLER_' . strtoupper($this->getRoute()))
119                         )
120                     );
121                 }
122             }
123         }
124     }
125 
126     /**
127      * Method to finalise the installation processing
128      *
129      * @return  void
130      *
131      * @since   3.1
132      * @throws  RuntimeException
133      */
134     protected function finaliseInstall()
135     {
136         // Clobber any possible pending updates
137         /** @var JTableUpdate $update */
138         $update = JTable::getInstance('update');
139 
140         $uid = $update->find(
141             array(
142                 'element'   => $this->element,
143                 'type'      => $this->type,
144                 'client_id' => $this->clientId,
145             )
146         );
147 
148         if ($uid)
149         {
150             $update->delete($uid);
151         }
152 
153         // Lastly, we will copy the manifest file to its appropriate place.
154         if ($this->route !== 'discover_install')
155         {
156             if (!$this->parent->copyManifest(-1))
157             {
158                 // Install failed, rollback changes
159                 throw new RuntimeException(JText::_('JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_SETUP'));
160             }
161         }
162     }
163 
164     /**
165      * Custom loadLanguage method
166      *
167      * @param   string  $path  The path where to find language files.
168      *
169      * @return  JInstallerTemplate
170      *
171      * @since   3.1
172      */
173     public function loadLanguage($path = null)
174     {
175         $source   = $this->parent->getPath('source');
176         $basePath = $this->parent->extension->client_id ? JPATH_ADMINISTRATOR : JPATH_SITE;
177 
178         if (!$source)
179         {
180             $this->parent->setPath('source', $basePath . '/templates/' . $this->parent->extension->element);
181         }
182 
183         $this->setManifest($this->parent->getManifest());
184 
185         $client = (string) $this->getManifest()->attributes()->client;
186 
187         // Load administrator language if not set.
188         if (!$client)
189         {
190             $client = 'ADMINISTRATOR';
191         }
192 
193         $base = constant('JPATH_' . strtoupper($client));
194         $extension = 'tpl_' . $this->getName();
195         $source    = $path ?: $base . '/templates/' . $this->getName();
196 
197         $this->doLoadLanguage($extension, $source, $base);
198     }
199 
200     /**
201      * Method to parse optional tags in the manifest
202      *
203      * @return  void
204      *
205      * @since   3.4
206      */
207     protected function parseOptionalTags()
208     {
209         $this->parent->parseMedia($this->getManifest()->media);
210         $this->parent->parseLanguages($this->getManifest()->languages, $this->clientId);
211     }
212 
213     /**
214      * Overloaded method to parse queries for template installations
215      *
216      * @return  void
217      *
218      * @since   3.4
219      * @throws  RuntimeException
220      */
221     protected function parseQueries()
222     {
223         if (in_array($this->route, array('install', 'discover_install')))
224         {
225             $db    = $this->db;
226             $lang  = JFactory::getLanguage();
227             $debug = $lang->setDebug(false);
228 
229             $columns = array(
230                 $db->quoteName('template'),
231                 $db->quoteName('client_id'),
232                 $db->quoteName('home'),
233                 $db->quoteName('title'),
234                 $db->quoteName('params'),
235             );
236 
237             $values = array(
238                 $db->quote($this->extension->element), $this->extension->client_id, $db->quote(0),
239                 $db->quote(JText::sprintf('JLIB_INSTALLER_DEFAULT_STYLE', JText::_($this->extension->name))),
240                 $db->quote($this->extension->params),
241             );
242 
243             $lang->setDebug($debug);
244 
245             // Insert record in #__template_styles
246             $query = $db->getQuery(true);
247             $query->insert($db->quoteName('#__template_styles'))
248                 ->columns($columns)
249                 ->values(implode(',', $values));
250 
251             // There is a chance this could fail but we don't care...
252             $db->setQuery($query)->execute();
253         }
254     }
255 
256     /**
257      * Prepares the adapter for a discover_install task
258      *
259      * @return  void
260      *
261      * @since   3.4
262      */
263     public function prepareDiscoverInstall()
264     {
265         $client = JApplicationHelper::getClientInfo($this->extension->client_id);
266         $manifestPath = $client->path . '/templates/' . $this->extension->element . '/templateDetails.xml';
267         $this->parent->manifest = $this->parent->isManifest($manifestPath);
268         $this->parent->setPath('manifest', $manifestPath);
269         $this->setManifest($this->parent->getManifest());
270     }
271 
272     /**
273      * Method to do any prechecks and setup the install paths for the extension
274      *
275      * @return  void
276      *
277      * @since   3.4
278      * @throws  RuntimeException
279      */
280     protected function setupInstallPaths()
281     {
282         // Get the client application target
283         $cname = (string) $this->getManifest()->attributes()->client;
284 
285         if ($cname)
286         {
287             // Attempt to map the client to a base path
288             $client = JApplicationHelper::getClientInfo($cname, true);
289 
290             if ($client === false)
291             {
292                 throw new RuntimeException(JText::sprintf('JLIB_INSTALLER_ABORT_TPL_INSTALL_UNKNOWN_CLIENT', $cname));
293             }
294 
295             $basePath = $client->path;
296             $this->clientId = $client->id;
297         }
298         else
299         {
300             // No client attribute was found so we assume the site as the client
301             $basePath = JPATH_SITE;
302             $this->clientId = 0;
303         }
304 
305         // Set the template root path
306         if (empty($this->element))
307         {
308             throw new RuntimeException(
309                 JText::sprintf(
310                     'JLIB_INSTALLER_ABORT_MOD_INSTALL_NOFILE',
311                     JText::_('JLIB_INSTALLER_' . strtoupper($this->route))
312                 )
313             );
314         }
315 
316         $this->parent->setPath('extension_root', $basePath . '/templates/' . $this->element);
317     }
318 
319     /**
320      * Method to store the extension to the database
321      *
322      * @return  void
323      *
324      * @since   3.4
325      * @throws  RuntimeException
326      */
327     protected function storeExtension()
328     {
329         // Discover installs are stored a little differently
330         if ($this->route === 'discover_install')
331         {
332             $manifest_details = JInstaller::parseXMLInstallFile($this->parent->getPath('manifest'));
333 
334             $this->extension->manifest_cache = json_encode($manifest_details);
335             $this->extension->state = 0;
336             $this->extension->name = $manifest_details['name'];
337             $this->extension->enabled = 1;
338             $this->extension->params = $this->parent->getParams();
339 
340             if (!$this->extension->store())
341             {
342                 // Install failed, roll back changes
343                 throw new RuntimeException(JText::_('JLIB_INSTALLER_ERROR_TPL_DISCOVER_STORE_DETAILS'));
344             }
345 
346             return;
347         }
348 
349         // Was there a template already installed with the same name?
350         if ($this->currentExtensionId)
351         {
352             if (!$this->parent->isOverwrite())
353             {
354                 // Install failed, roll back changes
355                 throw new RuntimeException(
356                     JText::_('JLIB_INSTALLER_ABORT_TPL_INSTALL_ALREADY_INSTALLED')
357                 );
358             }
359 
360             // Load the entry and update the manifest_cache
361             $this->extension->load($this->currentExtensionId);
362         }
363         else
364         {
365             $this->extension->type = 'template';
366             $this->extension->element = $this->element;
367 
368             // There is no folder for templates
369             $this->extension->folder = '';
370             $this->extension->enabled = 1;
371             $this->extension->protected = 0;
372             $this->extension->access = 1;
373             $this->extension->client_id = $this->clientId;
374             $this->extension->params = $this->parent->getParams();
375 
376             // Custom data
377             $this->extension->custom_data = '';
378         }
379 
380         // Name might change in an update
381         $this->extension->name = $this->name;
382         $this->extension->manifest_cache = $this->parent->generateManifestCache();
383 
384         if (!$this->extension->store())
385         {
386             // Install failed, roll back changes
387             throw new RuntimeException(
388                 JText::sprintf(
389                     'JLIB_INSTALLER_ABORT_ROLLBACK',
390                     JText::_('JLIB_INSTALLER_' . strtoupper($this->route)),
391                     $this->extension->getError()
392                 )
393             );
394         }
395     }
396 
397     /**
398      * Custom uninstall method
399      *
400      * @param   integer  $id  The extension ID
401      *
402      * @return  boolean  True on success
403      *
404      * @since   3.1
405      */
406     public function uninstall($id)
407     {
408         // First order of business will be to load the template object table from the database.
409         // This should give us the necessary information to proceed.
410         $row = JTable::getInstance('extension');
411 
412         if (!$row->load((int) $id) || $row->element === '')
413         {
414             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_ERRORUNKOWNEXTENSION'), JLog::WARNING, 'jerror');
415 
416             return false;
417         }
418 
419         // Is the template we are trying to uninstall a core one?
420         // Because that is not a good idea...
421         if ($row->protected)
422         {
423             JLog::add(JText::sprintf('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_WARNCORETEMPLATE', $row->name), JLog::WARNING, 'jerror');
424 
425             return false;
426         }
427 
428         /*
429          * Does this extension have a parent package?
430          * If so, check if the package disallows individual extensions being uninstalled if the package is not being uninstalled
431          */
432         if ($row->package_id && !$this->parent->isPackageUninstall() && !$this->canUninstallPackageChild($row->package_id))
433         {
434             JLog::add(JText::sprintf('JLIB_INSTALLER_ERROR_CANNOT_UNINSTALL_CHILD_OF_PACKAGE', $row->name), JLog::WARNING, 'jerror');
435 
436             return false;
437         }
438 
439         $name = $row->element;
440         $clientId = $row->client_id;
441 
442         // For a template the id will be the template name which represents the subfolder of the templates folder that the template resides in.
443         if (!$name)
444         {
445             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_TEMPLATE_ID_EMPTY'), JLog::WARNING, 'jerror');
446 
447             return false;
448         }
449 
450         // Deny remove default template
451         $db = $this->parent->getDbo();
452         $query = "SELECT COUNT(*) FROM #__template_styles WHERE home = '1' AND template = " . $db->quote($name);
453         $db->setQuery($query);
454 
455         if ($db->loadResult() != 0)
456         {
457             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_TEMPLATE_DEFAULT'), JLog::WARNING, 'jerror');
458 
459             return false;
460         }
461 
462         // Get the template root path
463         $client = JApplicationHelper::getClientInfo($clientId);
464 
465         if (!$client)
466         {
467             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_INVALID_CLIENT'), JLog::WARNING, 'jerror');
468 
469             return false;
470         }
471 
472         $this->parent->setPath('extension_root', $client->path . '/templates/' . strtolower($name));
473         $this->parent->setPath('source', $this->parent->getPath('extension_root'));
474 
475         // We do findManifest to avoid problem when uninstalling a list of extensions: getManifest cache its manifest file
476         $this->parent->findManifest();
477         $manifest = $this->parent->getManifest();
478 
479         if (!($manifest instanceof SimpleXMLElement))
480         {
481             // Kill the extension entry
482             $row->delete($row->extension_id);
483             unset($row);
484 
485             // Make sure we delete the folders
486             JFolder::delete($this->parent->getPath('extension_root'));
487             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_INVALID_NOTFOUND_MANIFEST'), JLog::WARNING, 'jerror');
488 
489             return false;
490         }
491 
492         // Remove files
493         $this->parent->removeFiles($manifest->media);
494         $this->parent->removeFiles($manifest->languages, $clientId);
495 
496         // Delete the template directory
497         if (JFolder::exists($this->parent->getPath('extension_root')))
498         {
499             $retval = JFolder::delete($this->parent->getPath('extension_root'));
500         }
501         else
502         {
503             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_UNINSTALL_TEMPLATE_DIRECTORY'), JLog::WARNING, 'jerror');
504             $retval = false;
505         }
506 
507         // Set menu that assigned to the template back to default template
508         $query = 'UPDATE #__menu'
509             . ' SET template_style_id = 0'
510             . ' WHERE template_style_id in ('
511             . ' SELECT s.id FROM #__template_styles s'
512             . ' WHERE s.template = ' . $db->quote(strtolower($name)) . ' AND s.client_id = ' . $clientId . ')';
513 
514         $db->setQuery($query);
515         $db->execute();
516 
517         $query = $db->getQuery(true)
518             ->delete($db->quoteName('#__template_styles'))
519             ->where($db->quoteName('template') . ' = ' . $db->quote($name))
520             ->where($db->quoteName('client_id') . ' = ' . $clientId);
521         $db->setQuery($query);
522         $db->execute();
523 
524         $row->delete($row->extension_id);
525         unset($row);
526 
527         return $retval;
528     }
529 
530     /**
531      * Discover existing but uninstalled templates
532      *
533      * @return  array  JExtensionTable list
534      */
535     public function discover()
536     {
537         $results = array();
538         $site_list = JFolder::folders(JPATH_SITE . '/templates');
539         $admin_list = JFolder::folders(JPATH_ADMINISTRATOR . '/templates');
540         $site_info = JApplicationHelper::getClientInfo('site', true);
541         $admin_info = JApplicationHelper::getClientInfo('administrator', true);
542 
543         foreach ($site_list as $template)
544         {
545             if (file_exists(JPATH_SITE . "/templates/$template/templateDetails.xml"))
546             {
547                 if ($template === 'system')
548                 {
549                     // Ignore special system template
550                     continue;
551                 }
552 
553                 $manifest_details = JInstaller::parseXMLInstallFile(JPATH_SITE . "/templates/$template/templateDetails.xml");
554                 $extension = JTable::getInstance('extension');
555                 $extension->set('type', 'template');
556                 $extension->set('client_id', $site_info->id);
557                 $extension->set('element', $template);
558                 $extension->set('folder', '');
559                 $extension->set('name', $template);
560                 $extension->set('state', -1);
561                 $extension->set('manifest_cache', json_encode($manifest_details));
562                 $extension->set('params', '{}');
563                 $results[] = $extension;
564             }
565         }
566 
567         foreach ($admin_list as $template)
568         {
569             if (file_exists(JPATH_ADMINISTRATOR . "/templates/$template/templateDetails.xml"))
570             {
571                 if ($template === 'system')
572                 {
573                     // Ignore special system template
574                     continue;
575                 }
576 
577                 $manifest_details = JInstaller::parseXMLInstallFile(JPATH_ADMINISTRATOR . "/templates/$template/templateDetails.xml");
578                 $extension = JTable::getInstance('extension');
579                 $extension->set('type', 'template');
580                 $extension->set('client_id', $admin_info->id);
581                 $extension->set('element', $template);
582                 $extension->set('folder', '');
583                 $extension->set('name', $template);
584                 $extension->set('state', -1);
585                 $extension->set('manifest_cache', json_encode($manifest_details));
586                 $extension->set('params', '{}');
587                 $results[] = $extension;
588             }
589         }
590 
591         return $results;
592     }
593 
594     /**
595      * Refreshes the extension table cache
596      *
597      * @return  boolean  Result of operation, true if updated, false on failure
598      *
599      * @since   3.1
600      */
601     public function refreshManifestCache()
602     {
603         // Need to find to find where the XML file is since we don't store this normally.
604         $client = JApplicationHelper::getClientInfo($this->parent->extension->client_id);
605         $manifestPath = $client->path . '/templates/' . $this->parent->extension->element . '/templateDetails.xml';
606         $this->parent->manifest = $this->parent->isManifest($manifestPath);
607         $this->parent->setPath('manifest', $manifestPath);
608 
609         $manifest_details = JInstaller::parseXMLInstallFile($this->parent->getPath('manifest'));
610         $this->parent->extension->manifest_cache = json_encode($manifest_details);
611         $this->parent->extension->name = $manifest_details['name'];
612 
613         try
614         {
615             return $this->parent->extension->store();
616         }
617         catch (RuntimeException $e)
618         {
619             JLog::add(JText::_('JLIB_INSTALLER_ERROR_TPL_REFRESH_MANIFEST_CACHE'), JLog::WARNING, 'jerror');
620 
621             return false;
622         }
623     }
624 }
625 
626 /**
627  * Deprecated class placeholder. You should use JInstallerAdapterTemplate instead.
628  *
629  * @since       3.1
630  * @deprecated  4.0
631  * @codeCoverageIgnore
632  */
633 class JInstallerTemplate extends JInstallerAdapterTemplate
634 {
635 }
636 
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.