DbProfileHelpersTrait

Trait for installer/configurator classes.

since 1.7
package

Default

Methods

declare a new db profile. if the content of the section is not given, it will declare an alias to the default profile.

declareDbProfile(string $name, null|array|string $sectionContent = null, boolean $force = true) : boolean

Arguments

$name

string

the name of the new section/alias

$sectionContent

null|array|string

the content of the new section, or null to create an alias

$force

boolean

true:erase the existing profile

Response

boolean

true if the ini file has been changed

remove a db profile.

removeDbProfile(string $name) 

Arguments

$name

string

the name of the section/alias