ILIAS  release_8 Revision v8.24
class.ilChatroomSmiliesCurrentSmileyFormElement.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 private string $value = '';
32
33 public function getHtml(): string
34 {
35 global $DIC;
36
37 $tpl = new ilTemplate("tpl.chatroom_current_smiley_image.html", true, true, "Modules/Chatroom");
38 $tpl->setVariable("IMAGE_ALT", $DIC->language()->txt("chatroom_current_smiley_image"));
39 $tpl->setVariable("IMAGE_PATH", $this->value);
40
41 return $tpl->get();
42 }
43
44 public function getValue(): string
45 {
46 return $this->value;
47 }
48
49 public function setValue(string $a_value): void
50 {
51 $this->value = $a_value;
52 }
53
54 public function checkInput(): bool
55 {
56 return true;
57 }
58}
Class ilChatroomSmiliesCurrentSmileyFormElement Simple form element that displays an image; does not ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
special template class to simplify handling of ITX/PEAR
global $DIC
Definition: feed.php:28
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41