ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilObjBlogAccess.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once(
"./Services/Object/classes/class.ilObjectAccess.php"
);
6
14
class
ilObjBlogAccess
extends
ilObjectAccess
15
{
28
function
_getCommands
()
29
{
30
$commands = array
31
(
32
array(
"permission"
=>
"read"
,
"cmd"
=>
"preview"
,
"lang_var"
=>
"show"
,
"default"
=>
true
),
33
array(
"permission"
=>
"write"
,
"cmd"
=>
"render"
,
"lang_var"
=>
"edit"
),
34
array(
"permission"
=>
"contribute"
,
"cmd"
=>
"render"
,
"lang_var"
=>
"edit"
),
35
array(
"permission"
=>
"write"
,
"cmd"
=>
"export"
,
"lang_var"
=>
"export_html"
)
36
);
37
38
return
$commands;
39
}
40
44
function
_checkGoto
($a_target)
45
{
46
global $ilAccess;
47
48
$t_arr = explode(
"_"
, $a_target);
49
50
if
(substr($a_target, -3) ==
"wsp"
)
51
{
52
include_once
"Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php"
;
53
return
ilSharedResourceGUI::hasAccess
($t_arr[1]);
54
}
55
56
if
($t_arr[0] !=
"blog"
|| ((
int
) $t_arr[1]) <= 0)
57
{
58
return
false
;
59
}
60
61
// #12648
62
if
($ilAccess->checkAccess(
"read"
,
""
, $t_arr[1]))
63
{
64
return
true
;
65
}
66
return
false
;
67
}
68
}
69
70
?>
Modules
Blog
classes
class.ilObjBlogAccess.php
Generated on Wed Apr 27 2016 20:01:09 for ILIAS by
1.8.1.2 (using
Doxyfile
)