ILIAS  release_4-4 Revision
ilDidacticTemplateLocalPolicyAction Class Reference

Description of class. More...

+ Inheritance diagram for ilDidacticTemplateLocalPolicyAction:
+ Collaboration diagram for ilDidacticTemplateLocalPolicyAction:

Public Member Functions

 __construct ($action_id=0)
 Constructor. More...
 
 addFilterPattern (ilDidacticTemplateFilterPattern $pattern)
 Add filter. More...
 
 setFilterPatterns (Array $patterns)
 Set filter patterns. More...
 
 getFilterPattern ()
 Get filter pattern. More...
 
 setFilterType ($a_type)
 Set filter type. More...
 
 getFilterType ()
 Get filter type. More...
 
 setRoleTemplateType ($a_tpl_type)
 Set Role template type. More...
 
 getRoleTemplateType ()
 Get role template type. More...
 
 setRoleTemplateId ($a_id)
 Set role template id. More...
 
 getRoleTemplateId ()
 Get role template id. More...
 
 save ()
 Save action. More...
 
 delete ()
 delete action filter ilDB $ilDB More...
 
 apply ()
 Apply action. More...
 
 revert ()
 Revert action. More...
 
 getType ()
 Get action type. More...
 
 toXml (ilXmlWriter $writer)
 Export to xml. More...
 
 __clone ()
 clone method More...
 
 read ()
 
- Public Member Functions inherited from ilDidacticTemplateAction
 __construct ($action_id=0)
 Constructor. More...
 
 getActionId ()
 Get action id. More...
 
 setActionId ($a_action_id)
 Set action id. More...
 
 setType ($a_type_id)
 Set type id. More...
 
 setTemplateId ($a_id)
 Set template id. More...
 
 getTemplateId ()
 Get template id. More...
 
 setRefId ($a_ref_id)
 Set ref id of target object. More...
 
 getRefId ()
 Get ref id of target object. More...
 
 save ()
 write action to db overwrite for filling additional db fields More...
 
 delete ()
 Delete didactic template action overwrite for filling additional db fields. More...
 
 read ()
 ilDB $ilDB More...
 
 getType ()
 Get type of template. More...
 
 apply ()
 Apply action. More...
 
 revert ()
 Implement everthing that is necessary to revert a didactic template. More...
 
 __clone ()
 Clone method. More...
 
 toXml (ilXmlWriter $writer)
 Write xml for export. More...
 

Data Fields

const TPL_ACTION_OVERWRITE = 1
 
const TPL_ACTION_INTERSECT = 2
 
const TPL_ACTION_ADD = 3
 
const TPL_ACTION_SUBTRACT = 4
 
const TPL_ACTION_UNION = 5
 
- Data Fields inherited from ilDidacticTemplateAction
const TYPE_LOCAL_POLICY = 1
 
const TYPE_LOCAL_ROLE = 2
 
const TYPE_BLOCK_ROLE = 3
 
const FILTER_SOURCE_TITLE = 1
 
const FILTER_SOURCE_OBJ_ID = 2
 
const PATTERN_PARENT_TYPE = 'action'
 

Protected Member Functions

 createLocalPolicy (ilObject $source, $role)
 Create local policy. More...
 
 revertLocalPolicy (ilObject $source, $role)
 
- Protected Member Functions inherited from ilDidacticTemplateAction
 initSourceObject ()
 Init the source object. More...
 
 filterRoles (ilObject $source)
 Filter roles. More...
 

Private Attributes

 $pattern = array()
 
 $filter_type = self::FILTER_SOURCE_TITLE
 
 $role_template_type = self::TPL_ACTION_OVERWRITE
 
 $role_template_id = 0
 

Detailed Description

Description of class.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Constructor & Destructor Documentation

◆ __construct()

ilDidacticTemplateLocalPolicyAction::__construct (   $action_id = 0)

Constructor.

Parameters
int$action_id

Definition at line 31 of file class.ilDidacticTemplateLocalPolicyAction.php.

