4 include_once(
"./Services/Component/classes/class.ilPluginConfigGUI.php");
5 include_once(
"class.ilCloudPluginConfig.php");
68 include_once(
"class.ilCloudPluginConfig.php");
90 $tpl->setContent($this->form->getHTML());
97 if (is_array($item[
"subelements"])) {
98 foreach ($item[
"subelements"] as $subkey => $subitem) {
99 $values[
$key .
"_" . $subkey] = $this->
object->getValue(
$key .
"_" . $subkey);
104 $this->form->setValuesByArray(
$values);
116 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
120 $field =
new $item[
"type"]($this->plugin_object->txt(
$key),
$key);
121 $field->setInfo($this->plugin_object->txt($item[
"info"]));
122 if (is_array($item[
"subelements"])) {
123 foreach ($item[
"subelements"] as $subkey => $subitem) {
124 $subfield =
new $subitem[
"type"]($this->plugin_object->txt(
$key .
"_" . $subkey),
$key .
"_" . $subkey);
125 $subfield->setInfo($this->plugin_object->txt($subitem[
"info"]));
126 $field->addSubItem($subfield);
130 $this->form->addItem($field);
133 $this->form->addCommandButton(
"save",
$lng->txt(
"save"));
135 $this->form->setTitle($this->plugin_object->txt(
"configuration"));
136 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
148 if ($this->form->checkInput()) {
152 $this->
object->setValue(
$key, $this->form->getInput(
$key));
153 if (is_array($item[
"subelements"])) {
154 foreach ($item[
"subelements"] as $subkey => $subitem) {
155 $this->
object->setValue(
$key .
"_" . $subkey, $this->form->getInput(
$key .
"_" . $subkey));
160 $ilCtrl->redirect($this,
"configure");
162 $this->form->setValuesByPost();
163 $tpl->setContent($this->form->getHtml());
performCommand($cmd)
Handles all commmands, default is "configure".
if(isset($_POST['submit'])) $form
Parent class for all plugin config gui classes.
Class ilCloudPluginConfig.
configure()
Configure screen.
getPluginObject()
Get plugin object.
Class ilCloudPluginConfigGUI.