Core:Site Class

From Habari Project

Jump to: navigation, search

This page or image is a candidate for deletion. The given reason is: The wiki is not the place for API documentation. Anything useful on this page should either be moved to a sensible page or included in the code as docblocks.

This notice should remain for a minimum of 1 week after it was placed on the page. If discussion is still ongoing, it should remain until a consensus is reached, after which the page will either be deleted or this notice removed.

If you disagree with its deletion, please discuss your reasons on this page or on its associated talk page, as applicable.

Remember to check if anything links here and the page history before deleting.


Below is an explanation of the output for the various site methods, depending on where Habari is installed.

Contents

Root (http://www.habariproject.org/)

get_user_url() http://www.habariproject.org/user
get_base_url()  
get_host() http://www.habariproject.org
get_user_dir() user
get_theme_url() http://www.habariproject.org/user/themes/k2
get_config_path() /www/htdocs/habariproject.org
get_config() /www/htdocs/habariproject.org/config.php
get_config_dir()  
get_config_type() 0

Subdirectory (http://www.habariproject.org/subdir/)

get_user_url() http://www.habariproject.org/subdir/user
get_base_url() subdir
get_host() http://www.habariproject.org
get_user_dir() user
get_theme_url() http://www.habariproject.org/subdir/user/themes/k2
get_config_path() /www/htdocs/habariproject.org/subdir
get_config() /www/htdocs/habariproject.org/subdir/config.php
get_config_dir()  
get_config_type() 0

Multisite (http://www.habariproject.org/multisite/)

get_user_url() http://www.habariproject.org/user/sites/habariproject.org.multisite
get_base_url()  
get_host() http://www.habariproject.org
get_user_dir() user/sites/habariproject.org.multisite
get_theme_url() http://www.habariproject.org/user/sites/habariproject.org.multisite/themes/k2
get_config_path() /www/htdocs/habariproject.org/user/sites/habariproject.org.multisite
get_config() /www/htdocs/habariproject.org/user/sites/habariproject.org.multisite/config.php
get_config_dir() habariproject.org.multisite
get_config_type() 1

Subdomain (http://wiki.habariproject.org/)

get_user_url() http://wiki.habariproject.org/user/sites/wiki.habariproject.org
get_base_url()  
get_host() http://wiki.habariproject.org
get_user_dir() user/sites/wiki.habariproject.org
get_theme_url() http://wiki.habariproject.org/user/sites/wiki.habariproject.org/themes/k2
get_config_path() /www/htdocs/habariproject.org/user/sites/wiki.habariproject.org
get_config() /www/htdocs/habariproject.org/user/sites/wiki.habariproject.org/config.php
get_config_dir() wiki.habariproject.org
get_config_type() 2
Other Development Pages · Developer Introduction
This page describes a PHP class that is in the Habari software. For more comprehensive technical information visit the API Documentation.
Other Class Pages
Personal tools