References ilDidacticTemplateAction\$action_id.

32  {
33  parent::__construct($action_id);
34  }

Member Function Documentation

◆ __clone()

ilDidacticTemplateLocalPolicyAction::__clone ( )

clone method

Definition at line 330 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern, getFilterPattern(), and setFilterPatterns().

331  {
332  parent::__clone();
333 
334  // Clone patterns
335  $cloned = array();
336  foreach($this->getFilterPattern() as $pattern)
337  {
338  $clones[] = clone $pattern;
339  }
340  $this->setFilterPatterns($clones);
341  }
+ Here is the call graph for this function:

◆ addFilterPattern()

ilDidacticTemplateLocalPolicyAction::addFilterPattern ( ilDidacticTemplateFilterPattern  $pattern)

Add filter.

Parameters
ilDidacticTemplateFilterPatter$pattern

Definition at line 40 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern.

Referenced by read().

+ Here is the caller graph for this function:

◆ apply()

ilDidacticTemplateLocalPolicyAction::apply ( )

Apply action.

Definition at line 171 of file class.ilDidacticTemplateLocalPolicyAction.php.

References createLocalPolicy(), ilDidacticTemplateAction\filterRoles(), and ilDidacticTemplateAction\initSourceObject().

172  {
173  global $rbacreview;
174 
175  $source = $this->initSourceObject();
176  // Create a role folder for the new local policies
177 
178  $roles = $this->filterRoles($source);
179 
180  // Create role folder if there is any local role left
181  $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
182 
183  if(count($roles) and !$rolf)
184  {
185  $rolf = $source->createRoleFolder();
186  $rolf = $rolf->getRefId();
187  }
188  // Create local policy for filtered roles
189  foreach($roles as $role_id => $role)
190  {
191  // No local policies for protected roles of higher context
192  if($role['protected'] and $role['parent'] != $rolf)
193  {
194  continue;
195  }
196  $this->createLocalPolicy($source,$role);
197  }
198  return true;
199  }
filterRoles(ilObject $source)
Filter roles.
createLocalPolicy(ilObject $source, $role)
Create local policy.
initSourceObject()
Init the source object.
+ Here is the call graph for this function:

◆ createLocalPolicy()

ilDidacticTemplateLocalPolicyAction::createLocalPolicy ( ilObject  $source,
  $role 
)
protected

Create local policy.

Parameters
ilObject$source
array$role
Returns
bool

