ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
6 include_once("./Services/Object/classes/class.ilObjectAccess.php");
7 
18 {
19 
32  public static function _getCommands()
33  {
34  $commands = array(
35  array("permission" => "write", "cmd" => "edit", "lang_var" => "settings")
36  );
37 
38  return $commands;
39  }
40 
41 
45  public static function _checkGoto($a_target)
46  {
47  global $DIC;
48 
49  $ilAccess = $DIC->access();
50 
51  // #14870 - used for redirect after copy
52 
53  $t_arr = explode("_", $a_target);
54 
55  if ($t_arr[0] != "feed" || ((int) $t_arr[1]) <= 0) {
56  return false;
57  }
58 
59  if ($ilAccess->checkAccess("read", "", $t_arr[1])) {
60  return true;
61  }
62  return false;
63  }
64 }
global $DIC
Definition: saml.php:7
Class ilObjExternalFeedAccess.
static _checkGoto($a_target)
check whether goto script will succeed
Class ilObjectAccess.