20    public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   24        $this->lng = 
$DIC->language();
 
   26        $this->ctrl = 
$DIC->ctrl();
 
   30        $this->lng->loadLanguageModule(
"blog");
 
   41        $next_class = $this->ctrl->getNextClass($this);
 
   42        $cmd = $this->ctrl->getCmd();
 
   46        switch ($next_class) {
 
   47            case 'ilpermissiongui':
 
   48                $this->tabs_gui->setTabActive(
'perm_settings');
 
   50                $this->ctrl->forwardCommand($perm_gui);
 
   54                if (!$cmd || $cmd == 
'view') {
 
   55                    $cmd = 
"editSettings";
 
   73            $this->tabs_gui->addTarget(
 
   75                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   76                array(
"editSettings", 
"view")
 
   81            $this->tabs_gui->addTarget(
 
   83                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"),
 
   99        $this->tabs_gui->setTabActive(
'settings');
 
  110        $this->tpl->setContent($a_form->getHTML());
 
  124        if ($form->checkInput()) {
 
  125            $banner = (bool) $form->getInput(
"banner");
 
  128            $blga_set->set(
"banner", $banner);
 
  129            $blga_set->set(
"banner_width", (
int) $form->getInput(
"width"));
 
  130            $blga_set->set(
"banner_height", (
int) $form->getInput(
"height"));
 
  131            $blga_set->set(
"mask", (
bool) $form->getInput(
"mask"));
 
  133            ilUtil::sendSuccess($this->lng->txt(
"settings_saved"), 
true);
 
  134            $ilCtrl->redirect($this, 
"editSettings");
 
  137        $form->setValuesByPost();
 
  148        $ilCtrl->redirect($this, 
"view");
 
  161        $form->setFormAction($this->ctrl->getFormAction($this));
 
  162        $form->setTitle($this->lng->txt(
'blog_settings'));
 
  165            $form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  166            $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
  170        $banner->setInfo(
$lng->txt(
"blog_preview_banner_info"));
 
  171        $form->addItem($banner);
 
  174        $width->setRequired(
true);
 
  176        $banner->addSubItem($width);
 
  179        $height->setRequired(
true);
 
  181        $banner->addSubItem($height);
 
  184        $banner->setChecked($blga_set->get(
"banner", 
false));
 
  185        if ($blga_set->get(
"banner")) {
 
  186            $width->setValue($blga_set->get(
"banner_width"));
 
  187            $height->setValue($blga_set->get(
"banner_height"));
 
  189            $width->setValue(1370);
 
  190            $height->setValue(100);
 
  201        $this->ctrl->setParameter($gui, 
"ref_id", $gui->object->getRefId());
 
  202        $link = $this->ctrl->getLinkTarget($gui);
 
  203        $ne->setValue(
"<a href='$link'> >> " . $this->lng->txt(
"settings") . 
"</a>");
 
An exception for terminatinating execution or to throw for unit testing.
This class represents a non editable value in a property form.
Blog Administration Settings.
__construct($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
Contructor.
editSettings($a_form=null)
Edit settings.
executeCommand()
Execute command.
saveSettings()
Save settings.
initFormSettings()
Init settings property form.
Class ilObjectGUI Basic methods of all Output classes.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
prepareOutput($a_show_subobjects=true)
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc