Lines Matching defs:dst_name
26 * @param string $dst_name The basename after the move (empty for namespace moves)
29 public function movePageMeta($src_ns, $src_name, $dst_ns, $dst_name) {
33 return $this->execute($conf['metadir'], $src_ns, $src_name, $dst_ns, $dst_name, $regex);
42 * @param string $dst_name The basename after the move (empty for namespace moves)
45 public function movePageAttic($src_ns, $src_name, $dst_ns, $dst_name) {
49 return $this->execute($conf['olddir'], $src_ns, $src_name, $dst_ns, $dst_name, $regex);
58 * @param string $dst_name The basename after the move (empty for namespace moves)
61 public function moveMediaMeta($src_ns, $src_name, $dst_ns, $dst_name) {
65 return $this->execute($conf['mediametadir'], $src_ns, $src_name, $dst_ns, $dst_name, $regex);
74 * @param string $dst_name The basename after the move (empty for namespace moves)
77 public function moveMediaAttic($src_ns, $src_name, $dst_ns, $dst_name) {
86 $newext = mimetype($dst_name);
88 $newname = substr($dst_name, 0, -1 * strlen($newext[0]) - 1);
90 $newname = $dst_name;
118 * @param string $dst_name The basename after the move (empty for namespace moves)
122 protected function execute($dir, $src_ns, $src_name, $dst_ns, $dst_name, $extregex) {
143 if(!io_rename($old_path . '/' . $file, $new_path . '/' . utf8_encodeFN($dst_name . $match[1]))) {
144 msg('Moving ' . hsc($old_path . '/' . $file) . ' to ' . hsc($new_path . '/' . utf8_encodeFN($dst_name . $match[1])) . ' failed.', -1);