ILIAS
eassessment Revision 61809
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
ILIAS
Todo List
Deprecated List
Modules
Namespaces
Data Structures
Files
File List
classes
cron
include
Modules
BookingManager
Category
CategoryReference
Course
CourseReference
Exercise
classes
class.ilAssignmentsTableGUI.php
class.ilExAssignment.php
class.ilExAssignmentGUI.php
class.ilExcDeliveredFilesTableGUI.php
class.ilExerciseDataSet.php
class.ilExerciseException.php
class.ilExerciseExporter.php
class.ilExerciseHandlerGUI.php
class.ilExerciseImporter.php
class.ilExerciseMailNotification.php
class.ilExerciseMembers.php
class.ilExerciseMemberTableGUI.php
class.ilExerciseXMLParser.php
class.ilExerciseXMLWriter.php
class.ilExGradesTableGUI.php
class.ilExParticipantTableGUI.php
class.ilFileDataExercise.php
class.ilFSStorageExercise.php
class.ilObjExercise.php
class.ilObjExerciseAccess.php
class.ilObjExerciseGUI.php
class.ilObjExerciseListGUI.php
class.ilObjExerciseSubItemListGUI.php
class.ilPublicSubmissionsTableGUI.php
class.ilUniStuttgartDBCreator.php
ExternalFeed
File
Folder
Glossary
Group
HTMLLearningModule
ILinc
LearningModule
MediaCast
MediaPool
RemoteCourse
RootFolder
Scorm2004
ScormAicc
Session
Survey
SurveyQuestionPool
SystemFolder
Test
TestQuestionPool
WebResource
Services
setup
sso
webservice
calendar.php
confirmReg.php
error.php
feed.php
goto.php
ilias.php
index.php
login.php
logout.php
payment.php
privfeed.php
pwassist.php
register.php
repository.php
rootindex.php
sessioncheck.php
shib_login.php
shib_logout.php
start.php
studip_referrer.php
webdav.php
Globals
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilObjExerciseAccess.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once(
"classes/class.ilObjectAccess.php"
);
5
15
class
ilObjExerciseAccess
extends
ilObjectAccess
16
{
17
30
function
_getCommands
()
31
{
32
$commands = array
33
(
34
array(
"permission"
=>
"read"
,
"cmd"
=>
"showOverview"
,
"lang_var"
=>
"show"
,
35
"default"
=>
true
),
36
array(
"permission"
=>
"write"
,
"cmd"
=>
"edit"
,
"lang_var"
=>
"edit"
)
37
);
38
39
return
$commands;
40
}
41
42
function
_lookupRemainingWorkingTimeString
($a_obj_id)
43
{
44
global
$ilDB
,
$lng
;
45
46
$q =
"SELECT time_stamp FROM exc_data WHERE obj_id = "
.
47
$ilDB->quote($a_obj_id,
"integer"
);
48
$set = $ilDB->query($q);
49
$rec = $ilDB->fetchAssoc($set);
50
51
if
($rec[
"time_stamp"
] - time() <= 0)
52
{
53
$time_str = $lng->txt(
"exc_time_over_short"
);
54
}
55
else
56
{
57
$time_diff =
ilUtil::int2array
($rec[
"time_stamp"
] - time(), null);
58
$time_str =
ilUtil::timearray2string
($time_diff);
59
}
60
return
$time_str;
61
}
62
66
function
_checkGoto
($a_target)
67
{
68
global $ilAccess;
69
70
$t_arr = explode(
"_"
, $a_target);
71
72
if
($t_arr[0] !=
"exc"
|| ((
int
) $t_arr[1]) <= 0)
73
{
74
return
false
;
75
}
76
77
if
($ilAccess->checkAccess(
"read"
,
""
, $t_arr[1]))
78
{
79
return
true
;
80
}
81
return
false
;
82
}
83
}
84
85
?>
Modules
Exercise
classes
class.ilObjExerciseAccess.php
Generated on Mon Apr 25 2016 19:01:09 for ILIAS by
1.8.1.2 (using
Doxyfile
)