◆ buildBasePath()
| ilUserProfilePictureMigration::buildBasePath |
( |
| ) |
|
|
protected |
◆ getDefaultAmountOfStepsPerRun()
| ilUserProfilePictureMigration::getDefaultAmountOfStepsPerRun |
( |
| ) |
|
◆ getLabel()
| ilUserProfilePictureMigration::getLabel |
( |
| ) |
|
◆ getPreconditions()
| ilUserProfilePictureMigration::getPreconditions |
( |
Environment |
$environment | ) |
|
◆ getRemainingAmountOfSteps()
| ilUserProfilePictureMigration::getRemainingAmountOfSteps |
( |
| ) |
|
◆ prepare()
| ilUserProfilePictureMigration::prepare |
( |
Environment |
$environment | ) |
|
◆ step()
| ilUserProfilePictureMigration::step |
( |
Environment |
$environment | ) |
|
Definition at line 55 of file class.ilUserProfilePictureMigration.php.
References Vendor\Package\$d, $r, and ILIAS\Repository\int().
57 $r = $this->helper->getDatabase()->query(
61 WHERE usr_data.rid IS NULL OR usr_data.rid = '' 65 $d = $this->helper->getDatabase()->fetchObject(
$r);
66 $user_id = (
int)
$d->usr_id;
68 $base_path = $this->buildBasePath();
69 $pattern =
'/.*\/(usr|upload)\_' . $user_id .
'\..*/m';
71 $rid = $this->helper->moveFirstFileOfPatternToStorage(
77 $save_rid = $rid === null ?
'-' : $rid->serialize();
78 $this->helper->getDatabase()->update(
80 [
'rid' => [
'text', $save_rid]],
81 [
'usr_id' => [
'integer', $user_id],]
◆ $helper
The documentation for this class was generated from the following file: