3include_once(
"./Services/Object/classes/class.ilObjectGUI.php");
 
   23    public function __construct($a_data, $a_id, $a_call_by_reference = 
true, $a_prepare_output = 
true)
 
   27        $this->lng = 
$DIC->language();
 
   29        $this->ctrl = 
$DIC->ctrl();
 
   31        parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output);
 
   33        $this->lng->loadLanguageModule(
"blog");
 
   44        $next_class = $this->ctrl->getNextClass($this);
 
   45        $cmd = $this->ctrl->getCmd();
 
   49        switch ($next_class) {
 
   50            case 'ilpermissiongui':
 
   51                $this->tabs_gui->setTabActive(
'perm_settings');
 
   52                include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
 
   54                $this->ctrl->forwardCommand($perm_gui);
 
   58                if (!$cmd || $cmd == 
'view') {
 
   59                    $cmd = 
"editSettings";
 
   77            $this->tabs_gui->addTarget(
 
   79                $this->ctrl->getLinkTarget($this, 
"editSettings"),
 
   80                array(
"editSettings", 
"view")
 
   85            $this->tabs_gui->addTarget(
 
   87                $this->ctrl->getLinkTargetByClass(
'ilpermissiongui', 
"perm"),
 
  103        $this->tabs_gui->setTabActive(
'settings');
 
  114        $this->tpl->setContent($a_form->getHTML());
 
  128        if (
$form->checkInput()) {
 
  129            $banner = (bool) 
$form->getInput(
"banner");
 
  132            $blga_set->set(
"banner", $banner);
 
  133            $blga_set->set(
"banner_width", (
int) 
$form->getInput(
"width"));
 
  134            $blga_set->set(
"banner_height", (
int) 
$form->getInput(
"height"));
 
  135            $blga_set->set(
"mask", (
bool) 
$form->getInput(
"mask"));
 
  137            ilUtil::sendSuccess($this->lng->txt(
"settings_saved"), 
true);
 
  138            $ilCtrl->redirect($this, 
"editSettings");
 
  141        $form->setValuesByPost();
 
  152        $ilCtrl->redirect($this, 
"view");
 
  164        include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
 
  166        $form->setFormAction($this->ctrl->getFormAction($this));
 
  167        $form->setTitle($this->lng->txt(
'blog_settings'));
 
  170            $form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
 
  171            $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
 
  175        $banner->setInfo(
$lng->txt(
"blog_preview_banner_info"));
 
  176        $form->addItem($banner);
 
  179        $width->setRequired(
true);
 
  181        $banner->addSubItem($width);
 
  184        $height->setRequired(
true);
 
  186        $banner->addSubItem($height);
 
  189        $banner->setChecked($blga_set->get(
"banner", 
false));
 
  190        if ($blga_set->get(
"banner")) {
 
  191            $width->setValue($blga_set->get(
"banner_width"));
 
  192            $height->setValue($blga_set->get(
"banner_height"));
 
  194            $width->setValue(1370);
 
  195            $height->setValue(100);
 
  206        $this->ctrl->setParameter($gui, 
"ref_id", $gui->object->getRefId());
 
  207        $link = $this->ctrl->getLinkTarget($gui);
 
  208        $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.
if(isset($_POST['submit'])) $form