DbProfileHelpersTrait
Trait for installer/configurator classes.
Tags
Table of Contents
- declareDbProfile() : bool
- declare a new db profile. if the content of the section is not given, it will declare an alias to the default profile.
- removeDbProfile() : mixed
- remove a db profile.
Methods
declareDbProfile()
declare a new db profile. if the content of the section is not given, it will declare an alias to the default profile.
public
declareDbProfile(string $name[, null|array<string|int, mixed>|string $sectionContent = null ][, bool $force = true ]) : bool
Parameters
- $name : string
-
the name of the new section/alias
- $sectionContent : null|array<string|int, mixed>|string = null
-
the content of the new section, or null to create an alias
- $force : bool = true
-
true:erase the existing profile
Return values
bool —true if the ini file has been changed
removeDbProfile()
remove a db profile.
public
removeDbProfile(string $name) : mixed
Parameters
- $name : string
-
the name of the section/alias