5include_once(
"./Services/Object/classes/class.ilObjectAccess.php");
 
   36            array(
"permission" => 
"read", 
"cmd" => 
"", 
"lang_var" => 
"show",
 
   38            array(
"permission" => 
"read", 
"cmd" => 
"exportHTML", 
"lang_var" => 
"export_html"),
 
   39            array(
"permission" => 
"write", 
"cmd" => 
"editLinks", 
"lang_var" => 
"edit_content"),
 
   40            array(
"permission" => 
"write", 
"cmd" => 
"settings", 
"lang_var" => 
"settings")
 
   53        $ilAccess = 
$DIC[
'ilAccess'];
 
   55        $t_arr = explode(
"_", $a_target);
 
   57        if ($t_arr[0] != 
"webr" || ((
int) $t_arr[1]) <= 0) {
 
   61        if ($ilAccess->checkAccess(
"read", 
"", $t_arr[1]) ||
 
   62            $ilAccess->checkAccess(
"visible", 
"", $t_arr[1])) {
 
   80    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
"")
 
   84        $rbacsystem = 
$DIC[
'rbacsystem'];
 
   87        if ($a_permission == 
'read') {
 
   88            if (!self::_getFirstLink($a_obj_id) && !$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id)) {
 
   93        return parent::_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id);
 
  110        if (isset(self::$item[$a_webr_id])) {
 
  111            return self::$item[$a_webr_id];
 
  113        $query = 
"SELECT * FROM webr_items " .
 
  114            "WHERE webr_id = " . 
$ilDB->quote($a_webr_id, 
'integer') . 
' ' .
 
  115            "AND active = " . 
$ilDB->quote(1, 
'integer') . 
' ';
 
  119            $item[
'title'] = $row->title;
 
  120            $item[
'description'] = $row->description;
 
  121            $item[
'target'] = $row->target;
 
  122            $item[
'active'] = (bool) $row->active;
 
  123            $item[
'disable_check'] = $row->disable_check;
 
  124            $item[
'create_date'] = $row->create_date;
 
  125            $item[
'last_update'] = $row->last_update;
 
  126            $item[
'last_check'] = $row->last_check;
 
  127            $item[
'valid'] = $row->valid;
 
  128            $item[
'link_id'] = $row->link_id;
 
  129            self::$item[$row->webr_id] = 
$item;
 
  147            "SELECT * FROM webr_items WHERE " .
 
  148                $ilDB->in(
"webr_id", $a_obj_ids, 
false, 
"integer") .
 
  149                " AND active = " . 
$ilDB->quote(1, 
'integer')
 
  151        foreach ($a_obj_ids as $id) {
 
  152            self::$item[$id] = array();
 
  155            $item[
'title'] = $row->title;
 
  156            $item[
'description'] = $row->description;
 
  157            $item[
'target'] = $row->target;
 
  158            $item[
'active'] = (bool) $row->active;
 
  159            $item[
'disable_check'] = $row->disable_check;
 
  160            $item[
'create_date'] = $row->create_date;
 
  161            $item[
'last_update'] = $row->last_update;
 
  162            $item[
'last_check'] = $row->last_check;
 
  163            $item[
'valid'] = $row->valid;
 
  164            $item[
'link_id'] = $row->link_id;
 
  165            self::$item[$row->webr_id] = 
$item;
 
  176        if (isset(self::$single_link[$a_obj_id])) {
 
  177            return self::$single_link[$a_obj_id];
 
  179        include_once 
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
 
An exception for terminatinating execution or to throw for unit testing.
static _isSingular($a_webr_id)
Check whether there is only one active link in the web resource.
Class ilObjLinkResourceAccess.
static _getFirstLink($a_webr_id)
Get first link item Check before with _isSingular() if there is more or less than one.
static _checkDirectLink($a_obj_id)
Check whether there is only one active link in the web resource.
static _preloadData($a_obj_ids, $a_ref_ids)
Preload data.
static _getCommands()
get commands
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAcce...
static _checkGoto($a_target)
check whether goto script will succeed
foreach($_POST as $key=> $value) $res