ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
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
?>
ilObjBlogAccess
Class ilObjBlogAccess.
Definition:
class.ilObjBlogAccess.php:14
ilObjBlogAccess\_getCommands
_getCommands()
get commands
Definition:
class.ilObjBlogAccess.php:28
ilSharedResourceGUI\hasAccess
static hasAccess($a_node_id, $a_is_portfolio=false)
Definition:
class.ilSharedResourceGUI.php:154
ilObjectAccess
Class ilObjectAccess.
Definition:
class.ilObjectAccess.php:16
ilObjBlogAccess\_checkGoto
_checkGoto($a_target)
check whether goto script will succeed
Definition:
class.ilObjBlogAccess.php:44
Modules
Blog
classes
class.ilObjBlogAccess.php
Generated on Mon Dec 21 2020 19:00:59 for ILIAS by
1.8.13 (using
Doxyfile
)