ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjContentPageAccess Class Reference

Class ilObjContentPageAccess. More...

+ Inheritance diagram for ilObjContentPageAccess:
+ Collaboration diagram for ilObjContentPageAccess:

Static Public Member Functions

static _getCommands ()
 
static _checkGoto ($a_target)
 
static getConditionOperators ()
 Returns an array with valid operators for the specific object type. More...
 
static checkCondition ($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition for a specific user and object
Parameters
type$a_trigger_obj_id
type$a_operator
type$a_value
type$a_usr_id
More...
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto ($a_target)
 check whether goto script will succeed More...
 
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _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::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
More...
 
- Data Fields inherited from ilContentPageObjectConstants
const OBJ_TYPE = 'copa'
 
const UI_CMD_VIEW = 'view'
 
const UI_CMD_EDIT = 'edit'
 
const UI_CMD_UPDATE = 'update'
 
const UI_CMD_COPAGE_DOWNLOAD_FILE = 'downloadFile'
 
const UI_CMD_COPAGE_DISPLAY_FULLSCREEN = 'displayMediaFullscreen'
 
const UI_CMD_COPAGE_DOWNLOAD_PARAGRAPH = 'download_paragraph'
 
const UI_TAB_ID_CONTENT = 'content'
 
const UI_TAB_ID_INFO = 'info_short'
 
const UI_TAB_ID_SETTINGS = 'settings'
 
const UI_TAB_ID_ICON = 'icon'
 
const UI_TAB_ID_STYLE = 'style'
 
const UI_TAB_ID_LP = 'learning_progress'
 
const UI_TAB_ID_EXPORT = 'export'
 
const UI_TAB_ID_PERMISSIONS = 'perm_settings'
 

Detailed Description

Class ilObjContentPageAccess.

Definition at line 7 of file class.ilObjContentPageAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjContentPageAccess::_checkGoto (   $a_target)
static

Definition at line 34 of file class.ilObjContentPageAccess.php.

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  }

◆ _getCommands()

static ilObjContentPageAccess::_getCommands ( )
static

Definition at line 12 of file class.ilObjContentPageAccess.php.

Referenced by ilObjContentPageListGUI\init().

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  }
+ Here is the caller graph for this function:

◆ checkCondition()

static ilObjContentPageAccess::checkCondition (   $a_trigger_obj_id,
  $a_operator,
  $a_value,
  $a_usr_id 
)
static

check condition for a specific user and object

Parameters
type$a_trigger_obj_id
type$a_operator
type$a_value
type$a_usr_id

Implements ilConditionHandling.

Definition at line 56 of file class.ilObjContentPageAccess.php.

57  {
58  return false;
59  }

◆ getConditionOperators()

static ilObjContentPageAccess::getConditionOperators ( )
static

Returns an array with valid operators for the specific object type.

Implements ilConditionHandling.

Definition at line 48 of file class.ilObjContentPageAccess.php.

49  {
50  return [];
51  }

The documentation for this class was generated from the following file: