Lines Matching defs:src_name
24 * @param string $src_name The original basename of the moved doc (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);
40 * @param string $src_name The original basename of the moved doc (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);
56 * @param string $src_name The original basename of the moved doc (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);
72 * @param string $src_name The original basename of the moved doc (empty for namespace moves)
77 public function moveMediaAttic($src_ns, $src_name, $dst_ns, $dst_name) {
80 $ext = mimetype($src_name);
82 $name = substr($src_name, 0, -1 * strlen($ext[0]) - 1);
84 $name = $src_name;
116 * @param string $src_name The original basename of the moved doc (empty for namespace moves)
122 protected function execute($dir, $src_ns, $src_name, $dst_ns, $dst_name, $extregex) {
127 $regex = '/^' . preg_quote(utf8_encodeFN($src_name)) . '(' . $extregex . ')$/u';