ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjChatroomAdminAccess.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Object/classes/class.ilObjectAccess.php';
5
14{
18 public static function _getCommands()
19 {
20 $commands = array();
21 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "enter", "default" => true);
22 $commands[] = array("permission" => "write", "cmd" => "edit", "lang_var" => "edit");
23 $commands[] = array("permission" => "write", "cmd" => "versions", "lang_var" => "versions");
24
25 return $commands;
26 }
27
31 public static function _checkGoto($a_target)
32 {
33 global $ilAccess;
34
35 $t_arr = explode("_", $a_target);
36
37 if($t_arr[0] != "chtr" || ((int)$t_arr[1]) <= 0)
38 {
39 return false;
40 }
41
42 if($ilAccess->checkAccess("visible", "", $t_arr[1]))
43 {
44 return true;
45 }
46
47 return false;
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjChatroomAdminAccess Access class for chatroom objects.
static _getCommands()
{get commandsthis method returns an array of all possible commands/permission combinationsexample: ...
static _checkGoto($a_target)
{check whether goto script will succeed}
Class ilObjectAccess.