public function installRoot( |
| ): UrlPath |
Gets or sets the path and URL of the system install root directory.
path UrlPath$ | UrlPath representing the path and URL |
UrlPath containing the path and URL
public function userData( |
| ): UrlPath |
Gets or sets the path and URL of the system userdata directory.
path UrlPath$ | UrlPath representing the path and URL |
UrlPath containing the path and URL
Gets the mapping of registered blogIDs to url and path.
Array mapping blogIDs to UrlPath objects containing the path and URL
public function registerBlog( |
| ) |
Register a blog ID, path, and URL with the system
blogid string$ | string continaing the blog identifier |
path UrlPath$ | UrlPath with the path and URL of the blog |
public function unregisterBlog( |
| ) |
Remove the registration for a blog.
blogid string$ | string continaing the blog identifier |
Writes out the configuration file used to record the URLs and paths.
Checks if a path config has been written yet.
True if the install-wide pathconfig.php exists, false otherwise.
public function definePathConstants( |
| ) |
Defines the INSTALL_ROOT, INSTALL_ROOT_URL, USER_DATA_PATH, and optionally BLOG_ROOT and BLOG_ROOT_URL legacy constants. These constants are deprecared, but are still used by a lot of existing code, and so aren't going away yet.