Lines Matching defs:new
52 $new = $event->data['dst_id'];
59 $this->updateDataTablePIDs($old, $new);
60 $this->updateAssignments($old, $new);
61 $this->updateTitles($old, $new);
67 $schema = new Schema($table);
71 $this->updateColumnID($schema, $col, $old, $new, true);
73 $this->updateColumnLookup($schema, $col, $old, $new);
76 $this->updateColumnID($schema, $col, $old, $new);
97 * @param string $new new page id
99 protected function updateDataTablePIDs($old, $new)
104 $this->db->query($sql, [$new, $old]);
108 $this->db->query($sql, [$new, $old]);
116 * @param string $new new page id
118 protected function updateAssignments($old, $new)
122 $this->db->query($sql, [$new, $old]);
125 $assignments->reevaluatePageAssignments($new);
132 * @param string $new new page id
134 protected function updateTitles($old, $new)
137 $this->db->query($sql, [$new, $old]);
146 * @param string $new new page id
149 protected function updateColumnID(Schema $schema, Column $col, $old, $new, $hashes = false)
168 $this->db->query($sql, [$old, $new, $old]); // exact match
170 $this->db->query($sql, [$old, $new, "$old#%"]); // match with hashes
173 $this->db->query($sql, [$old, $new, "[\"$old\",%]"]); // match JSON string
175 $this->db->query($sql, [$old, $new, "[\"$old#%\",%]"]); // match JSON string with hash
188 * @param string $new new page id
190 protected function updateColumnLookup(Schema $schema, Column $col, $old, $new)
193 $ref = new Schema($tconf['schema']);
196 $this->updateColumnID($schema, $col, $old, $new);