ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChatSmiliesCurrentSmileyFormElement Class Reference

Class ilChatSmiliesCurrentSmileyFormElement simple form element that displays an image; does not add data to the containing form but may be initialized by default methods, such as valuesByArray. More...

+ Inheritance diagram for ilChatSmiliesCurrentSmileyFormElement:
+ Collaboration diagram for ilChatSmiliesCurrentSmileyFormElement:

Public Member Functions

 getHtml ()
 Get Html.
 getValue ()
 Get Value.
 setValue ($a_value)
 Set Value.
 setValueByArray ($a_values)
 Set value by array.
 checkInput ()
 Check input, strip slashes etc.
- Public Member Functions inherited from ilCustomInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor.
 setHtml ($a_html)
 Set Html.
 insert (&$a_tpl)
 Insert property html.
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem.
 getSubItems ()
 Get Subitems.
 checkSubItemsInput ()
 Check SubItems.
 getSubForm ()
 Get sub form html.
 getItemByPostVar ($a_post_var)
 Get item by post var.
- 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.
 hideSubForm ()
 Sub form hidden on init?
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders)
 getHiddenTitle ()
 Get hidden title.
 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)

Additional Inherited Members

- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type.
- Protected Attributes inherited from ilCustomInputGUI
 $html

Detailed Description

Class ilChatSmiliesCurrentSmileyFormElement simple form element that displays an image; does not add data to the containing form but may be initialized by default methods, such as valuesByArray.

Author
Jan Posselt jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

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

Member Function Documentation

ilChatSmiliesCurrentSmileyFormElement::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Reimplemented from ilCustomInputGUI.

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

{return true;}
ilChatSmiliesCurrentSmileyFormElement::getHtml ( )

Get Html.

Returns
string Html

Reimplemented from ilCustomInputGUI.

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

References $lng, and $tpl.

{
global $lng;
$tpl = new ilTemplate("tpl.chat_current_smiley_image.html", true, true, "Modules/Chat");
$tpl->setVariable("IMAGE_ALT", $lng->txt("chat_current_smiley_image"));
$tpl->setVariable("IMAGE_PATH", $this->value);
return $tpl->get();
}
ilChatSmiliesCurrentSmileyFormElement::getValue ( )

Get Value.

Returns
string Value

Definition at line 50 of file class.ilChatSmiliesCurrentSmileyFormElement.php.

{
return $this->value;
}
ilChatSmiliesCurrentSmileyFormElement::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Definition at line 60 of file class.ilChatSmiliesCurrentSmileyFormElement.php.

Referenced by setValueByArray().

{
$this->value = $a_value;
}

+ Here is the caller graph for this function:

ilChatSmiliesCurrentSmileyFormElement::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Reimplemented from ilCustomInputGUI.

Definition at line 70 of file class.ilChatSmiliesCurrentSmileyFormElement.php.

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

{
$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: