ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilRobotSettings Class Reference
+ 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

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 32 of file class.ilRobotSettings.php.

Constructor & Destructor Documentation

ilRobotSettings::__construct ( )
private

Private constructor => use getInstance.

private

Parameters

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:

Member Function Documentation

static ilRobotSettings::_getInstance ( )
static

Get instance.

public

Parameters

Definition at line 61 of file class.ilRobotSettings.php.

References $instance.

Referenced by ilLink\_getStaticLink(), ilObjSystemFolderGUI\displayBasicSettings(), and ilObjSystemFolderGUI\initBasicSettingsForm().

{
if(isset(self::$instance) and 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

Parameters

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

Returns
bool support given

Definition at line 79 of file class.ilRobotSettings.php.

References $open_robots.

{
return (bool) $this->open_robots;
}

Field Documentation

ilRobotSettings::$instance = null
staticprivate

Definition at line 37 of file class.ilRobotSettings.php.

Referenced by _getInstance().

ilRobotSettings::$open_robots = false
private

Definition at line 34 of file class.ilRobotSettings.php.

Referenced by robotSupportEnabled().

ilRobotSettings::$settings = null
private

Definition at line 35 of file class.ilRobotSettings.php.


The documentation for this class was generated from the following file: