ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjExternalFeedAccess.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
6include_once("./Services/Object/classes/class.ilObjectAccess.php");
7
18{
19
32 function _getCommands()
33 {
34 $commands = array
35 (
36 array("permission" => "write", "cmd" => "edit", "lang_var" => "settings")
37 );
38
39 return $commands;
40 }
41
42
46 function _checkGoto($a_target)
47 {
48 global $ilAccess;
49
50 // #14870 - used for redirect after copy
51
52 $t_arr = explode("_", $a_target);
53
54 if ($t_arr[0] != "feed" || ((int) $t_arr[1]) <= 0)
55 {
56 return false;
57 }
58
59 if ($ilAccess->checkAccess("read", "", $t_arr[1]))
60 {
61 return true;
62 }
63 return false;
64 }
65}
66
67?>
Class ilObjExternalFeedAccess.
_checkGoto($a_target)
check whether goto script will succeed
Class ilObjectAccess.