◆ getDefaultAmountOfStepsPerRun()
LSOMigratePageIdsIntro::getDefaultAmountOfStepsPerRun |
( |
| ) |
|
◆ getLabel()
LSOMigratePageIdsIntro::getLabel |
( |
| ) |
|
◆ getPreconditions()
LSOMigratePageIdsIntro::getPreconditions |
( |
Environment |
$environment | ) |
|
◆ getRemainingAmountOfSteps()
LSOMigratePageIdsIntro::getRemainingAmountOfSteps |
( |
| ) |
|
Definition at line 71 of file class.LSOMigratePageIdsIntro.php.
73 $result = $this->db->query(self::QUERY);
74 $row = $this->db->fetchAssoc($result);
76 return (
int) $row[
'cnt'];
◆ prepare()
LSOMigratePageIdsIntro::prepare |
( |
Environment |
$environment | ) |
|
◆ step()
LSOMigratePageIdsIntro::step |
( |
Environment |
$environment | ) |
|
- Exceptions
-
Definition at line 59 of file class.LSOMigratePageIdsIntro.php.
61 $result = $this->db->query(self::QUERY .
' LIMIT 1');
62 $row = $this->db->fetchAssoc($result);
63 $query =
'UPDATE page_object' . PHP_EOL
64 .
"SET page_id = parent_id, parent_type = 'lsoi'" . PHP_EOL
65 .
"WHERE page_id = " . $row[
'page_id'] . PHP_EOL
66 .
"AND parent_id = " . $row[
'parent_id'] . PHP_EOL
67 .
"AND parent_type = " . $this->db->quote($row[
'parent_type'],
'text');
68 $this->db->manipulate($query);
◆ $db
◆ DEFAULT_AMOUNT_OF_STEPS
const LSOMigratePageIdsIntro::DEFAULT_AMOUNT_OF_STEPS = 1000 |
|
private |
◆ QUERY
const LSOMigratePageIdsIntro::QUERY |
|
private |
Initial value:= "SELECT page_id, parent_id, parent_type, count(page_id) AS cnt" . PHP_EOL
. "FROM page_object" . PHP_EOL
. "WHERE page_id = (parent_id * -1)" . PHP_EOL
. "AND parent_type = 'cont'"
Definition at line 27 of file class.LSOMigratePageIdsIntro.php.
The documentation for this class was generated from the following file: