ILIAS  release_7 Revision v7.30-3-g800a261c036
ilObjContentPageAccess Class Reference

Class ilObjContentPageAccess. More...

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

Static Public Member Functions

static _getCommands ()
 get commandsthis method returns an array of all possible commands/permission combinationsexample: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), ); More...
 
static _checkGoto ($a_target)
 check whether goto script will succeed More...
 
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...
 
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 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...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
- Data Fields inherited from ilContentPageObjectConstants
const OBJ_TYPE = 'copa'
 
const HTTP_PARAM_PAGE_EDITOR_STYLE_CONTEXT = 'page_editor_style'
 
const UI_CMD_VIEW = 'view'
 
const UI_CMD_EDIT = 'edit'
 
const UI_CMD_UPDATE = 'update'
 
const UI_CMD_COPAGE_EDIT = 'edit'
 
const UI_CMD_COPAGE_DOWNLOAD_FILE = 'downloadFile'
 
const UI_CMD_COPAGE_DISPLAY_FULLSCREEN = 'displayMediaFullscreen'
 
const UI_CMD_COPAGE_DISPLAY_MEDIA = 'displayMedia'
 
const UI_CMD_COPAGE_DOWNLOAD_PARAGRAPH = 'download_paragraph'
 
const UI_CMD_STYLES_EDIT = 'editStyleProperties'
 
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_I18N = 'i18n'
 
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

check whether goto script will succeed

Reimplemented from ilObjectAccess.

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

get commandsthis method returns an array of all possible commands/permission combinationsexample: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );

Reimplemented from ilObjectAccess.

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

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 }
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.

References true, and ilContentPageObjectConstants\UI_CMD_VIEW.

Referenced by ilObjContentPageListGUI\init().

+ 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: