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  * Plugin installer
 16  *
 17  * @since  3.1
 18  */
 19 class JInstallerAdapterPlugin extends JInstallerAdapter
 20 {
 21     /**
 22      * `<scriptfile>` element of the extension manifest
 23      *
 24      * @var    object
 25      * @since  3.1
 26      */
 27     protected $scriptElement = null;
 28 
 29     /**
 30      * `<files>` element of the old extension manifest
 31      *
 32      * @var    object
 33      * @since  3.1
 34      */
 35     protected $oldFiles = null;
 36 
 37     /**
 38      * Method to check if the extension is already present in the database
 39      *
 40      * @return  void
 41      *
 42      * @since   3.4
 43      * @throws  RuntimeException
 44      */
 45     protected function checkExistingExtension()
 46     {
 47         try
 48         {
 49             $this->currentExtensionId = $this->extension->find(
 50                 array('type' => $this->type, 'element' => $this->element, 'folder' => $this->group)
 51             );
 52         }
 53         catch (RuntimeException $e)
 54         {
 55             // Install failed, roll back changes
 56             throw new RuntimeException(
 57                 JText::sprintf(
 58                     'JLIB_INSTALLER_ABORT_ROLLBACK',
 59                     JText::_('JLIB_INSTALLER_' . $this->route),
 60                     $e->getMessage()
 61                 ),
 62                 $e->getCode(),
 63                 $e
 64             );
 65         }
 66     }
 67 
 68     /**
 69      * Method to copy the extension's base files from the `<files>` tag(s) and the manifest file
 70      *
 71      * @return  void
 72      *
 73      * @since   3.4
 74      * @throws  RuntimeException
 75      */
 76     protected function copyBaseFiles()
 77     {
 78         // Copy all necessary files
 79         if ($this->parent->parseFiles($this->getManifest()->files, -1, $this->oldFiles) === false)
 80         {
 81             throw new RuntimeException(
 82                 JText::sprintf(
 83                     'JLIB_INSTALLER_ABORT_PLG_COPY_FILES',
 84                     JText::_('JLIB_INSTALLER_' . $this->route)
 85                 )
 86             );
 87         }
 88 
 89         // If there is a manifest script, let's copy it.
 90         if ($this->manifest_script)
 91         {
 92             $path['src']  = $this->parent->getPath('source') . '/' . $this->manifest_script;
 93             $path['dest'] = $this->parent->getPath('extension_root') . '/' . $this->manifest_script;
 94 
 95             if ($this->parent->isOverwrite() || !file_exists($path['dest']))
 96             {
 97                 if (!$this->parent->copyFiles(array($path)))
 98                 {
 99                     // Install failed, rollback changes
100                     throw new RuntimeException(
101                         JText::sprintf(
102                             'JLIB_INSTALLER_ABORT_PLG_INSTALL_MANIFEST',
103                             JText::_('JLIB_INSTALLER_' . $this->route)
104                         )
105                     );
106                 }
107             }
108         }
109     }
110 
111     /**
112      * Method to create the extension root path if necessary
113      *
114      * @return  void
115      *
116      * @since   3.4
117      * @throws  RuntimeException
118      */
119     protected function createExtensionRoot()
120     {
121         // Run the common create code first
122         parent::createExtensionRoot();
123 
124         // If we're updating at this point when there is always going to be an extension_root find the old XML files
125         if ($this->route === 'update')
126         {
127             // Create a new installer because findManifest sets stuff; side effects!
128             $tmpInstaller = new JInstaller;
129 
130             // Look in the extension root
131             $tmpInstaller->setPath('source', $this->parent->getPath('extension_root'));
132 
133             if ($tmpInstaller->findManifest())
134             {
135                 $old_manifest   = $tmpInstaller->getManifest();
136                 $this->oldFiles = $old_manifest->files;
137             }
138         }
139     }
140 
141     /**
142      * Method to finalise the installation processing
143      *
144      * @return  void
145      *
146      * @since   3.4
147      * @throws  RuntimeException
148      */
149     protected function finaliseInstall()
150     {
151         // Clobber any possible pending updates
152         /** @var JTableUpdate $update */
153         $update = JTable::getInstance('update');
154         $uid = $update->find(
155             array(
156                 'element' => $this->element,
157                 'type'    => $this->type,
158                 'folder'  => $this->group,
159             )
160         );
161 
162         if ($uid)
163         {
164             $update->delete($uid);
165         }
166 
167         // Lastly, we will copy the manifest file to its appropriate place.
168         if ($this->route !== 'discover_install')
169         {
170             if (!$this->parent->copyManifest(-1))
171             {
172                 // Install failed, rollback changes
173                 throw new RuntimeException(
174                     JText::sprintf(
175                         'JLIB_INSTALLER_ABORT_PLG_INSTALL_COPY_SETUP',
176                         JText::_('JLIB_INSTALLER_' . $this->route)
177                     )
178                 );
179             }
180         }
181     }
182 
183     /**
184      * Get the filtered extension element from the manifest
185      *
186      * @param   string  $element  Optional element name to be converted
187      *
188      * @return  string  The filtered element
189      *
190      * @since   3.4
191      */
192     public function getElement($element = null)
193     {
194         if (!$element)
195         {
196             // Backward Compatibility
197             // @todo Deprecate in future version
198             if (count($this->getManifest()->files->children()))
199             {
200                 $type = (string) $this->getManifest()->attributes()->type;
201 
202                 foreach ($this->getManifest()->files->children() as $file)
203                 {
204                     if ((string) $file->attributes()->$type)
205                     {
206                         $element = (string) $file->attributes()->$type;
207 
208                         break;
209                     }
210                 }
211             }
212         }
213 
214         return $element;
215     }
216 
217     /**
218      * Get the class name for the install adapter script.
219      *
220      * @return  string  The class name.
221      *
222      * @since   3.4
223      */
224     protected function getScriptClassName()
225     {
226         return 'Plg' . str_replace('-', '', $this->group) . $this->element . 'InstallerScript';
227     }
228 
229     /**
230      * Custom loadLanguage method
231      *
232      * @param   string  $path  The path where to find language files.
233      *
234      * @return  void
235      *
236      * @since   3.1
237      */
238     public function loadLanguage($path = null)
239     {
240         $source = $this->parent->getPath('source');
241 
242         if (!$source)
243         {
244             $this->parent->setPath(
245                 'source',
246                 JPATH_PLUGINS . '/' . $this->parent->extension->folder . '/' . $this->parent->extension->element
247             );
248         }
249 
250         $element = $this->getManifest()->files;
251 
252         if ($element)
253         {
254             $group = strtolower((string) $this->getManifest()->attributes()->group);
255             $name = '';
256 
257             if (count($element->children()))
258             {
259                 foreach ($element->children() as $file)
260                 {
261                     if ((string) $file->attributes()->plugin)
262                     {
263                         $name = strtolower((string) $file->attributes()->plugin);
264                         break;
265                     }
266                 }
267             }
268 
269             if ($name)
270             {
271                 $extension = "plg_${group}_${name}";
272                 $source = $path ?: JPATH_PLUGINS . "/$group/$name";
273                 $folder = (string) $element->attributes()->folder;
274 
275                 if ($folder && file_exists("$path/$folder"))
276                 {
277                     $source = "$path/$folder";
278                 }
279 
280                 $this->doLoadLanguage($extension, $source, JPATH_ADMINISTRATOR);
281             }
282         }
283     }
284 
285     /**
286      * Method to parse optional tags in the manifest
287      *
288      * @return  void
289      *
290      * @since   3.4
291      */
292     protected function parseOptionalTags()
293     {
294         // Parse optional tags -- media and language files for plugins go in admin app
295         $this->parent->parseMedia($this->getManifest()->media, 1);
296         $this->parent->parseLanguages($this->getManifest()->languages, 1);
297     }
298 
299     /**
300      * Prepares the adapter for a discover_install task
301      *
302      * @return  void
303      *
304      * @since   3.4
305      */
306     public function prepareDiscoverInstall()
307     {
308         $client   = JApplicationHelper::getClientInfo($this->extension->client_id);
309         $basePath = $client->path . '/plugins/' . $this->extension->folder;
310 
311         if (is_dir($basePath . '/' . $this->extension->element))
312         {
313             $manifestPath = $basePath . '/' . $this->extension->element . '/' . $this->extension->element . '.xml';
314         }
315         else
316         {
317             // @deprecated 4.0 - This path supports Joomla! 1.5 plugin folder layouts
318             $manifestPath = $basePath . '/' . $this->extension->element . '.xml';
319         }
320 
321         $this->parent->manifest = $this->parent->isManifest($manifestPath);
322         $this->parent->setPath('manifest', $manifestPath);
323         $this->setManifest($this->parent->getManifest());
324     }
325 
326     /**
327      * Method to do any prechecks and setup the install paths for the extension
328      *
329      * @return  void
330      *
331      * @since   3.4
332      * @throws  RuntimeException
333      */
334     protected function setupInstallPaths()
335     {
336         $this->group = (string) $this->getManifest()->attributes()->group;
337 
338         if (empty($this->element) && empty($this->group))
339         {
340             throw new RuntimeException(
341                 JText::sprintf(
342                     'JLIB_INSTALLER_ABORT_PLG_INSTALL_NO_FILE',
343                     JText::_('JLIB_INSTALLER_' . $this->route)
344                 )
345             );
346         }
347 
348         $this->parent->setPath('extension_root', JPATH_PLUGINS . '/' . $this->group . '/' . $this->element);
349     }
350 
351     /**
352      * Method to store the extension to the database
353      *
354      * @return  void
355      *
356      * @since   3.4
357      * @throws  RuntimeException
358      */
359     protected function storeExtension()
360     {
361         // Discover installs are stored a little differently
362         if ($this->route === 'discover_install')
363         {
364             $manifest_details = JInstaller::parseXMLInstallFile($this->parent->getPath('manifest'));
365 
366             $this->extension->manifest_cache = json_encode($manifest_details);
367             $this->extension->state = 0;
368             $this->extension->name = $manifest_details['name'];
369             $this->extension->enabled = 'editors' === $this->extension->folder ? 1 : 0;
370             $this->extension->params = $this->parent->getParams();
371 
372             if (!$this->extension->store())
373             {
374                 // Install failed, roll back changes
375                 throw new RuntimeException(JText::_('JLIB_INSTALLER_ERROR_PLG_DISCOVER_STORE_DETAILS'));
376             }
377 
378             return;
379         }
380 
381         // Was there a plugin with the same name already installed?
382         if ($this->currentExtensionId)
383         {
384             if (!$this->parent->isOverwrite())
385             {
386                 // Install failed, roll back changes
387                 throw new RuntimeException(
388                     JText::sprintf(
389                         'JLIB_INSTALLER_ABORT_PLG_INSTALL_ALLREADY_EXISTS',
390                         JText::_('JLIB_INSTALLER_' . $this->route),
391                         $this->name
392                     )
393                 );
394             }
395 
396             $this->extension->load($this->currentExtensionId);
397             $this->extension->name = $this->name;
398             $this->extension->manifest_cache = $this->parent->generateManifestCache();
399 
400             // Update the manifest cache and name
401             $this->extension->store();
402         }
403         else
404         {
405             // Store in the extensions table (1.6)
406             $this->extension->name = $this->name;
407             $this->extension->type = 'plugin';
408             $this->extension->ordering = 0;
409             $this->extension->element = $this->element;
410             $this->extension->folder = $this->group;
411             $this->extension->enabled = 0;
412             $this->extension->protected = 0;
413             $this->extension->access = 1;
414             $this->extension->client_id = 0;
415             $this->extension->params = $this->parent->getParams();
416 
417             // Custom data
418             $this->extension->custom_data = '';
419 
420             // System data
421             $this->extension->system_data = '';
422             $this->extension->manifest_cache = $this->parent->generateManifestCache();
423 
424             // Editor plugins are published by default
425             if ($this->group === 'editors')
426             {
427                 $this->extension->enabled = 1;
428             }
429 
430             if (!$this->extension->store())
431             {
432                 // Install failed, roll back changes
433                 throw new RuntimeException(
434                     JText::sprintf(
435                         'JLIB_INSTALLER_ABORT_PLG_INSTALL_ROLLBACK',
436                         JText::_('JLIB_INSTALLER_' . $this->route),
437                         $this->extension->getError()
438                     )
439                 );
440             }
441 
442             // Since we have created a plugin item, we add it to the installation step stack
443             // so that if we have to rollback the changes we can undo it.
444             $this->parent->pushStep(array('type' => 'extension', 'id' => $this->extension->extension_id));
445         }
446     }
447 
448     /**
449      * Custom uninstall method
450      *
451      * @param   integer  $id  The id of the plugin to uninstall
452      *
453      * @return  boolean  True on success
454      *
455      * @since   3.1
456      */
457     public function uninstall($id)
458     {
459         $this->route = 'uninstall';
460 
461         $row = null;
462         $retval = true;
463         $db = $this->parent->getDbo();
464 
465         // First order of business will be to load the plugin object table from the database.
466         // This should give us the necessary information to proceed.
467         $row = JTable::getInstance('extension');
468 
469         if (!$row->load((int) $id))
470         {
471             JLog::add(JText::_('JLIB_INSTALLER_ERROR_PLG_UNINSTALL_ERRORUNKOWNEXTENSION'), JLog::WARNING, 'jerror');
472 
473             return false;
474         }
475 
476         // Is the plugin we are trying to uninstall a core one?
477         // Because that is not a good idea...
478         if ($row->protected)
479         {
480             JLog::add(JText::sprintf('JLIB_INSTALLER_ERROR_PLG_UNINSTALL_WARNCOREPLUGIN', $row->name), JLog::WARNING, 'jerror');
481 
482             return false;
483         }
484 
485         /*
486          * Does this extension have a parent package?
487          * If so, check if the package disallows individual extensions being uninstalled if the package is not being uninstalled
488          */
489         if ($row->package_id && !$this->parent->isPackageUninstall() && !$this->canUninstallPackageChild($row->package_id))
490         {
491             JLog::add(JText::sprintf('JLIB_INSTALLER_ERROR_CANNOT_UNINSTALL_CHILD_OF_PACKAGE', $row->name), JLog::WARNING, 'jerror');
492 
493             return false;
494         }
495 
496         // Get the plugin folder so we can properly build the plugin path
497         if (trim($row->folder) === '')
498         {
499             JLog::add(JText::_('JLIB_INSTALLER_ERROR_PLG_UNINSTALL_FOLDER_FIELD_EMPTY'), JLog::WARNING, 'jerror');
500 
501             return false;
502         }
503 
504         // Set the plugin root path
505         $this->parent->setPath('extension_root', JPATH_PLUGINS . '/' . $row->folder . '/' . $row->element);
506 
507         $this->parent->setPath('source', $this->parent->getPath('extension_root'));
508 
509         $this->parent->findManifest();
510         $this->setManifest($this->parent->getManifest());
511 
512         // Attempt to load the language file; might have uninstall strings
513         $this->parent->setPath('source', JPATH_PLUGINS . '/' . $row->folder . '/' . $row->element);
514         $this->loadLanguage(JPATH_PLUGINS . '/' . $row->folder . '/' . $row->element);
515 
516         /**
517          * ---------------------------------------------------------------------------------------------
518          * Installer Trigger Loading
519          * ---------------------------------------------------------------------------------------------
520          */
521 
522         // If there is an manifest class file, let's load it; we'll copy it later (don't have dest yet)
523         $manifestScript = (string) $this->getManifest()->scriptfile;
524 
525         if ($manifestScript)
526         {
527             $manifestScriptFile = $this->parent->getPath('source') . '/' . $manifestScript;
528 
529             // If a dash is present in the folder, remove it
530             $folderClass = str_replace('-', '', $row->folder);
531 
532             // Set the class name
533             $classname = 'Plg' . $folderClass . $row->element . 'InstallerScript';
534 
535             JLoader::register($classname, $manifestScriptFile);
536 
537             if (class_exists($classname))
538             {
539                 // Create a new instance
540                 $this->parent->manifestClass = new $classname($this);
541 
542                 // And set this so we can copy it later
543                 $this->set('manifest_script', $manifestScript);
544             }
545         }
546 
547         // Run preflight if possible (since we know we're not an update)
548         ob_start();
549         ob_implicit_flush(false);
550 
551         if ($this->parent->manifestClass && method_exists($this->parent->manifestClass, 'preflight'))
552         {
553             if ($this->parent->manifestClass->preflight($this->route, $this) === false)
554             {
555                 // Preflight failed, rollback changes
556                 $this->parent->abort(JText::_('JLIB_INSTALLER_ABORT_PLG_INSTALL_CUSTOM_INSTALL_FAILURE'));
557 
558                 return false;
559             }
560         }
561 
562         // Create the $msg object and append messages from preflight
563         $msg = ob_get_contents();
564         ob_end_clean();
565 
566         // Let's run the queries for the plugin
567         $utfresult = $this->parent->parseSQLFiles($this->getManifest()->uninstall->sql);
568 
569         if ($utfresult === false)
570         {
571             // Install failed, rollback changes
572             $this->parent->abort(JText::sprintf('JLIB_INSTALLER_ABORT_PLG_UNINSTALL_SQL_ERROR', $db->stderr(true)));
573 
574             return false;
575         }
576 
577         // Run the custom uninstall method if possible
578         ob_start();
579         ob_implicit_flush(false);
580 
581         if ($this->parent->manifestClass && method_exists($this->parent->manifestClass, 'uninstall'))
582         {
583             $this->parent->manifestClass->uninstall($this);
584         }
585 
586         // Append messages
587         $msg .= ob_get_contents();
588         ob_end_clean();
589 
590         // Remove the plugin files
591         $this->parent->removeFiles($this->getManifest()->files, -1);
592 
593         // Remove all media and languages as well
594         $this->parent->removeFiles($this->getManifest()->media);
595         $this->parent->removeFiles($this->getManifest()->languages, 1);
596 
597         // Remove the schema version
598         $query = $db->getQuery(true)
599             ->delete('#__schemas')
600             ->where('extension_id = ' . $row->extension_id);
601         $db->setQuery($query);
602         $db->execute();
603 
604         // Now we will no longer need the plugin object, so let's delete it
605         $row->delete($row->extension_id);
606         unset($row);
607 
608         // Remove the plugin's folder
609         JFolder::delete($this->parent->getPath('extension_root'));
610 
611         if ($msg != '')
612         {
613             $this->parent->set('extension_message', $msg);
614         }
615 
616         return $retval;
617     }
618 
619     /**
620      * Custom discover method
621      *
622      * @return  array  JExtension) list of extensions available
623      *
624      * @since   3.1
625      */
626     public function discover()
627     {
628         $results = array();
629         $folder_list = JFolder::folders(JPATH_SITE . '/plugins');
630 
631         foreach ($folder_list as $folder)
632         {
633             $file_list = JFolder::files(JPATH_SITE . '/plugins/' . $folder, '\.xml$');
634 
635             foreach ($file_list as $file)
636             {
637                 $manifest_details = JInstaller::parseXMLInstallFile(JPATH_SITE . '/plugins/' . $folder . '/' . $file);
638                 $file = JFile::stripExt($file);
639 
640                 // Ignore example plugins
641                 if ($file === 'example' || $manifest_details === false)
642                 {
643                     continue;
644                 }
645 
646                 $element = empty($manifest_details['filename']) ? $file : $manifest_details['filename'];
647 
648                 $extension = JTable::getInstance('extension');
649                 $extension->set('type', 'plugin');
650                 $extension->set('client_id', 0);
651                 $extension->set('element', $element);
652                 $extension->set('folder', $folder);
653                 $extension->set('name', $manifest_details['name']);
654                 $extension->set('state', -1);
655                 $extension->set('manifest_cache', json_encode($manifest_details));
656                 $extension->set('params', '{}');
657                 $results[] = $extension;
658             }
659 
660             $folder_list = JFolder::folders(JPATH_SITE . '/plugins/' . $folder);
661 
662             foreach ($folder_list as $plugin_folder)
663             {
664                 $file_list = JFolder::files(JPATH_SITE . '/plugins/' . $folder . '/' . $plugin_folder, '\.xml$');
665 
666                 foreach ($file_list as $file)
667                 {
668                     $manifest_details = JInstaller::parseXMLInstallFile(
669                         JPATH_SITE . '/plugins/' . $folder . '/' . $plugin_folder . '/' . $file
670                     );
671                     $file = JFile::stripExt($file);
672 
673                     if ($file === 'example' || $manifest_details === false)
674                     {
675                         continue;
676                     }
677 
678                     $element = empty($manifest_details['filename']) ? $file : $manifest_details['filename'];
679 
680                     // Ignore example plugins
681                     $extension = JTable::getInstance('extension');
682                     $extension->set('type', 'plugin');
683                     $extension->set('client_id', 0);
684                     $extension->set('element', $element);
685                     $extension->set('folder', $folder);
686                     $extension->set('name', $manifest_details['name']);
687                     $extension->set('state', -1);
688                     $extension->set('manifest_cache', json_encode($manifest_details));
689                     $extension->set('params', '{}');
690                     $results[] = $extension;
691                 }
692             }
693         }
694 
695         return $results;
696     }
697 
698     /**
699      * Refreshes the extension table cache.
700      *
701      * @return  boolean  Result of operation, true if updated, false on failure.
702      *
703      * @since   3.1
704      */
705     public function refreshManifestCache()
706     {
707         /*
708          * Plugins use the extensions table as their primary store
709          * Similar to modules and templates, rather easy
710          * If it's not in the extensions table we just add it
711          */
712         $client = JApplicationHelper::getClientInfo($this->parent->extension->client_id);
713         $manifestPath = $client->path . '/plugins/' . $this->parent->extension->folder . '/' . $this->parent->extension->element . '/'
714             . $this->parent->extension->element . '.xml';
715         $this->parent->manifest = $this->parent->isManifest($manifestPath);
716         $this->parent->setPath('manifest', $manifestPath);
717         $manifest_details = JInstaller::parseXMLInstallFile($this->parent->getPath('manifest'));
718         $this->parent->extension->manifest_cache = json_encode($manifest_details);
719 
720         $this->parent->extension->name = $manifest_details['name'];
721 
722         if ($this->parent->extension->store())
723         {
724             return true;
725         }
726         else
727         {
728             JLog::add(JText::_('JLIB_INSTALLER_ERROR_PLG_REFRESH_MANIFEST_CACHE'), JLog::WARNING, 'jerror');
729 
730             return false;
731         }
732     }
733 }
734 
735 /**
736  * Deprecated class placeholder. You should use JInstallerAdapterPlugin instead.
737  *
738  * @since       3.1
739  * @deprecated  4.0
740  * @codeCoverageIgnore
741  */
742 class JInstallerPlugin extends JInstallerAdapterPlugin
743 {
744 }
745 
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.