ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLuceneAdvancedSearchSettings Class Reference

En/disable single lom/advanced meta data fields. More...

+ Collaboration diagram for ilLuceneAdvancedSearchSettings:

Public Member Functions

 isActive ($a_field)
 check if field is active
 setActive ($a_field, $a_status)
 set field active status
 save ()

Static Public Member Functions

static getInstance ()

Protected Attributes

 $storage = null

Private Member Functions

 __construct ()
 Constructor.
 read ()

Private Attributes

 $fields = array()

Static Private Attributes

static $instance = null

Detailed Description

En/disable single lom/advanced meta data fields.

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

Definition at line 36 of file class.ilLuceneAdvancedSearchSettings.php.

Constructor & Destructor Documentation

ilLuceneAdvancedSearchSettings::__construct ( )
private

Constructor.

Definition at line 46 of file class.ilLuceneAdvancedSearchSettings.php.

References $ilSetting, and read().

{
global $ilSetting;
$this->storage = new ilSetting('lucene_adv_search');
$this->read();
}

+ Here is the call graph for this function:

Member Function Documentation

static ilLuceneAdvancedSearchSettings::getInstance ( )
static

Definition at line 54 of file class.ilLuceneAdvancedSearchSettings.php.

References $instance.

Referenced by ilObjSearchSettingsGUI\advancedLuceneSettingsObject(), and ilObjSearchSettingsGUI\saveAdvancedLuceneSettingsObject().

{
if(isset(self::$instance) and self::$instance != null)
{
}
return self::$instance = new ilLuceneAdvancedSearchSettings();
}

+ Here is the caller graph for this function:

ilLuceneAdvancedSearchSettings::isActive (   $a_field)

check if field is active

Definition at line 66 of file class.ilLuceneAdvancedSearchSettings.php.

Referenced by ilLuceneAdvancedSearchActivationTableGUI\parse().

{
return $this->fields[$a_field] ? $this->fields[$a_field] : false;
}

+ Here is the caller graph for this function:

ilLuceneAdvancedSearchSettings::read ( )
private

Definition at line 89 of file class.ilLuceneAdvancedSearchSettings.php.

References ilLuceneAdvancedSearchFields\getFields().

Referenced by __construct().

{
foreach(ilLuceneAdvancedSearchFields::getFields() as $name => $translation)
{
$this->fields[$name] = (bool) $this->storage->get($name,true);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLuceneAdvancedSearchSettings::save ( )

Definition at line 80 of file class.ilLuceneAdvancedSearchSettings.php.

{
foreach($this->fields as $name => $status)
{
$this->storage->set($name,$status ? "1" : "0");
}
return true;
}
ilLuceneAdvancedSearchSettings::setActive (   $a_field,
  $a_status 
)

set field active status

Parameters
boolactive

Definition at line 75 of file class.ilLuceneAdvancedSearchSettings.php.

{
$this->fields[$a_field] = (bool) $a_status;
}

Field Documentation

ilLuceneAdvancedSearchSettings::$fields = array()
private

Definition at line 39 of file class.ilLuceneAdvancedSearchSettings.php.

ilLuceneAdvancedSearchSettings::$instance = null
staticprivate

Definition at line 38 of file class.ilLuceneAdvancedSearchSettings.php.

Referenced by getInstance().

ilLuceneAdvancedSearchSettings::$storage = null
protected

Definition at line 41 of file class.ilLuceneAdvancedSearchSettings.php.


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