35require_once (
'./Modules/ILinc/classes/class.ilnetucateXMLAPI.php');
 
   36require_once (
'./Modules/ILinc/classes/class.ilObjiLincUser.php');
 
   61                $this->
ilias =& $ilias;
 
   66                $this->lng->loadLanguageModule(
'ilinc');
 
   68                $this->usrf_ref_id =& $a_usrf_ref_id;
 
   70                $this->user =& $a_user_obj;
 
   77                global $rbacsystem, 
$ilErr;
 
   80                if($this->usrf_ref_id == 
USER_FOLDER_ID and !$rbacsystem->checkAccess(
'visible,read',$this->usrf_ref_id))
 
   82                        $this->
ilias->raiseError($this->lng->txt(
"msg_no_perm_modify_user"),$this->ilias->error_obj->MESSAGE);
 
   89                        if(!$rbacsystem->checkAccess(
'cat_administrate_users',$this->user->getTimeLimitOwner()))
 
   91                                $this->
ilias->raiseError($this->lng->txt(
"msg_no_perm_modify_user"),$this->ilias->error_obj->MESSAGE);
 
   95                $next_class = $this->ctrl->getNextClass($this);
 
  100                                $cmd = $this->ctrl->getCmd();
 
  117                if ($this->ilinc_user->id)
 
  119                        if (!
$data = $this->ilinc_user->find($this->ilinc_user->id))
 
  121                                $this->ilErr->raiseError($this->ilinc_user->getErrorMsg(),$this->ilErr->MESSAGE);
 
  124                        $this->ilinc_user->setVar(
'akuservalue1',
$data[
'users'][$this->ilinc_user->id][
'akuservalue1']);
 
  125                        $this->ilinc_user->setVar(
'akuservalue2',
$data[
'users'][$this->ilinc_user->id][
'akuservalue2']);
 
  128                if (!$this->ilinc_user->id)
 
  130                        $ilinc_id = $this->lng->txt(
"ilinc_no_account_yet");
 
  131                        $ilinc_login = $ilinc_id;
 
  132                        $ilinc_passwd = $ilinc_id;
 
  134                        $submit_button_title = $this->lng->txt(
"ilinc_add_user");
 
  138                        $ilinc_id = $this->ilinc_user->id;
 
  139                        $ilinc_login = $this->ilinc_user->login;
 
  140                        $ilinc_passwd = $this->ilinc_user->passwd;
 
  142                        $submit_button_title = $this->lng->txt(
"refresh");
 
  145                $this->tpl->addBlockFile(
"ADM_CONTENT", 
"adm_content", 
"tpl.icrs_usr_edit.html",
"Modules/ILinc");
 
  147                $this->tpl->setVariable(
"FORMACTION",$this->ctrl->getFormAction($this));
 
  148                $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt(
"ilinc_user_settings"));
 
  149                $this->tpl->setVariable(
"TXT_LOGIN_DATA", $this->lng->txt(
"login_data"));
 
  150                $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
 
  152                $this->tpl->setVariable(
"TXT_SUBMIT", $submit_button_title);
 
  153                $this->tpl->setVariable(
"CMD_SUBMIT", 
"save");
 
  155                $this->tpl->setVariable(
"TXT_ILINC_ID", $this->lng->txt(
"ilinc_user_id"));
 
  156                $this->tpl->setVariable(
"ILINC_ID", $ilinc_id);
 
  157                $this->tpl->setVariable(
"TXT_ILINC_LOGIN", $this->lng->txt(
"login"));
 
  158                $this->tpl->setVariable(
"ILINC_LOGIN", $ilinc_login);
 
  164                $this->tpl->setVariable(
"TXT_ILINC_AKUSERVALUES", $this->lng->txt(
"ilinc_akuservalues"));
 
  165                $this->tpl->setVariable(
"TXT_ILINC_AKUSERVALUES_DESC", $this->lng->txt(
"ilinc_akuservalues_desc"));
 
  166                $this->tpl->setVariable(
"TXT_ILINC_AKUSERVALUE1", $this->lng->txt(
"ilinc_akuservalue1"));
 
  167                $this->tpl->setVariable(
"ILINC_AKUSERVALUE1", $this->ilinc_user->akuservalue1);
 
  168                $this->tpl->setVariable(
"TXT_ILINC_AKUSERVALUE2", $this->lng->txt(
"ilinc_akuservalue2"));
 
  169                $this->tpl->setVariable(
"ILINC_AKUSERVALUE2", $this->ilinc_user->akuservalue2);
 
  178                if(strtolower(
$_GET[
"baseClass"]) == 
'iladministrationgui')
 
  180                        $this->ctrl->redirectByClass(
"ilobjusergui", 
"view");
 
  184                        $this->ctrl->redirectByClass(
'ilobjcategorygui',
'listUsers');
 
  190                if (!$this->ilinc_user->id)
 
  192                        $this->ilinc_user->setVar(
'akuservalue1',
$_POST[
'Fobject'][
'ilinc_akuservalue1']);
 
  193                        $this->ilinc_user->setVar(
'akuservalue2',
$_POST[
'Fobject'][
'ilinc_akuservalue2']);
 
  195                        if (!$this->ilinc_user->add())
 
  197                                $this->ilErr->raiseError($this->ilinc_user->getErrorMsg(),$this->ilErr->MESSAGE);
 
  200                        $info_message = $this->lng->txt(
"ilinc_user_added");
 
  204                        $this->ilinc_user->setVar(
'akuservalue1',
$_POST[
'Fobject'][
'ilinc_akuservalue1']);
 
  205                        $this->ilinc_user->setVar(
'akuservalue2',
$_POST[
'Fobject'][
'ilinc_akuservalue2']);
 
  207                        if (!$this->ilinc_user->edit())
 
  209                                $this->ilErr->raiseError($this->ilinc_user->getErrorMsg(),$this->ilErr->MESSAGE);
 
  212                        $info_message = $this->lng->txt(
"ilinc_akuservalues_refreshed");
 
  217                $this->ctrl->redirectByClass(
"ilobjilincusergui", 
"view");
 
  226                $perm = ($a_cmd == 
'perm') ? 
true : 
false;
 
  227                $info = ($a_cmd == 
'info') ? 
true : 
false;
 
  228                $owner = ($a_cmd == 
'owner') ? 
true : 
false;
 
  230                $ilTabs->addSubTabTarget(
"permission_settings", $this->ctrl->getLinkTarget($this, 
"perm"),
 
  232                $ilTabs->addSubTabTarget(
"info_status_info", $this->ctrl->getLinkTarget($this, 
"info"),
 
  234                $ilTabs->addSubTabTarget(
"owner", $this->ctrl->getLinkTarget($this, 
"owner"),
 
const PEAR_ERROR_CALLBACK
const USER_FOLDER_ID
Class ilObjUserFolder.
Error Handling & global info handling uses PEAR error class.
Class ilObjiLincUserGUI iLinc related user settings.
ilObjiLincUserGUI(&$a_user_obj, &$a_usrf_ref_id)
Constructor @access public.
Class ilObjiLincUser iLinc related user settings.
static clear($a_var)
Unset a value.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
redirection script todo: (a better solution should control the processing via a xml file)