Lines Matching refs:move

15  * This thing prepares and keeps progress info on complex move operations (eg. where more than a single
18 * Please note: this has not a complex move resolver. Move operations may not depend on each other (eg. you
19 * can not use a namespace as source that will only be created by a different move operation) instead all given
38 * @var array the options for this move plan
70 * initializes state (if any) for continuiation of a running move op
187 * Check if there is a move in progress currently
245 * Plans the move of a namespace or document
247 * @param string $src ID of the item to move
268 * Abort any move or plan in progress and reset the helper
282 * the plan is reordered an the needed move operations are gathered and stored in the appropriate
299 foreach($this->plan as $move) {
300 if($move['class'] == self::CLASS_DOC) {
302 $this->addToDocumentList($move['src'], $move['dst'], $move['type']);
306 $path = utf8_encodeFN(str_replace(':', '/', $move['src']));
308 if($move['type'] == self::TYPE_PAGES) {
315 if($move['src'] !== '') {
316 $strip = strlen($move['src']) + 1;
320 if($move['dst']) $move['dst'] .= ':';
325 $to = $move['dst'] . substr($doc['id'], $strip);
326 $this->addToDocumentList($from, $to, $move['type']);
329 // remember the namespace move itself
330 if($move['type'] == self::TYPE_PAGES) {
331 // FIXME we use this to move namespace subscriptions later on and for now only do it on
334 $this->addToDocumentList($move['src'], $move['dst'], self::CLASS_NS);
336 $this->findMissingDocuments($move['src'] . ':', $move['dst'],$move['type']);
338 // store what pages are affected by this move
339 $this->findAffectedPages($move['src'], $move['dst'], $move['class'], $move['type']);
495 // move the page
513 * It is used to finalize a successful or skipped move
615 * @todo maybe add an event so plugins can move more stuff?
677 * Appends a page move operation in the list file
679 * If the src has been added before, this is ignored. This makes sure you can move a single page
680 * out of a namespace first, then move the namespace somewhere else.
719 * Looks up pages that will be affected by a move of $src
874 * Callback for usort to sort the move plan
949 $file = $conf['cachedir'] . '/move/' . strftime('%Y%m%d-%H%M%S', $optime) . '.log';