/** * Removes the domain from the URL. */ public function strip_domain() { $this->_text = strip_domain($this->_text, $this->options()); }
/** * Called from {@link restore_root_behavior()}. * @return boolean * @access private */ protected function _default_resolve_to_root() { if ($this->env->running_on_declared_host()) { $app_url = $this->path_to(Folder_name_application); $curr_url = $this->env->url(Url_part_path); $opts = global_url_options(); /* Remove the domain to prevent prepending a root that is * already defined in the environment. */ $this->root_url = strip_domain(path_between($curr_url, $app_url, $opts), $opts); } else { $this->root_url = $this->path_to(Folder_name_application, Force_root_off); } return !empty($this->root_url); }