Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Joomla\Database

Espaces de nommage

 Command
 
 Event
 
 Exception
 
 Monitor
 
 Mysql
 
 Mysqli
 
 Pdo
 
 Pgsql
 
 Query
 
 Service
 
 Sqlazure
 
 Sqlite
 
 Sqlsrv
 

Structures de données

interface  DatabaseAwareInterface
 
class  DatabaseDriver
 
class  DatabaseEvents
 
class  DatabaseExporter
 
class  DatabaseFactory
 
class  DatabaseImporter
 
interface  DatabaseInterface
 
class  DatabaseIterator
 
class  DatabaseQuery
 
class  FetchMode
 
class  FetchOrientation
 
class  ParameterType
 
interface  QueryInterface
 
interface  QueryMonitorInterface
 
interface  StatementInterface
 
interface  UTF8MB4SupportInterface
 

Fonctions

 getDatabase ()
 
 setDatabase (DatabaseInterface $db)
 

Variables

trait DatabaseAwareTrait
 

Description détaillée

Part of the Joomla Framework Database Package

Part of the Joomla Framework Database Package

Documentation des fonctions

◆ getDatabase()

Joomla\Database\getDatabase ( )
protected

Get the database.

Renvoie
DatabaseInterface
Depuis
2.1.0
Exceptions
DatabaseNotFoundExceptionMay be thrown if the database has not been set.

Références $this.

