23 public static function handleCode($a_ref_id,$a_type,$a_code)
25 include_once
'./classes/class.ilLink.php';
34 $GLOBALS[
'ilLog']->write($e->getMessage());
51 protected static function useCode($a_code,$a_endnode)
56 foreach($tree->getPathId($a_endnode) as
$ref_id)
63 $obj->register($ilUser->getId());
76 $map =
"23456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ";
79 $max = strlen($map)-1;
82 $code .= $map[mt_rand(0, $max)];
94 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
95 include_once
'./Modules/Course/classes/class.ilObjCourse.php';