Elgg
Version 1.9
|
Helper for data directory upgrade. More...
Public Member Functions | |
__construct ($siteGuid, $dbPrefix) | |
getBatchOptions () | |
Get elgg_get_entities() options for fetching users who need data migration. More... | |
countUnmigratedUsers () | |
Get number of users who need data migration. More... | |
makeMatrix ($user_row) | |
Get the old directory location. More... | |
removeDirIfEmpty ($dir) | |
Remove directory if all users moved out of it. More... | |
getLowerBucketBound ($guid) | |
Get the base directory name as int. More... | |
markSuccess ($guid) | |
Mark the user as a successful data migration. More... | |
markFailure ($guid) | |
Mark the user as having failed data migration. More... | |
forgetFailures () | |
Remove the records for failed migrations. More... | |
forgetSuccesses () | |
Remove the records for successful migrations. More... | |
hasFailures () | |
Are there any failures on record? More... | |
Public Attributes | |
const | RELATIONSHIP_SUCCESS = '2013022000' |
const | RELATIONSHIP_FAILURE = '2013022000_fail' |
Protected Attributes | |
$siteGuid | |
$dbPrefix | |
Elgg_Upgrades_Helper2013022000::__construct | ( | $siteGuid, | |
$dbPrefix | |||
) |
int | $siteGuid | Site GUID |
string | $dbPrefix | DB table prefix |
Definition at line 26 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::countUnmigratedUsers | ( | ) |
Get number of users who need data migration.
Definition at line 66 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::forgetFailures | ( | ) |
Remove the records for failed migrations.
Definition at line 147 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::forgetSuccesses | ( | ) |
Remove the records for successful migrations.
Definition at line 159 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::getBatchOptions | ( | ) |
Get elgg_get_entities() options for fetching users who need data migration.
Definition at line 36 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::getLowerBucketBound | ( | $guid | ) |
Get the base directory name as int.
int | $guid | GUID of the user |
Definition at line 118 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::hasFailures | ( | ) |
Elgg_Upgrades_Helper2013022000::makeMatrix | ( | $user_row | ) |
Get the old directory location.
stdClass | $user_row |
Definition at line 78 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::markFailure | ( | $guid | ) |
Mark the user as having failed data migration.
int | $guid |
Definition at line 140 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::markSuccess | ( | $guid | ) |
Mark the user as a successful data migration.
int | $guid |
Definition at line 131 of file Helper2013022000.php.
Elgg_Upgrades_Helper2013022000::removeDirIfEmpty | ( | $dir | ) |
Remove directory if all users moved out of it.
string | $dir |
Definition at line 89 of file Helper2013022000.php.
|
protected |
Definition at line 20 of file Helper2013022000.php.
|
protected |
Definition at line 15 of file Helper2013022000.php.
const Elgg_Upgrades_Helper2013022000::RELATIONSHIP_FAILURE = '2013022000_fail' |
Definition at line 10 of file Helper2013022000.php.
const Elgg_Upgrades_Helper2013022000::RELATIONSHIP_SUCCESS = '2013022000' |
Definition at line 9 of file Helper2013022000.php.