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)
28 $this->lng->loadLanguageModule(
"prtf");
39 global $rbacsystem,
$ilErr,$ilAccess;
41 $next_class = $this->ctrl->getNextClass($this);
42 $cmd = $this->ctrl->getCmd();
53 case 'ilpermissiongui':
54 $this->tabs_gui->setTabActive(
'perm_settings');
55 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
57 $ret =& $this->ctrl->forwardCommand($perm_gui);
63 $cmd =
"editSettings";
80 global $rbacsystem, $ilAccess;
82 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
84 $this->tabs_gui->addTarget(
"settings",
85 $this->ctrl->getLinkTarget($this,
"editSettings"),
86 array(
"editSettings",
"view"));
89 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
91 $this->tabs_gui->addTarget(
"perm_settings",
92 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"),
93 array(),
'ilpermissiongui');
105 $this->tabs_gui->setTabActive(
'settings');
107 if ($ilSetting->get(
'user_portfolios'))
120 $this->tpl->setContent($a_form->getHTML());
134 if($form->checkInput())
136 $banner = (bool)$form->getInput(
"banner");
139 $prfa_set->set(
"banner", $banner);
140 $prfa_set->set(
"banner_width", (
int)$form->getInput(
"width"));
141 $prfa_set->set(
"banner_height", (
int)$form->getInput(
"height"));
142 $prfa_set->set(
"mask", (
bool)$form->getInput(
"mask"));
145 $ilCtrl->redirect($this,
"editSettings");
148 $form->setValuesByPost();
159 $ilCtrl->redirect($this,
"view");
171 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
173 $form->setFormAction($this->ctrl->getFormAction($this));
174 $form->setTitle($this->lng->txt(
'prtf_settings'));
175 $form->addCommandButton(
'saveSettings',$this->lng->txt(
'save'));
176 $form->addCommandButton(
'cancel',$this->lng->txt(
'cancel'));
179 $banner->
setInfo($lng->txt(
"prtf_preview_banner_info"));
180 $form->addItem($banner);
182 $width =
new ilNumberInputGUI($lng->txt(
"prtf_preview_banner_width"),
"width");
185 $banner->addSubItem($width);
187 $height =
new ilNumberInputGUI($lng->txt(
"prtf_preview_banner_height"),
"height");
190 $banner->addSubItem($height);
193 $banner->setChecked($prfa_set->get(
"banner"));
194 if($prfa_set->get(
"banner"))
196 $width->setValue($prfa_set->get(
"banner_width"));
197 $height->setValue($prfa_set->get(
"banner_height"));
201 $width->setValue(880);
202 $height->setValue(100);
206 $mask->
setInfo($lng->txt(
"prtf_allow_html_info"));
207 $mask->setChecked($prfa_set->get(
"mask",
false));
208 $form->addItem($mask);