Lines Matching defs:dst
208 * @param string $dst
210 public function addPageMove($src, $dst) {
211 $this->addMove($src, $dst, self::CLASS_DOC, self::TYPE_PAGES);
218 * @param string $dst
220 public function addMediaMove($src, $dst) {
221 $this->addMove($src, $dst, self::CLASS_DOC, self::TYPE_MEDIA);
228 * @param string $dst
230 public function addPageNamespaceMove($src, $dst) {
231 $this->addMove($src, $dst, self::CLASS_NS, self::TYPE_PAGES);
238 * @param string $dst
240 public function addMediaNamespaceMove($src, $dst) {
241 $this->addMove($src, $dst, self::CLASS_NS, self::TYPE_MEDIA);
248 * @param string $dst new ID of item namespace
253 protected function addMove($src, $dst, $class = self::CLASS_NS, $type = self::TYPE_PAGES) {
257 $dst = cleanID($dst);
261 'dst' => $dst,
302 $this->addToDocumentList($move['src'], $move['dst'], $move['type']);
320 if($move['dst']) $move['dst'] .= ':';
325 $to = $move['dst'] . substr($doc['id'], $strip);
334 $this->addToDocumentList($move['src'], $move['dst'], self::CLASS_NS);
336 $this->findMissingDocuments($move['src'] . ':', $move['dst'],$move['type']);
339 $this->findAffectedPages($move['src'], $move['dst'], $move['class'], $move['type']);
489 list($src, $dst) = explode("\t", trim($line));
496 if(!$this->MoveOperator->$call($src, $dst)) {
497 $log .= $this->build_log_line($mark, $src, $dst, false); // FAILURE!
507 $log .= $this->build_log_line($mark, $src, $dst, true); // SUCCESS!
588 list($src, $dst) = explode("\t", $line);
589 $miss[$src] = $dst;
616 * @todo fixed that $src and $dst are seperated by tab, not newline. This method has no tests?
629 list($src, $dst) = explode("\t", trim($line));
630 $FileMover->moveNamespaceSubscription($src, $dst);
683 * @param string $dst
687 protected function addToDocumentList($src, $dst, $type = self::TYPE_PAGES) {
699 $this->tmpstore[$store][$src] = $dst;
724 * @param string $dst destination namespace
728 protected function findAffectedPages($src, $dst, $class, $type) {
743 $page = $dst . substr($page, $len + 1);
758 * @param string $dst destination namespace
761 protected function findMissingDocuments($src, $dst, $type = self::TYPE_PAGES) {
783 $newpage = $dst . substr($page, $len);
788 $newpage = $dst . substr($page, $len);
818 foreach($this->tmpstore[$store] as $src => $dst) {
819 if($dst === true) {
822 $data .= "$src\t$dst\n";