3 include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
23 public function __construct($a_data, $a_id, $a_call_by_reference =
true, $a_prepare_output =
true)
26 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
28 $this->lng->loadLanguageModule(
"blog");
39 $next_class = $this->ctrl->getNextClass($this);
40 $cmd = $this->ctrl->getCmd();
46 case 'ilpermissiongui':
47 $this->tabs_gui->setTabActive(
'perm_settings');
48 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
50 $this->ctrl->forwardCommand($perm_gui);
56 $cmd =
"editSettings";
75 $this->tabs_gui->addTarget(
"settings",
76 $this->ctrl->getLinkTarget($this,
"editSettings"),
77 array(
"editSettings",
"view"));
82 $this->tabs_gui->addTarget(
"perm_settings",
83 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
84 array(),
'ilpermissiongui');
96 $this->tabs_gui->setTabActive(
'settings');
98 if (!$ilSetting->get(
"disable_wsp_blogs"))
111 $this->tpl->setContent($a_form->getHTML());
125 if($form->checkInput())
127 $banner = (bool)$form->getInput(
"banner");
130 $blga_set->set(
"banner", $banner);
131 $blga_set->set(
"banner_width", (
int)$form->getInput(
"width"));
132 $blga_set->set(
"banner_height", (
int)$form->getInput(
"height"));
133 $blga_set->set(
"mask", (
bool)$form->getInput(
"mask"));
136 $ilCtrl->redirect($this,
"editSettings");
139 $form->setValuesByPost();
150 $ilCtrl->redirect($this,
"view");
162 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
164 $form->setFormAction($this->ctrl->getFormAction($this));
165 $form->setTitle($this->lng->txt(
'blog_settings'));
169 $form->addCommandButton(
'saveSettings',$this->lng->txt(
'save'));
170 $form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
174 $banner->
setInfo($lng->txt(
"blog_preview_banner_info"));
175 $form->addItem($banner);
177 $width =
new ilNumberInputGUI($lng->txt(
"blog_preview_banner_width"),
"width");
180 $banner->addSubItem($width);
182 $height =
new ilNumberInputGUI($lng->txt(
"blog_preview_banner_height"),
"height");
185 $banner->addSubItem($height);
188 $banner->setChecked($blga_set->get(
"banner",
false));
189 if($blga_set->get(
"banner"))
191 $width->setValue($blga_set->get(
"banner_width"));
192 $height->setValue($blga_set->get(
"banner_height"));
196 $width->setValue(1370);
197 $height->setValue(100);
201 $mask->setInfo($lng->txt(
"blog_allow_html_info"));
202 $mask->setChecked($blga_set->get(
"mask",
false));
203 $form->addItem(
$mask);
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Blog Administration Settings.
executeCommand()
Execute command.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
prepareOutput($a_show_subobjects=true)
prepare output
Class ilObjectGUI Basic methods of all Output classes.
saveSettings()
Save settings.
Create styles array
The data for the language used.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
initFormSettings()
Init settings property form.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
editSettings($a_form=null)
Edit settings.