Elgg  Version 3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Elgg\Config\SettingsMigrator Class Reference

Migrates DB values to settings.php. More...

Inheritance diagram for Elgg\Config\SettingsMigrator:
Elgg\Config\DatarootSettingMigrator Elgg\Config\WwwrootSettingMigrator

Public Member Functions

 __construct (Database $db, $settings_path)
 Constructor. More...
 
 migrate ()
 Attempt to read the setting from the database and update the settings file Returns the value found in the database or null. More...
 

Protected Member Functions

 append ($bytes)
 Write bytes to settings files. More...
 

Protected Attributes

 $db
 
 $settings_path
 

Detailed Description

Migrates DB values to settings.php.

Definition at line 12 of file SettingsMigrator.php.

Constructor & Destructor Documentation

Elgg\Config\SettingsMigrator::__construct ( Database  $db,
  $settings_path 
)

Constructor.

Parameters
Database$dbDatabase
string$settings_pathsettings.php file path
Returns
void

Definition at line 32 of file SettingsMigrator.php.

Member Function Documentation

Elgg\Config\SettingsMigrator::append (   $bytes)
protected

Write bytes to settings files.

Parameters
string$bytesText to write to the settings file
Returns
bool

Definition at line 43 of file SettingsMigrator.php.

Elgg\Config\SettingsMigrator::migrate ( )
abstract

Attempt to read the setting from the database and update the settings file Returns the value found in the database or null.

Returns
mixed|null

Member Data Documentation

Elgg\Config\SettingsMigrator::$db
protected

Definition at line 17 of file SettingsMigrator.php.

Elgg\Config\SettingsMigrator::$settings_path
protected

Definition at line 22 of file SettingsMigrator.php.


The documentation for this class was generated from the following file: