ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSettingsTemplateConfig Class Reference

Settings template config class. More...

+ Collaboration diagram for ilSettingsTemplateConfig:

Public Member Functions

 __construct ($a_obj_type)
 Constructor.
 setType ($a_val)
 Set type.
 getType ()
 Get type.
 addHidableTab ($a_tab_id, $a_text)
 Add hidable tabs.
 getHidableTabs ()
 Get hidable tabs.
 addSetting ($a_id, $a_type, $a_text, $a_hidable, $a_length=0, $a_options=array())
 Add setting.
 getSettings ()
 Get settings.

Data Fields

const TEXT = "text"
const SELECT = "select"
const BOOL = "bool"
const CHECKBOX = "check"

Private Attributes

 $type
 $tab = array()
 $setting = array()

Detailed Description

Settings template config class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 11 of file class.ilSettingsTemplateConfig.php.

Constructor & Destructor Documentation

ilSettingsTemplateConfig::__construct (   $a_obj_type)

Constructor.

Parameters
stringobject type

Definition at line 27 of file class.ilSettingsTemplateConfig.php.

References setType().

{
$this->setType($a_obj_type);
}

+ Here is the call graph for this function:

Member Function Documentation

ilSettingsTemplateConfig::addHidableTab (   $a_tab_id,
  $a_text 
)

Add hidable tabs.

Parameters
inttab id
stringtab text

Definition at line 58 of file class.ilSettingsTemplateConfig.php.

{
$this->tabs[$a_tab_id] = array(
"id" => $a_tab_id,
"text" => $a_text
);
}
ilSettingsTemplateConfig::addSetting (   $a_id,
  $a_type,
  $a_text,
  $a_hidable,
  $a_length = 0,
  $a_options = array() 
)

Add setting.

Parameters
@return

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

{
$this->setting[$a_id] = array(
"id" => $a_id,
"type" => $a_type,
"text" => $a_text,
"hidable" => $a_hidable,
"length" => $a_length,
"options" => $a_options
);
}
ilSettingsTemplateConfig::getHidableTabs ( )

Get hidable tabs.

Definition at line 69 of file class.ilSettingsTemplateConfig.php.

{
return $this->tabs;
}
ilSettingsTemplateConfig::getSettings ( )

Get settings.

Returns

Definition at line 96 of file class.ilSettingsTemplateConfig.php.

References $setting.

{
}
ilSettingsTemplateConfig::getType ( )

Get type.

Returns
string type

Definition at line 47 of file class.ilSettingsTemplateConfig.php.

References $type.

{
return $this->type;
}
ilSettingsTemplateConfig::setType (   $a_val)

Set type.

Parameters
string$a_valtype

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

Referenced by __construct().

{
$this->type = $a_val;
}

+ Here is the caller graph for this function:

Field Documentation

ilSettingsTemplateConfig::$setting = array()
private

Definition at line 15 of file class.ilSettingsTemplateConfig.php.

Referenced by getSettings().

ilSettingsTemplateConfig::$tab = array()
private

Definition at line 14 of file class.ilSettingsTemplateConfig.php.

ilSettingsTemplateConfig::$type
private

Definition at line 13 of file class.ilSettingsTemplateConfig.php.

Referenced by getType().

const ilSettingsTemplateConfig::TEXT = "text"

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