Référencé par InstallerAdapter\__get(), ComponentAdapter\_buildAdminMenus(), CategoryModel\_buildContentOrderBy(), PackageAdapter\_getExtensionId(), InstallerModel\_getList(), PluginsModel\_getList(), ModulesModel\_getList(), UpdateModel\_getList(), TasksModel\_getList(), MapsModel\_getListCount(), Categories\_load(), ModuleAdapter\_rollback_menu(), ModuleAdapter\_rollback_module(), ComponentAdapter\_updateMenus(), Installer\abort(), RegistrationModel\activate(), LinkModel\activate(), ActionlogModel\addLog(), MessagesModel\addPostInstallationMessage(), UpdateModel\applyUpdateSite(), MessagesModel\archiveMessage(), ItemModel\batchCopy(), ModuleModel\batchCopy(), CategoryModel\batchCopy(), CategoryModel\batchFlipordering(), ItemModel\batchMove(), CategoryModel\batchMove(), LinksModel\batchProcess(), UserModel\batchReset(), UserModel\batchUser(), ContactModel\buildContactExtendedData(), LevelModel\canDelete(), FieldModel\checkDefaultValue(), LibraryAdapter\checkExtensionInFilesystem(), DiscoverModel\checkExtensions(), CheckinModel\checkin(), TemplateModel\checkNewName(), AssociationsModel\clean(), Installer\cleanDiscoveredExtension(), ArticleModel\cleanupPostBatchCopy(), FieldModel\cleanupValues(), BannerModel\click(), Banner\clientlist(), PackageAdapter\copyBaseFiles(), TemplateModel\copyStyles(), WorkflowsModel\countItems(), ArticlesModel\countItemsByMonth(), CategoryFactory\createCategory(), PluginAdapter\createExtensionRoot(), FormFactory\createForm(), MenuFactory\createMenu(), MVCFactory\createModel(), MVCFactory\createTable(), UpdatesitesModel\delete(), TracksModel\delete(), ModuleModel\delete(), ActionlogsModel\delete(), FieldModel\delete(), ArticleModel\delete(), MethodsModel\deleteAll(), DiscoverModel\discover(), DiscoverModel\discover_install(), ListUserCommand\doExecute(), DeleteUserCommand\doExecute(), RemoveUserFromGroupCommand\doExecute(), AddUserToGroupCommand\doExecute(), ExtensionRemoveCommand\doExecute(), ModuleModel\duplicate(), LinkModel\duplicateUrls(), FileAdapter\extensionExistsInSystem(), ContactModel\featured(), ArticleModel\featured(), DatabaseModel\fetchSchemaCache(), LanguageAdapter\finaliseUninstall(), FileAdapter\finaliseUninstall(), LibraryAdapter\finaliseUninstall(), TemplateAdapter\finaliseUninstall(), PluginAdapter\finaliseUninstall(), PackageAdapter\finaliseUninstall(), ComponentAdapter\finaliseUninstall(), UpdateModel\finaliseUpgrade(), DatabaseModel\fix(), DatabaseModel\fixDefaultTextFilters(), DatabaseModel\fixSchemaVersion(), DatabaseModel\fixUpdateVersion(), StyleModel\getAdminTemplate(), ExtensionsListCommand\getAllExtensionsFromDB(), TemplateModel\getAllTemplateStyles(), ConsentBoxField\getAssignedArticleUrl(), ConsentBoxField\getAssignedMenuItemUrl(), TracksModel\getCategoryName(), BannersModel\getCategoryOrders(), UpdateModel\getCheckForSelfUpdate(), TracksModel\getClientName(), MessagesModel\getComponentOptions(), StatisticsModel\getData(), ApplicationModel\getData(), BaseDatabaseModel\getDbo(), ConsoleApplication\getDefaultCommands(), DatabaseModel\getDefaultTextFilters(), UpdateModel\getDisabledUpdateSites(), EditorField\getEditor(), DiscoverModel\getEmptyStateQuery(), TagsModel\getEmptyStateQuery(), MapsModel\getEmptyStateQuery(), ModulesModel\getEmptyStateQuery(), CategoriesModel\getEmptyStateQuery(), UpdateModel\getEmptyStateQuery(), MenuModel\getExtensionElementsForMenuItems(), MessagesModel\getExtensionName(), TemplatesModel\getExtensions(), FieldModel\getFieldValues(), TransitionsModel\getFilterForm(), TransitionModel\getForm(), TemplateModel\getForm(), DebuggroupModel\getGroup(), AddUserCommand\getGroupId(), AddUserToGroupCommand\getGroupId(), RemoveUserFromGroupCommand\getGroupId(), MenuField\getGroups(), UserMessagesField\getGroups(), ContentmapField\getGroups(), WorkflowstageField\getGroups(), TemplatestyleField\getGroups(), AddUserToGroupCommand\getGroups(), MenuitemField\getGroups(), MenuItemByTypeField\getGroups(), RemoveUserFromGroupCommand\getGroups(), FieldsModel\getGroups(), HelperFactory\getHelper(), SysinfoModel\getInfo(), PlugininfoField\getInput(), FieldLayoutField\getInput(), ModulelayoutField\getInput(), ComponentlayoutField\getInput(), RulesField\getInput(), CalendarField\getInput(), ConfigModel\getItem(), MessagesModel\getItem(), NewsfeedModel\getItem(), UpdatesiteModel\getItem(), MessageModel\getItem(), ContactModel\getItem(), FieldModel\getItem(), ArticleModel\getItem(), ModuleModel\getItem(), MenusModel\getItems(), TemplatesModel\getItems(), LanguagesModel\getItems(), PositionsModel\getItems(), UsersModel\getItems(), CheckinModel\getItems(), ClientsModel\getItems(), UpdatesitesModel\getJoomlaUpdateSitesIds(), TosField\getLabel(), LanguagesModel\getLanguageList(), PrivacyField\getLayoutData(), TermsField\getLayoutData(), RequestsModel\getListQuery(), FiltersModel\getListQuery(), ConsentsModel\getListQuery(), SuggestionsModel\getListQuery(), NotesModel\getListQuery(), SelectModel\getListQuery(), ActionlogsModel\getListQuery(), ArchiveModel\getListQuery(), TracksModel\getListQuery(), FeaturedModel\getListQuery(), DiscoverModel\getListQuery(), ClientsModel\getListQuery(), UpdateModel\getListQuery(), BannersModel\getListQuery(), LevelsModel\getListQuery(), SearchesModel\getListQuery(), MessagesModel\getListQuery(), TasksModel\getListQuery(), LanguagesModel\getListQuery(), TemplatesModel\getListQuery(), StylesModel\getListQuery(), StagesModel\getListQuery(), GroupsModel\getListQuery(), TransitionsModel\getListQuery(), SearchModel\getListQuery(), LinksModel\getListQuery(), FieldsModel\getListQuery(), TagModel\getListQuery(), ContactsModel\getListQuery(), NewsfeedsModel\getListQuery(), TagsModel\getListQuery(), MenusModel\getListQuery(), AssociationsModel\getListQuery(), CategoriesModel\getListQuery(), MapsModel\getListQuery(), IndexModel\getListQuery(), DebuguserModel\getListQuery(), PluginsModel\getListQuery(), DebuggroupModel\getListQuery(), WorkflowsModel\getListQuery(), ArticlesModel\getListQuery(), ItemsModel\getListQuery(), ModulesModel\getListQuery(), UsersModel\getListQuery(), ManageModel\getListQuery(), HistoryModel\getListQuery(), DatabaseModel\getListQuery(), UpdatesitesModel\getListQuery(), ActionlogConfigModel\getLogContentTypeParams(), ActionlogsModel\getLogDataAsIterator(), ActionlogsModel\getLogDataQuery(), ActionlogsModel\getLogsData(), ActionlogsModel\getLogsForItem(), ItemsModel\getMenu(), LoginModel\getMenuLanguage(), MenusModel\getMissingModuleLanguages(), MenusModel\getModMenuId(), MenuModel\getModules(), ItemModel\getModules(), UpdateModel\getNonCoreExtensions(), UpdateModel\getNonCorePlugins(), RequestsModel\getNumberUrgentRequests(), FieldgroupsField\getOptions(), FrontendlanguageField\getOptions(), ComponentsField\getOptions(), AliastagField\getOptions(), NewsfeedsField\getOptions(), SearchfilterField\getOptions(), ComponentsCategoryField\getOptions(), MenuParentField\getOptions(), ExtensionField\getOptions(), ConfigComponentsField\getOptions(), LogtypeField\getOptions(), MenuOrderingField\getOptions(), ComponentsWorkflowField\getOptions(), AuthorField\getOptions(), ContenttypesField\getOptions(), ComponentsFieldgroupField\getOptions(), ComponentsFieldsField\getOptions(), LogcreatorField\getOptions(), ContenttypeField\getOptions(), TransitionField\getOptions(), PluginsField\getOptions(), TagField\getOptions(), CategoryeditField\getOptions(), SqlField\getOptions(), IndexModel\getPluginState(), TemplateModel\getPreview(), PluginorderingField\getQuery(), OrderingField\getQuery(), StagesModel\getReorderConditions(), TransitionsModel\getReorderConditions(), GroupModel\getReorderConditions(), WorkflowModel\getReorderConditions(), BannerModel\getReorderConditions(), CategoryModel\getReorderConditions(), PluginModel\getReorderConditions(), NewsfeedModel\getReorderConditions(), ContactModel\getReorderConditions(), FieldModel\getReorderConditions(), ItemModel\getReorderConditions(), ArticleModel\getReorderConditions(), ModuleModel\getReorderConditions(), DatabaseModel\getSchemaVersion(), LanguageAdapter\getSefString(), StyleModel\getSiteTemplates(), ArchiveModel\getSlugColumn(), TaskModel\getTask(), TemplateModel\getTemplate(), TemplateModel\getTemplateList(), ChromestyleField\getTemplates(), Query\getTokenData(), Token\getTokenSeedForUser(), FilterModel\getTotal(), IndexModel\getTotalIndexed(), ArticlesModel\getTransitions(), MenutypesModel\getTypeOptions(), TemplateModel\getUpdatedList(), UpdateModel\getUpdateInformation(), LanguagesModel\getUpdateSite(), UpdateModel\getUpdateSitesInfo(), UsersModel\getUserDisplayedGroups(), FiltersField\getUserGroups(), AddUserCommand\getUserGroups(), AddUserToGroupCommand\getUserId(), RegistrationModel\getUserIdFromToken(), ItemModel\getViewLevels(), ArchiveModel\getYears(), MessagesModel\hideMessages(), BannersModel\impress(), LanguagesModel\install(), ConsentsModel\invalidate(), ConsentsModel\invalidateAll(), UpdateModel\isTemplateActive(), Token\isTokenEnabledForUser(), Installer\loadAdapter(), ManageModel\loadChangelog(), Form\loadField(), Finder\mapslist(), Joomla\onAfterCheckin(), Joomla\onContentChangeState(), Basic\onUserAuthenticate(), Joomla\onUserLoginFailure(), TemplateAdapter\parseQueries(), Installer\parseSchemaUpdates(), GroupsModel\populateExtraData(), ArchiveModel\populateState(), FeaturedModel\populateState(), SearchModel\populateState(), NewsfeedModel\prepareTable(), BannerModel\prepareTable(), ContactModel\prepareTable(), PluginModel\preprocessForm(), FormModel\preprocessForm(), ExtensionDiscoverInstallCommand\processDiscover(), Query\processDynamicTaxonomy(), SqlField\processQuery(), RemindModel\processRemindRequest(), ResetModel\processResetConfirm(), ResetModel\processResetRequest(), Query\processStaticTaxonomy(), UpdatesitesModel\publish(), ManageModel\publish(), TemplateModel\publish(), LinksModel\purge(), MessagesModel\purge(), OverridesModel\purge(), DiscoverModel\purge(), UpdateModel\purge(), IndexModel\purge(), ActionlogsModel\purge(), MapsModel\purge(), AssociationsModel\purge(), UpdatesitesModel\rebuild(), ItemModel\rebuild(), StringsModel\refresh(), RegistrationModel\register(), ManageModel\remove(), PackageAdapter\removeExtensionFiles(), MessagesModel\republishMessage(), SearchesModel\reset(), MessagesModel\resetMessages(), LanguageAdapter\resetUserLanguage(), FieldModel\save(), ConfigModel\save(), UpdatesiteModel\save(), ApplicationModel\save(), StyleModel\save(), CategoryModel\save(), ItemModel\save(), StringsModel\search(), Filter\select(), MailModel\send(), ActionlogModel\sendNotificationEmails(), FieldModel\setFieldValue(), MethodsModel\setFlag(), StyleModel\setHome(), Installer\setSchemaVersion(), TemplateAdapter\setupUninstall(), ComponentAdapter\setupUpdates(), Filter\slider(), ArticleModel\storeVote(), ExistsRule\test(), UsernameRule\test(), UserIdRule\test(), EmailRule\test(), Finder\typeslist(), MessagesModel\unpublishMessage(), StyleModel\unsetHome(), UpdateModel\update(), TemplatesModel\updated(), RequestModel\validate(), et FormField\validate().

◆ setDatabase()

Documentation des variables

◆ DatabaseAwareTrait

trait DatabaseAwareTrait
Valeur initiale :
{
private $databaseAwareTraitDatabase

Defines the trait for a Database Aware Class.

Depuis
2.1.0