ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjContentPageAccess.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
12 public static function _getCommands()
13 {
14 $commands = [
15 [
16 'permission' => 'read',
17 'cmd' => self::UI_CMD_VIEW,
18 'lang_var' => 'show',
19 'default' => true
20 ],
21 [
22 'permission' => 'write',
23 'cmd' => 'edit',
24 'lang_var' => 'settings'
25 ],
26 ];
27
28 return $commands;
29 }
30
34 public static function _checkGoto($a_target)
35 {
36 $targetAttributes = explode('_', $a_target);
37
38 if (2 != count($targetAttributes) || $targetAttributes[0] != self::OBJ_TYPE || ((int) $targetAttributes[1]) <= 0) {
39 return false;
40 }
41
42 return parent::_checkGoto($a_target);
43 }
44
48 public static function getConditionOperators()
49 {
50 return [];
51 }
52
56 public static function checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
57 {
58 return false;
59 }
60}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjContentPageAccess.
static getConditionOperators()
Returns an array with valid operators for the specific object type.
static _getCommands()
get commandsthis method returns an array of all possible commands/permission combinationsexample: $co...
static checkCondition($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
check condition for a specific user and object
static _checkGoto($a_target)
check whether goto script will succeed
Class ilObjectAccess.
Interface for condition handling.
Interface ilContentPageObjectConstants.