Definition at line 377 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $GLOBALS, ilObject\getRefId(), getRoleTemplateId(), getRoleTemplateType(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.

Referenced by apply().

378  {
379  global $rbacreview, $rbacadmin;
380 
381  $GLOBALS['ilLog']->write(__METHOD__.': Using role: '.print_r($role,true));
382 
383  $role_folder_id = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
384 
385  $GLOBALS['ilLog']->write(__METHOD__.': Role folder id: '.$role_folder_id);
386 
387  // Add local policy
388 
389  if(!$rbacreview->isRoleAssignedToFolder($role['obj_id'],$role_folder_id))
390  {
391  $rbacadmin->assignRoleToFolder($role['obj_id'],$role_folder_id,'n');
392  }
393 
394  switch($this->getRoleTemplateType())
395  {
396  case self::TPL_ACTION_UNION:
397 
398  $GLOBALS['ilLog']->write(__METHOD__.': Using ilRbacAdmin::copyRolePermissionUnion()');
399  $rbacadmin->copyRolePermissionUnion(
400  $role['obj_id'],
401  $role['parent'],
402  $this->getRoleTemplateId(),
403  ROLE_FOLDER_ID,
404  $role['obj_id'],
405  $role_folder_id
406  );
407  break;
408 
409  case self::TPL_ACTION_OVERWRITE:
410 
411  $GLOBALS['ilLog']->write(__METHOD__.': Using ilRbacAdmin::copyRoleTemplatePermissions()');
412  $rbacadmin->copyRoleTemplatePermissions(
413  $this->getRoleTemplateId(),
414  ROLE_FOLDER_ID,
415  $role_folder_id,
416  $role['obj_id'],
417  true
418  );
419  break;
420 
421  case self::TPL_ACTION_INTERSECT:
422 
423  $GLOBALS['ilLog']->write(__METHOD__.': Using ilRbacAdmin::copyRolePermissionIntersection()');
424  $rbacadmin->copyRolePermissionIntersection(
425  $role['obj_id'],
426  $role['parent'],
427  $this->getRoleTemplateId(),
428  ROLE_FOLDER_ID,
429  $role_folder_id,
430  $role['obj_id']
431  );
432  break;
433 
434  }
435 
436  // Change existing object
437  include_once './Services/AccessControl/classes/class.ilObjRole.php';
438  $role_obj = new ilObjRole($role['obj_id']);
439  $role_obj->changeExistingObjects(
440  $source->getRefId(),
442  array('all')
443  );
444 
445  return true;
446  }
Class ilObjRole.
const MODE_PROTECTED_DELETE_LOCAL_POLICIES
$GLOBALS['ct_recipient']
const MODE_UNPROTECTED_DELETE_LOCAL_POLICIES
getRefId()
get reference id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ delete()

ilDidacticTemplateLocalPolicyAction::delete ( )

delete action filter ilDB $ilDB

Returns
bool

Definition at line 148 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern, $query, ilDidacticTemplateAction\getActionId(), and getFilterPattern().

149  {
150  global $ilDB;
151 
152  parent::delete();
153 
154  $query = 'DELETE FROM didactic_tpl_alp '.
155  'WHERE action_id = '.$ilDB->quote($this->getActionId(),'integer');
156  $ilDB->manipulate($query);
157 
158  foreach($this->getFilterPattern() as $pattern)
159  {
160  $pattern->delete();
161  }
162  return true;
163  }
+ Here is the call graph for this function:

◆ getFilterPattern()

ilDidacticTemplateLocalPolicyAction::getFilterPattern ( )

Get filter pattern.

Returns
array

Definition at line 58 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern.

Referenced by __clone(), delete(), save(), and toXml().

+ Here is the caller graph for this function:

◆ getFilterType()

ilDidacticTemplateLocalPolicyAction::getFilterType ( )

Get filter type.

Returns
int

Definition at line 76 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $filter_type.

Referenced by save(), and toXml().

+ Here is the caller graph for this function:

◆ getRoleTemplateId()

ilDidacticTemplateLocalPolicyAction::getRoleTemplateId ( )

Get role template id.

Returns
int

Definition at line 111 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $role_template_id.

Referenced by createLocalPolicy(), save(), and toXml().

+ Here is the caller graph for this function:

◆ getRoleTemplateType()

ilDidacticTemplateLocalPolicyAction::getRoleTemplateType ( )

Get role template type.

Definition at line 93 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $role_template_type.

Referenced by createLocalPolicy(), save(), and toXml().

+ Here is the caller graph for this function:

◆ getType()

ilDidacticTemplateLocalPolicyAction::getType ( )

Get action type.

Returns
int

Definition at line 249 of file class.ilDidacticTemplateLocalPolicyAction.php.

250  {
251  return self::TYPE_LOCAL_POLICY;
252  }

◆ read()

ilDidacticTemplateLocalPolicyAction::read ( )

Definition at line 343 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern, $query, $res, $row, addFilterPattern(), DB_FETCHMODE_OBJECT, ilDidacticTemplateAction\getActionId(), ilDidacticTemplateFilterPatternFactory\lookupPatternsByParentId(), setFilterType(), setRoleTemplateId(), and setRoleTemplateType().

344  {
345  global $ilDB;
346 
347  if(!parent::read())
348  {
349  return false;
350  }
351 
352  $query = 'SELECT * FROM didactic_tpl_alp '.
353  'WHERE action_id = '.$ilDB->quote($this->getActionId());
354  $res = $ilDB->query($query);
355  while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
356  {
357  $this->setFilterType($row->filter_type);
358  $this->setRoleTemplateType($row->template_type);
359  $this->setRoleTemplateId($row->template_id);
360  }
361 
362  // Read filter
363  include_once './Services/DidacticTemplate/classes/class.ilDidacticTemplateFilterPatternFactory.php';
364  foreach(ilDidacticTemplateFilterPatternFactory::lookupPatternsByParentId($this->getActionId(),self::PATTERN_PARENT_TYPE) as $pattern)
365  {
366  $this->addFilterPattern($pattern);
367  }
368  }
static lookupPatternsByParentId($a_parent_id, $a_parent_type)
Get patterns by template id.
const DB_FETCHMODE_OBJECT
Definition: class.ilDB.php:11
addFilterPattern(ilDidacticTemplateFilterPattern $pattern)
Add filter.
+ Here is the call graph for this function:

◆ revert()

ilDidacticTemplateLocalPolicyAction::revert ( )

Revert action.

ilRbacReview

Definition at line 206 of file class.ilDidacticTemplateLocalPolicyAction.php.

References ilDidacticTemplateAction\filterRoles(), ilDidacticTemplateAction\initSourceObject(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES, and revertLocalPolicy().

207  {
208  global $rbacreview,$rbacadmin,$tree;
209 
210  $source = $this->initSourceObject();
211  $rolf = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
212 
213  $roles = $this->filterRoles($source);
214 
215  // Delete local policy for filtered roles
216  foreach($roles as $role_id => $role)
217  {
218  // Do not delete local roles of auto genrated roles
219  if(!$rbacreview->isGlobalRole($role['obj_id']) and
220  $rbacreview->isAssignable($role['obj_id'],$role['parent']) and
221  $rbacreview->isSystemGeneratedRole($role['obj_id']))
222  {
223  $this->revertLocalPolicy($source, $role);
224  }
225  else
226  {
227  // delete local role and change exiting objects
228  $rbacadmin->deleteLocalRole($role_id,$rolf);
229  // Change existing object
230  include_once './Services/AccessControl/classes/class.ilObjRole.php';
231  $role_obj = new ilObjRole($role_id);
232  $role_obj->changeExistingObjects(
233  $source->getRefId(),
234  $role['protected'] ?
237  array('all')
238  );
239  }
240 
241  }
242  return true;
243  }
Class ilObjRole.
const MODE_PROTECTED_DELETE_LOCAL_POLICIES
filterRoles(ilObject $source)
Filter roles.
initSourceObject()
Init the source object.
const MODE_UNPROTECTED_DELETE_LOCAL_POLICIES
+ Here is the call graph for this function:

◆ revertLocalPolicy()

ilDidacticTemplateLocalPolicyAction::revertLocalPolicy ( ilObject  $source,
  $role 
)
protected

Definition at line 448 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $GLOBALS, $query, $res, $row, DB_FETCHMODE_OBJECT, ilObject\getRefId(), ilObjRole\MODE_PROTECTED_DELETE_LOCAL_POLICIES, and ilObjRole\MODE_UNPROTECTED_DELETE_LOCAL_POLICIES.

Referenced by revert().

449  {
450  global $rbacadmin, $rbacreview, $ilDB;
451 
452  $GLOBALS['ilLog']->write(__METHOD__.': Reverting policy for role: '.print_r($role,true));
453 
454  // Local policies can only be reverted for auto generated roles. Otherwise the
455  // original role settings are unknown
456  if(substr($role['title'],0,3) != 'il_')
457  {
458  $GLOBALS['ilLog']->write(__METHOD__.': Cannot revert local policy for role '. $role['title']);
459  return false;
460  }
461 
462 
463  $role_folder_id = $rbacreview->getRoleFolderIdOfObject($source->getRefId());
464  // No role folder found
465  if(!$role_folder_id)
466  {
467  return false;
468  }
469 
470  $exploded_title = explode('_',$role['title']);
471  $rolt_title = $exploded_title[0].'_'.$exploded_title[1].'_'.$exploded_title[2];
472 
473  // Lookup role template
474  $query = 'SELECT obj_id FROM object_data '.
475  'WHERE title = '.$ilDB->quote($rolt_title,'text').' '.
476  'AND type = '.$ilDB->quote('rolt','text');
477  $res = $ilDB->query($query);
478  while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
479  {
480  $rolt_id = $row->obj_id;
481  }
482 
483  // No template found
484  if(!$rolt_id)
485  {
486  return false;
487  }
488 
489  $rbacadmin->copyRoleTemplatePermissions(
490  $rolt_id,
491  ROLE_FOLDER_ID,
492  $role_folder_id,
493  $role['obj_id'],
494  true
495  );
496 
497  // Change existing object
498  include_once './Services/AccessControl/classes/class.ilObjRole.php';
499  $role_obj = new ilObjRole($role['obj_id']);
500  $role_obj->changeExistingObjects(
501  $source->getRefId(),
503  array('all')
504  );
505  }
Class ilObjRole.
const MODE_PROTECTED_DELETE_LOCAL_POLICIES
const DB_FETCHMODE_OBJECT
Definition: class.ilDB.php:11
$GLOBALS['ct_recipient']
const MODE_UNPROTECTED_DELETE_LOCAL_POLICIES
getRefId()
get reference id public
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ save()

ilDidacticTemplateLocalPolicyAction::save ( )

Save action.

Definition at line 119 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern, $query, ilDidacticTemplateAction\getActionId(), getFilterPattern(), getFilterType(), getRoleTemplateId(), and getRoleTemplateType().

120  {
121  global $ilDB;
122 
123  parent::save();
124 
125  $query = 'INSERT INTO didactic_tpl_alp (action_id,filter_type,template_type,template_id) '.
126  'VALUES( '.
127  $ilDB->quote($this->getActionId(),'integer').', '.
128  $ilDB->quote($this->getFilterType(),'integer').', '.
129  $ilDB->quote($this->getRoleTemplateType(),'integer').', '.
130  $ilDB->quote($this->getRoleTemplateId(),'integer').' '.
131  ')';
132  $ilDB->manipulate($query);
133 
134  foreach($this->getFilterPattern() as $pattern)
135  {
136  /* @var ilDidacticTemplateFilterPattern $pattern */
137  $pattern->setParentId($this->getActionId());
138  $pattern->setParentType(self::PATTERN_PARENT_TYPE);
139  $pattern->save();
140  }
141  }
+ Here is the call graph for this function:

◆ setFilterPatterns()

ilDidacticTemplateLocalPolicyAction::setFilterPatterns ( Array  $patterns)

Set filter patterns.

Parameters
array$patterns

Definition at line 49 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by __clone().

50  {
51  $this->pattern = $patterns;
52  }
+ Here is the caller graph for this function:

◆ setFilterType()

ilDidacticTemplateLocalPolicyAction::setFilterType (   $a_type)

Set filter type.

Parameters
int$a_type

Definition at line 67 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by read().

68  {
69  $this->filter_type = $a_type;
70  }
+ Here is the caller graph for this function:

◆ setRoleTemplateId()

ilDidacticTemplateLocalPolicyAction::setRoleTemplateId (   $a_id)

Set role template id.

Parameters
int$a_id

Definition at line 102 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by read().

103  {
104  $this->role_template_id = $a_id;
105  }
+ Here is the caller graph for this function:

◆ setRoleTemplateType()

ilDidacticTemplateLocalPolicyAction::setRoleTemplateType (   $a_tpl_type)

Set Role template type.

Parameters
int$a_tpl_type

Definition at line 85 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by read().

86  {
87  $this->role_template_type = $a_tpl_type;
88  }
+ Here is the caller graph for this function:

◆ toXml()

ilDidacticTemplateLocalPolicyAction::toXml ( ilXmlWriter  $writer)

Export to xml.

Parameters
ilXmlWriter$writer
Returns
void

Definition at line 259 of file class.ilDidacticTemplateLocalPolicyAction.php.

References $pattern, ilObject\_lookupType(), ilXmlWriter\appendXML(), getFilterPattern(), getFilterType(), getRoleTemplateId(), getRoleTemplateType(), ilRoleXmlExport\MODE_DTPL, ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().

260  {
261  $writer->xmlStartTag('localPolicyAction');
262 
263  switch($this->getFilterType())
264  {
265  case self::FILTER_SOURCE_TITLE:
266  $writer->xmlStartTag('roleFilter',array('source' => 'title'));
267  break;
268 
269  case self::FILTER_SOURCE_OBJ_ID:
270  $writer->xmlStartTag('roleFilter',array('source' => 'objId'));
271  break;
272 
273  }
274 
275  foreach($this->getFilterPattern() as $pattern)
276  {
277  $pattern->toXml($writer);
278  }
279  $writer->xmlEndTag('roleFilter');
280 
281  $il_role_id = 'il_'.IL_INST_ID.'_'.ilObject::_lookupType($this->getRoleTemplateId()).'_'.$this->getRoleTemplateId();
282 
283  switch($this->getRoleTemplateType())
284  {
285  case self::TPL_ACTION_OVERWRITE:
286  $writer->xmlStartTag(
287  'localPolicyTemplate',
288  array(
289  'type' => 'overwrite',
290  'id' => $il_role_id
291  )
292  );
293  break;
294 
295  case self::TPL_ACTION_INTERSECT:
296  $writer->xmlStartTag(
297  'localPolicyTemplate',
298  array(
299  'type' => 'intersect',
300  'id' => $il_role_id
301  )
302  );
303  break;
304 
305  case self::TPL_ACTION_UNION:
306  $writer->xmlStartTag(
307  'localPolicyTemplate',
308  array(
309  'type' => 'union',
310  'id' => $il_role_id
311  )
312  );
313  break;
314  }
315 
316  include_once './Services/AccessControl/classes/class.ilRoleXmlExport.php';
317  $exp = new ilRoleXmlExport();
318  $exp->setMode(ilRoleXmlExport::MODE_DTPL);
319  $exp->addRole($this->getRoleTemplateId(), ROLE_FOLDER_ID);
320  $exp->write();
321  $writer->appendXML($exp->xmlDumpMem(FALSE));
322  $writer->xmlEndTag('localPolicyTemplate');
323  $writer->xmlEndTag('localPolicyAction');
324  return void;
325  }
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
xmlEndTag($tag)
Writes an endtag.
static _lookupType($a_id, $a_reference=false)
lookup object type
Xml export of roles and role templates.
appendXML($a_str)
append xml string to document
+ Here is the call graph for this function:

Field Documentation

◆ $filter_type

ilDidacticTemplateLocalPolicyAction::$filter_type = self::FILTER_SOURCE_TITLE
private

Definition at line 22 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by getFilterType().

◆ $pattern

ilDidacticTemplateLocalPolicyAction::$pattern = array()
private

◆ $role_template_id

ilDidacticTemplateLocalPolicyAction::$role_template_id = 0
private

Definition at line 24 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by getRoleTemplateId().

◆ $role_template_type

ilDidacticTemplateLocalPolicyAction::$role_template_type = self::TPL_ACTION_OVERWRITE
private

Definition at line 23 of file class.ilDidacticTemplateLocalPolicyAction.php.

Referenced by getRoleTemplateType().

◆ TPL_ACTION_ADD

const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_ADD = 3

◆ TPL_ACTION_INTERSECT

const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_INTERSECT = 2

◆ TPL_ACTION_OVERWRITE

const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_OVERWRITE = 1

◆ TPL_ACTION_SUBTRACT

const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_SUBTRACT = 4

◆ TPL_ACTION_UNION

const ilDidacticTemplateLocalPolicyAction::TPL_ACTION_UNION = 5

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