ILIAS  release_4-3 Revision
 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.
 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::checkRewrite ( )

Indirect Check of allow override.

public

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

{
if(!function_exists('apache_lookup_uri'))
{
return true;
}
$url = ILIAS_HTTP_PATH.'/goto_'.CLIENT_ID.'_root_1.html';
$status_info = @apache_lookup_uri($url);
// fallback for php as cgi (and available remote fopen)
if($status_info === false && ini_get('allow_url_fopen'))
{
// fopen respects HTTP error codes
$fp = @fopen($url, 'r');
if($fp)
{
fclose($fp);
return true;
}
return false;
}
return $status_info->status == 200;
}
ilRobotSettings::read ( )
private

Read settings.

private

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

Referenced by __construct().

{
$this->open_robots = (bool) $this->settings->get('open_google',false);
}

+ 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: