ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGloAdvColSortInputGUI Class Reference

Input for adv meta data column sorting in glossaries. More...

+ Inheritance diagram for ilGloAdvColSortInputGUI:
+ Collaboration diagram for ilGloAdvColSortInputGUI:

Public Member Functions

 __construct ($a_title="", $a_id="")
 Constructor.
 setValue ($a_value)
 Set Value.
 getValue ()
 Get Value.
 checkInput ()
 Input should always be valid, since we sort only.
 render ()
 render
 insert (&$a_tpl)
 Insert property html.
 setValueByArray ($a_values)
 Set value by array.
 getTableFilterHTML ()
 Get HTML for table filter.
- Public Member Functions inherited from ilFormPropertyGUI
executeCommand ()
 Execute command.
 getType ()
 Get Type.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setPostVar ($a_postvar)
 Set Post Variable.
 getPostVar ()
 Get Post Variable.
 getFieldId ()
 Get Post Variable.
 setInfo ($a_info)
 Set Information Text.
 getInfo ()
 Get Information Text.
 setAlert ($a_alert)
 Set Alert Text.
 getAlert ()
 Get Alert Text.
 setRequired ($a_required)
 Set Required.
 getRequired ()
 Get Required.
 setDisabled ($a_disabled)
 Set Disabled.
 getDisabled ()
 Get Disabled.
 setParentForm ($a_parentform)
 Set Parent Form.
 getParentForm ()
 Get Parent Form.
 setParent ($a_val)
 Set Parent GUI object.
 getParent ()
 Get Parent GUI object.
 getSubForm ()
 Get sub form html.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 getItemByPostVar ($a_post_var)
 Get item by post var.
 serializeData ()
 serialize data
 unserializeData ($a_data)
 unserialize data
 writeToSession ()
 Write to session.
 clearFromSession ()
 Clear session value.
 readFromSession ()
 Read from session.
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties)
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi.
 getMulti ()
 Get Multi.
 setMultiValues (array $a_values)
 Set multi values.
 getMultiValues ()
 Get multi values.
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g.

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
 getMultiIconsHTML ()
 Get HTML for multiple value icons.
- Protected Attributes inherited from ilFormPropertyGUI
 $type
 $title
 $postvar
 $info
 $alert
 $required = false
 $parentgui
 $parentform
 $hidden_title = ""
 $multi = false
 $multi_sortable = false
 $multi_addremove = true
 $multi_values

Detailed Description

Input for adv meta data column sorting in glossaries.

Please note, that data us already an array, we do not use the MultipleValues interface here.

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

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

Constructor & Destructor Documentation

ilGloAdvColSortInputGUI::__construct (   $a_title = "",
  $a_id = "" 
)

Constructor.

Parameters

Reimplemented from ilFormPropertyGUI.

Definition at line 23 of file class.ilGloAdvColSortInputGUI.php.

References ilFormPropertyGUI\setType().

{
parent::__construct($a_title, $a_id);
$this->setType("glo_adv_col_sort");
}

+ Here is the call graph for this function:

Member Function Documentation

ilGloAdvColSortInputGUI::checkInput ( )

Input should always be valid, since we sort only.

Returns
boolean

Reimplemented from ilFormPropertyGUI.

Definition at line 55 of file class.ilGloAdvColSortInputGUI.php.

References $_POST, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashes().

{
if (is_array($_POST[$this->getPostVar()])) {
foreach ($_POST[$this->getPostVar()] as $k => $v)
{
$_POST[$this->getPostVar()][$k]["id"] = ilUtil::stripSlashes($_POST[$this->getPostVar()][$k]["id"]);
$_POST[$this->getPostVar()][$k]["text"] = ilUtil::stripSlashes($_POST[$this->getPostVar()][$k]["text"]);
}
}
else
{
$_POST[$this->getPostVar()] = array();
}
return true;
}

+ Here is the call graph for this function:

ilGloAdvColSortInputGUI::getTableFilterHTML ( )

Get HTML for table filter.

Definition at line 130 of file class.ilGloAdvColSortInputGUI.php.

References render().

{
$html = $this->render();
return $html;
}

+ Here is the call graph for this function:

ilGloAdvColSortInputGUI::getValue ( )

Get Value.

Returns
string Value

Definition at line 44 of file class.ilGloAdvColSortInputGUI.php.

Referenced by render().

{
return $this->value;
}

+ Here is the caller graph for this function:

ilGloAdvColSortInputGUI::insert ( $a_tpl)

Insert property html.

Definition at line 107 of file class.ilGloAdvColSortInputGUI.php.

References render().

{
$a_tpl->setCurrentBlock("prop_generic");
$a_tpl->setVariable("PROP_GENERIC", $this->render());
$a_tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

ilGloAdvColSortInputGUI::render ( )

render

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

References $lng, $tpl, ilGlyphGUI\DOWN, ilGlyphGUI\get(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getPostVar(), getValue(), ilUtil\prepareFormOutput(), and ilGlyphGUI\UP.

Referenced by getTableFilterHTML(), and insert().

{
global $lng;
$tpl = new ilTemplate("tpl.adv_col_sort_input.html", true, true, "Modules/Glossary");
include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
if (is_array($this->getValue()))
{
foreach ($this->getValue() as $k => $v)
{
$tpl->setCurrentBlock("item");
$tpl->setVariable("TEXT", $v["text"]);
$tpl->setVariable("ID", $this->getFieldId()."~".$k);
$tpl->setVariable("DOWN", ilGlyphGUI::get(ilGlyphGUI::DOWN));
$tpl->setVariable("TXT_DOWN", $lng->txt("down"));
$tpl->setVariable("UP", ilGlyphGUI::get(ilGlyphGUI::UP));
$tpl->setVariable("TXT_UP", $lng->txt("up"));
$tpl->setVariable('NAME', $this->getPostVar()."[".$k."][id]");
$tpl->setVariable('TNAME', $this->getPostVar()."[".$k."][text]");
$tpl->setVariable('VAL', ilUtil::prepareFormOutput($v["id"]));
$tpl->setVariable('TVAL', ilUtil::prepareFormOutput($v["text"]));
$tpl->parseCurrentBlock();
}
}
return $tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGloAdvColSortInputGUI::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

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

Referenced by ilObjGlossaryGUI\initSettingsForm(), and setValueByArray().

{
$this->value = $a_value;
}

+ Here is the caller graph for this function:

ilGloAdvColSortInputGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Definition at line 119 of file class.ilGloAdvColSortInputGUI.php.

References ilFormPropertyGUI\getPostVar(), and setValue().

{
if ($this->getPostVar() && isset($a_values[$this->getPostVar()]))
{
$this->setValue($a_values[$this->getPostVar()]);
}
}

+ Here is the call graph for this function:


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