\JObject
Joomla Platform Object Class
This class allows for simple but smart objects with get and set methods
and an internal error handler.
Synopsis
class JObject
{
- // members
- protected $_errors;
- // methods
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extended by
- PlgQuickiconExtensionupdate
- PlgQuickiconJoomlaupdate
- PlgEditorCodemirror
- PlgEditorNone
- PlgEditorTinymce
- PlgSearchNewsfeeds
- PlgSearchContacts
- PlgSearchCategories
- PlgSearchContent
- PlgSearchWeblinks
- PlgSystemP3p
- PlgSystemHighlight
- PlgSystemLanguageFilter
- PlgSystemRedirect
- PlgSystemLogout
- PlgSystemLog
- PlgSystemCache
- PlgSystemRemember
- PlgSystemSef
- PlgSystemLanguagecode
- PlgSystemDebug
- PlgUserProfile
- PlgUserContactCreator
- PlgUserJoomla
- PlgAuthenticationLdap
- PlgAuthenticationCookie
- PlgAuthenticationJoomla
- PlgAuthenticationGMail
- PlgExtensionJoomla
- PlgButtonArticle
- PlgButtonReadmore
- PlgButtonPagebreak
- PlgButtonImage
- PlgTwofactorauthYubikey
- PlgTwofactorauthTotp
- PlgFinderNewsfeeds
- PlgFinderTags
- PlgFinderContacts
- PlgFinderCategories
- PlgFinderContent
- PlgFinderWeblinks
- PlgCaptchaRecaptcha
- PlgContentVote
- PlgContentContact
- PlgContentPagebreak
- PlgContentEmailcloak
- PlgContentLoadmodule
- PlgContentJoomla
- PlgContentPagenavigation
- PlgContentFinder
- JEventInspector
- JEventStub
- TestTestadapter
- TestTestadapter3
- TestTestadapter4
- StubModelFoobar
- NomodelInName
- RemodelModelRoom
- TestModelLead
- NestedTable
- TableDbTestComposite
- MediaViewMediaList
- MediaViewMediaListItemsHtml
- ContentViewArticle
- ContentViewHtml
- ExampleViewSEOHtml
- MincesControllerMince
- MiniesControllerMiny
- MintsControllerMint
- TestController
- TestTestController
- PlgSystemPrivate
- PlgSystemBase
- PlgSystemJoomla
- ContactControllerContact
- ContactModelCategories
- ContactModelCategory
- ContactModelFeatured
- ContactModelContact
- ContactViewContact
- ContactViewCategory
- ContactViewCategories
- ContactViewFeatured
- ContactController
- NewsfeedsModelCategories
- NewsfeedsModelCategory
- NewsfeedsModelNewsfeed
- NewsfeedsViewCategory
- NewsfeedsViewNewsfeed
- NewsfeedsViewCategories
- NewsfeedsController
- UsersControllerRemind
- UsersControllerRegistration
- UsersControllerReset
- UsersControllerProfile
- UsersControllerUser
- UsersModelRemind
- UsersModelRegistration
- UsersModelLogin
- UsersModelReset
- UsersModelProfile
- UsersViewProfile
- UsersViewRemind
- UsersViewLogin
- UsersViewReset
- UsersViewRegistration
- UsersController
- MailtoViewMailto
- MailtoViewSent
- MailtoController
- SearchModelSearch
- SearchViewSearch
- SearchController
- WrapperViewWrapper
- WrapperController
- ContentControllerArticle
- ContentModelArticle
- ContentModelArchive
- ContentModelCategories
- ContentModelCategory
- ContentModelFeatured
- ContentModelForm
- ContentModelArticles
- ContentViewForm
- ContentViewCategory
- ContentViewArchive
- ContentViewCategories
- ContentViewFeatured
- ContentController
- FinderControllerSuggestions
- FinderModelSuggestions
- FinderModelSearch
- FinderViewSearch
- FinderController
- WeblinksControllerWeblink
- WeblinksModelCategories
- WeblinksModelCategory
- WeblinksModelWeblink
- WeblinksModelForm
- WeblinksViewForm
- WeblinksViewCategory
- WeblinksViewCategories
- WeblinksViewWeblink
- WeblinksController
- TagsControllerTags
- TagsModelTags
- TagsModelTag
- TagsViewTags
- TagsViewTag
- TagsController
- BannersModelBanner
- BannersModelBanners
- BannersController
- ContactControllerContacts
- ContactTableContact
- ContactModelContacts
- ContactViewContacts
- TemplatesControllerTemplate
- TemplatesControllerStyle
- TemplatesControllerStyles
- TemplatesTableStyle
- TemplatesModelTemplate
- TemplatesModelStyle
- TemplatesModelTemplates
- TemplatesModelStyles
- TemplatesViewTemplate
- TemplatesViewStyle
- TemplatesViewStyles
- TemplatesViewTemplates
- TemplatesController
- NewsfeedsControllerNewsfeeds
- NewsfeedsControllerNewsfeed
- NewsfeedsTableNewsfeed
- NewsfeedsModelNewsfeeds
- NewsfeedsViewNewsfeeds
- CheckinModelCheckin
- CheckinViewCheckin
- CheckinController
- ConfigControllerComponent
- ConfigControllerApplication
- ConfigController
- PluginsControllerPlugin
- PluginsControllerPlugins
- PluginsModelPlugin
- PluginsModelPlugins
- PluginsViewPlugins
- PluginsViewPlugin
- PluginsController
- RedirectControllerLinks
- RedirectControllerLink
- RedirectTableLink
- RedirectModelLinks
- RedirectModelLink
- RedirectViewLink
- RedirectViewLinks
- RedirectController
- CacheModelCache
- CacheViewCache
- CacheViewPurge
- CacheController
- UsersControllerNote
- UsersControllerGroup
- UsersControllerLevels
- UsersControllerNotes
- UsersControllerMail
- UsersControllerUsers
- UsersControllerGroups
- UsersControllerLevel
- UsersTableNote
- UsersModelNote
- UsersModelDebugUser
- UsersModelDebuggroup
- UsersModelGroup
- UsersModelLevels
- UsersModelNotes
- UsersModelMail
- UsersModelUsers
- UsersModelGroups
- UsersModelLevel
- UsersModelUser
- UsersViewNotes
- UsersViewDebuggroup
- UsersViewMail
- UsersViewGroups
- UsersViewUser
- UsersViewUsers
- UsersViewNote
- UsersViewLevel
- UsersViewDebuguser
- UsersViewGroup
- UsersViewLevels
- CategoriesControllerCategories
- CategoriesControllerCategory
- CategoriesTableCategory
- CategoriesModelCategories
- CategoriesModelCategory
- CategoriesViewCategory
- CategoriesViewCategories
- CategoriesController
- JSite
- SearchControllerSearches
- SearchModelSearches
- SearchViewSearches
- AdminControllerProfile
- AdminModelHelp
- AdminModelSysInfo
- AdminModelProfile
- AdminViewProfile
- AdminViewHelp
- AdminViewSysinfo
- AdminController
- PostinstallControllerMessage
- PostinstallModelMessages
- PostinstallViewMessages
- ContentControllerFeatured
- ContentControllerArticles
- ContentTableFeatured
- ContentModelFeature
- ContentViewArticles
- CpanelViewCpanel
- CpanelController
- ContenthistoryControllerHistory
- ContenthistoryControllerPreview
- ContenthistoryModelCompare
- ContenthistoryModelHistory
- ContenthistoryModelPreview
- ContenthistoryViewCompare
- ContenthistoryViewPreview
- ContenthistoryViewHistory
- ContenthistoryController
- FinderIndexerAdapter
- FinderControllerIndex
- FinderControllerFilters
- FinderControllerIndexer
- FinderControllerFilter
- FinderControllerMaps
- FinderTableLink
- FinderTableMap
- FinderTableFilter
- FinderModelIndexer
- FinderModelIndex
- FinderModelStatistics
- FinderModelFilters
- FinderModelFilter
- FinderModelMaps
- FinderViewStatistics
- FinderViewMaps
- FinderViewFilters
- FinderViewFilter
- FinderViewIndexer
- FinderViewIndex
- MediaControllerFile
- MediaControllerFolder
- MediaModelManager
- MediaModelList
- MediaViewMedia
- MediaViewImages
- MediaViewImagesList
- MediaController
- WeblinksControllerWeblinks
- WeblinksTableWeblink
- WeblinksModelWeblinks
- WeblinksViewWeblinks
- LanguagesControllerInstalled
- LanguagesControllerLanguage
- LanguagesControllerOverrides
- LanguagesControllerOverride
- LanguagesControllerLanguages
- LanguagesControllerStrings
- LanguagesModelInstalled
- LanguagesModelLanguage
- LanguagesModelOverrides
- LanguagesModelOverride
- LanguagesModelLanguages
- LanguagesModelStrings
- LanguagesViewLanguage
- LanguagesViewMultilangstatus
- LanguagesViewInstalled
- LanguagesViewOverride
- LanguagesViewOverrides
- LanguagesViewLanguages
- LanguagesController
- InstallerControllerUpdate
- InstallerControllerDatabase
- InstallerControllerDiscover
- InstallerControllerLanguages
- InstallerControllerManage
- InstallerControllerInstall
- InstallerModelUpdate
- InstallerModelDatabase
- InstallerModelDiscover
- InstallerModel
- InstallerModelLanguages
- InstallerModelManage
- InstallerModelWarnings
- InstallerModelInstall
- InstallerViewManage
- InstallerViewUpdate
- InstallerViewInstall
- InstallerViewDatabase
- InstallerViewDiscover
- InstallerViewWarnings
- InstallerViewDefault
- InstallerViewLanguages
- InstallerController
- MessagesControllerConfig
- MessagesControllerMessages
- MessagesControllerMessage
- MessagesTableMessage
- MessagesModelConfig
- MessagesModelMessages
- MessagesModelMessage
- MessagesViewMessages
- MessagesViewConfig
- MessagesViewMessage
- MessagesController
- ModulesControllerModule
- ModulesControllerModules
- ModulesModelPositions
- ModulesModelModule
- ModulesModelModules
- ModulesModelSelect
- ModulesViewModule
- ModulesViewPreview
- ModulesViewSelect
- ModulesViewPositions
- ModulesViewModules
- ModulesController
- MenusControllerMenus
- MenusControllerItems
- MenusControllerItem
- MenusControllerMenu
- MenusTableMenu
- MenusModelMenus
- MenusModelItems
- MenusModelItem
- MenusModelMenutypes
- MenusModelMenu
- MenusViewMenus
- MenusViewItem
- MenusViewItems
- MenusViewMenu
- MenusViewMenutypes
- MenusController
- JoomlaupdateControllerUpdate
- JoomlaupdateModelDefault
- JoomlaupdateViewUpdate
- JoomlaupdateViewDefault
- JoomlaupdateController
- LoginModelLogin
- LoginViewLogin
- LoginController
- TagsControllerTag
- TagsTableTag
- BannersControllerClient
- BannersControllerClients
- BannersControllerBanner
- BannersControllerTracks
- BannersControllerBanners
- BannersTableClient
- BannersTableBanner
- BannersModelDownload
- BannersModelClient
- BannersModelClients
- BannersModelTracks
- BannersViewClient
- BannersViewDownload
- BannersViewBanners
- BannersViewClients
- BannersViewTracks
- BannersViewBanner
- JAdminCssMenu
- JMenuNode
- JTree
- JObservable
- JObserver
- JNode
- JDispatcher
- JModelAdmin
- JModelItem
- JModelList
- JModelForm
- JModelLegacy
- JTableContent
- JTableCategory
- JTableMenuType
- JTableModule
- JTableMenu
- JTableSession
- JViewCategories
- JViewCategory
- JViewCategoryfeed
- JViewLegacy
- JCategoryNode
- JControllerAdmin
- JControllerForm
- JControllerLegacy
- JEvent
- JEventDispatcher
- JAuthentication
- JUser
- JUpdater
- JUpdate
- JUpdaterExtension
- JUpdaterCollection
- JUpdateAdapter
- JAdapter
- JAdapterInstance
- JTableLanguage
- JTableNested
- JTableUpdate
- JTableUsergroup
- JTableAsset
- JTable
- JTableExtension
- JTableViewlevel
- JTableUser
- JStream
- JPlugin
- JInstaller
- JInstallerAdapterLanguage
- JInstallerLanguage
- JInstallerAdapterComponent
- JInstallerComponent
- JInstallerAdapterPlugin
- JInstallerPlugin
- JInstallerAdapterLibrary
- JInstallerLibrary
- JInstallerAdapterFile
- JInstallerFile
- JInstallerAdapterPackage
- JInstallerPackage
- JInstallerAdapterTemplate
- JInstallerTemplate
- JInstallerAdapterModule
- JInstallerModule
- JInstallerExtension
- JExtension
- JTableContenttype
- JTableCorecontent
- JTableContenthistory
- JTableUcm
- JCaptcha
- JEditor
- FOFDispatcher
- FOFModel
- FOFModelBehaviorLanguage
- FOFModelBehaviorPrivate
- FOFModelBehaviorFilters
- FOFModelBehaviorAccess
- FOFModelBehaviorEnabled
- FOFModelDispatcherBehavior
- FOFModelBehavior
- FOFTableBehaviorAssets
- FOFTableBehaviorTags
- FOFTableDispatcherBehavior
- FOFTable
- FOFTableBehavior
- FOFViewJson
- FOFViewHtml
- FOFViewCsv
- FOFViewForm
- FOFView
- FOFViewRaw
- FOFController
Members
protected
- $_errors
—
array
An array of error messages or Exception objects.
Methods
public
- __construct() — Class constructor, overridden in descendant classes.
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.