23 public static function handleCode($a_ref_id,$a_type,$a_code)
26 include_once
'./Services/Link/classes/class.ilLink.php';
27 $lng->loadLanguageModule($a_type);
32 ilUtil::sendSuccess(sprintf($lng->txt($a_type.
"_admission_link_success_registration"),$title),
true);
46 ilUtil::sendFailure($lng->txt($a_type.
"_admission_link_failure_registration_period"),
true);
53 $GLOBALS[
'ilLog']->write($e->getCode().
': '.$e->getMessage());
55 $parent_id = $tree->getParentId($a_ref_id);
72 protected static function useCode($a_code,$a_endnode)
77 foreach($tree->getPathId($a_endnode) as
$ref_id)
83 $obj->register($ilUser->getId());
96 $map =
"23456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";
99 $max = strlen($map)-1;
102 $code .= $map[mt_rand(0, $max)];
114 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
115 include_once
'./Modules/Course/classes/class.ilObjCourse.php';