Collaboration diagram for ilRobotSettings:Public Member Functions | |
| robotSupportEnabled () | |
| Check if client is open for robots. | |
| checkModRewrite () | |
| Check if mod_rewrite module is available. | |
| checkRewrite () | |
| Indirect Check of allow override. | |
Static Public Member Functions | |
| static | _getInstance () |
| Get instance. | |
Private Member Functions | |
| __construct () | |
| Private constructor => use getInstance. | |
| read () | |
| Read settings. | |
Private Attributes | |
| $open_robots = false | |
| $settings = null | |
Static Private Attributes | |
| static | $instance = null |
Definition at line 32 of file class.ilRobotSettings.php.
| ilRobotSettings::__construct | ( | ) | [private] |
Private constructor => use getInstance.
private
Definition at line 45 of file class.ilRobotSettings.php.
References $ilSetting, and read().
{
global $ilSetting;
$this->settings = $ilSetting;
$this->read();
}
Here is the call graph for this function:| static ilRobotSettings::_getInstance | ( | ) | [static] |
Get instance.
public
Definition at line 61 of file class.ilRobotSettings.php.
Referenced by ilLink::_getStaticLink(), and ilObjSystemFolderGUI::displayBasicSettings().
{
if(isset(self::$instance) and self::$instance)
{
return self::$instance;
}
else
{
return self::$instance = new ilRobotSettings();
}
}
Here is the caller graph for this function:| ilRobotSettings::checkModRewrite | ( | ) |
Check if mod_rewrite module is available.
public
Definition at line 106 of file class.ilRobotSettings.php.
Referenced by read().
{
if (function_exists("apache_get_modules"))
{
if(in_array('mod_rewrite',apache_get_modules()))
{
return true;
}
}
return false;
}
Here is the caller graph for this function:| ilRobotSettings::checkRewrite | ( | ) |
Indirect Check of allow override.
public
Definition at line 124 of file class.ilRobotSettings.php.
{
if(!function_exists('apache_lookup_uri'))
{
return true;
}
$status_info = @apache_lookup_uri(ILIAS_HTTP_PATH.'/goto_'.CLIENT_ID.'_root_1.html');
return $status_info->status == 200;
}
| ilRobotSettings::read | ( | ) | [private] |
Read settings.
private
Definition at line 90 of file class.ilRobotSettings.php.
References checkModRewrite().
Referenced by __construct().
{
$this->open_robots = (bool) $this->settings->get('open_google',false);
if(!$this->checkModRewrite())
{
$this->open_robots = false;
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| ilRobotSettings::robotSupportEnabled | ( | ) |
Check if client is open for robots.
public
Definition at line 79 of file class.ilRobotSettings.php.
{
return (bool) $this->open_robots;
}
ilRobotSettings::$instance = null [static, private] |
Definition at line 37 of file class.ilRobotSettings.php.
ilRobotSettings::$open_robots = false [private] |
Definition at line 34 of file class.ilRobotSettings.php.
ilRobotSettings::$settings = null [private] |
Definition at line 35 of file class.ilRobotSettings.php.
1.7.1