ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjAdvancedEditing Class Reference

Class ilObjAdvancedEditing. More...

+ Inheritance diagram for ilObjAdvancedEditing:
+ Collaboration diagram for ilObjAdvancedEditing:

Public Member Functions

 ilObjAdvancedEditing ($a_id=0, $a_call_by_reference=true)
 Constructor public. More...
 
 update ()
 update object data More...
 
 delete ()
 delete object and all related data More...
 
 initDefaultRoles ()
 init default roles settings More...
 
 notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
 notifys an object about an event occured Based on the event happend, each object may decide how it reacts. More...
 
_getUsedHTMLTags ($a_module="")
 Returns an array of all allowed HTML tags for text editing. More...
 
_getUsedHTMLTagsAsString ($a_module="")
 Returns a string of all allowed HTML tags for text editing. More...
 
 _getRichTextEditor ()
 Returns the identifier for the Rich Text Editor. More...
 
 _setRichTextEditor ($a_js_editor)
 Sets wheather a Rich Text Editor should be used or not. More...
 
 _setUsedHTMLTags ($a_html_tags, $a_module)
 Writes an array with allowed HTML tags to the ILIAS settings. More...
 
getHTMLTags ()
 Returns an array of all possible HTML tags for text editing. More...
 
_getAllHTMLTags ()
 Returns an array of all possible HTML tags for text editing. More...
 
 _getAllHTMLTagsAsString ()
 Returns a string of all HTML tags. More...
 
- Public Member Functions inherited from ilObject
 ilObject ($a_id=0, $a_reference=true)
 Constructor public. More...
 
 withReferences ()
 determines wehter objects are referenced or not (got ref ids or not) More...
 
 read ($a_force_db=false)
 read object data from db into object More...
 
 getId ()
 get object id public More...
 
 setId ($a_id)
 set object id public More...
 
 setRefId ($a_id)
 set reference id public More...
 
 getRefId ()
 get reference id public More...
 
 getType ()
 get object type public More...
 
 setType ($a_type)
 set object type public More...
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 get object title public More...
 
 getUntranslatedTitle ()
 get untranslated object title public More...
 
 setTitle ($a_title)
 set object title More...
 
 getDescription ()
 get object description More...
 
 setDescription ($a_desc)
 set object description More...
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 get import id More...
 
 setImportId ($a_import_id)
 set import id More...
 
 getOwner ()
 get object owner More...
 
 getOwnerName ()
 
 _lookupOwnerName ($a_owner_id)
 lookup owner name for owner id More...
 
 setOwner ($a_owner)
 set object owner More...
 
 getCreateDate ()
 get create date public More...
 
 getLastUpdateDate ()
 get last update date public More...
 
 getDiskUsage ()
 Gets the disk usage of the object in bytes. More...
 
 setObjDataRecord ($a_record)
 set object_data record (note: this method should only be called from the ilObjectFactory class) More...
 
 create ()
 create More...
 
 update ()
 update object in db More...
 
 MDUpdateListener ($a_element)
 Meta data update listener. More...
 
 createMetaData ()
 create meta data entry More...
 
 updateMetaData ()
 update meta data entry More...
 
 deleteMetaData ()
 delete meta data entry More...
 
 updateOwner ()
 update owner of object in db More...
 
 _getIdForImportId ($a_import_id)
 get current object id for import id (static) More...
 
 _lookupOwner ($a_id)
 lookup object owner More...
 
 _lookupLastUpdate ($a_id, $a_as_string=false)
 lookup last update More...
 
 _getLastUpdateOfObjects ($a_objs)
 Get last update for a set of media objects. More...
 
 _setDeletedDate ($a_ref_id)
 only called in ilTree::saveSubTree More...
 
 _resetDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
 _lookupDeletedDate ($a_ref_id)
 only called in ilObjectGUI::insertSavedNodes More...
 
 _writeTitle ($a_obj_id, $a_title)
 write title to db (static) More...
 
 _writeDescription ($a_obj_id, $a_desc)
 write description to db (static) More...
 
 _writeImportId ($a_obj_id, $a_import_id)
 write import id to db (static) More...
 
 _isInTrash ($a_ref_id)
 checks wether object is in trash More...
 
 _hasUntrashedReference ($a_obj_id)
 checks wether an object has at least one reference that is not in trash More...
 
 _getObjectsDataForType ($a_type, $a_omit_trash=false)
 get all objects of a certain type More...
 
 putInTree ($a_parent_ref)
 maybe this method should be in tree object!? More...
 
 setPermissions ($a_parent_ref)
 set permissions of object More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 count references of object More...
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type If you want to setup default local roles you MUST overwrite this method in derived object classes (see ilObjForum for an example) public More...
 
 createRoleFolder ()
 creates a local role folder More...
 
 applyDidacticTemplate ($a_tpl_id)
 Apply template. More...
 
 notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0)
 notifys an object about an event occured Based on the event passed, each object may decide how it reacts. More...
 
 setRegisterMode ($a_bool)
 
 isUserRegistered ($a_user_id=0)
 
 requireRegistration ()
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 cloneObject ($a_target_id, $a_copy_id=0, $a_omit_tree=false)
 Clone object permissions, put in tree ... More...
 
 appendCopyInfo ($a_target_id, $a_copy_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies ($a_target_id, $a_copy_id)
 Clone object dependencies. More...
 
 cloneMetaData ($target_obj)
 Copy meta data. More...
 
 _lookupCreationDate ($a_id)
 Lookup creation date. More...
 

Static Public Member Functions

static _setRichTextEditorUserState ($a_state)
 Sets the state of the rich text editor visibility for the current user. More...
 
static _getRichTextEditorUserState ()
 Gets the state of the rich text editor visibility for the current user. More...
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId ($a_import_id)
 
static _getAllReferences ($a_id)
 get all reference ids of object More...
 
static _lookupTitle ($a_id)
 lookup object title More...
 
static _getIdsForTitle ($title, $type='', $partialmatch=false)
 
static _lookupDescription ($a_id)
 lookup object description More...
 
static _lookupObjId ($a_id)
 
static setDeletedDates ($a_ref_ids)
 Set deleted date type $ilDB. More...
 
static _lookupType ($a_id, $a_reference=false)
 lookup object type More...
 
static _lookupObjectId ($a_ref_id)
 lookup object id More...
 
static _exists ($a_id, $a_reference=false, $a_type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType ($a_obj_type="", $a_owner="")
 Get objects by type. More...
 
static _prepareCloneSelection ($a_ref_ids, $new_type, $show_path=true)
 Prepare copy wizard object selection. More...
 
static _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies ($a_obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $a_obj_ids)
 Get long description data. More...
 
static getAllOwnedRepositoryObjects ($a_user_id)
 Get all ids of objects user owns. More...
 
static hasAutoRating ($a_type, $a_ref_id)
 Check if auto rating is active for parent group/course. More...
 

Data Fields

 $setting
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 max length of object title More...
 
const DESC_LENGTH = 128
 
 $ilias
 
 $lng
 
 $id
 
 $ref_id
 
 $type
 
 $title
 
 $untranslatedTitle
 
 $desc
 
 $long_desc
 
 $owner
 
 $create_date
 
 $last_update
 
 $import_id
 
 $register = false
 
 $referenced
 
 $objectList
 
 $max_title
 
 $max_desc
 
 $add_dots
 
 $obj_data_record
 object_data record More...
 

Detailed Description

Member Function Documentation

◆ _getAllHTMLTags()

& ilObjAdvancedEditing::_getAllHTMLTags ( )

Returns an array of all possible HTML tags for text editing.

Returns an array of all possible HTML tags for text editing

Returns
array HTML tags

Definition at line 433 of file class.ilObjAdvancedEditing.php.

Referenced by _getAllHTMLTagsAsString().

434  {
435  $tags = array(
436  "a",
437  "abbr",
438  "acronym",
439  "address",
440  "applet",
441  "area",
442  "b",
443  "base",
444  "basefont",
445  "bdo",
446  "big",
447  "blockquote",
448  "br",
449  "button",
450  "caption",
451  "center",
452  "cite",
453  "code",
454  "col",
455  "colgroup",
456  "dd",
457  "del",
458  "dfn",
459  "dir",
460  "div",
461  "dl",
462  "dt",
463  "em",
464  "fieldset",
465  "font",
466  "form",
467  "h1",
468  "h2",
469  "h3",
470  "h4",
471  "h5",
472  "h6",
473  "hr",
474  "i",
475  "iframe",
476  "img",
477  "input",
478  "ins",
479  "isindex",
480  "kbd",
481  "label",
482  "legend",
483  "li",
484  "link",
485  "map",
486  "menu",
487  "object",
488  "ol",
489  "optgroup",
490  "option",
491  "p",
492  "param",
493  "pre",
494  "q",
495  "s",
496  "samp",
497  "select",
498  "small",
499  "span",
500  "strike",
501  "strong",
502  "sub",
503  "sup",
504  "table",
505  "tbody",
506  "td",
507  "textarea",
508  "tfoot",
509  "th",
510  "thead",
511  "tr",
512  "tt",
513  "u",
514  "ul",
515  "var",
516  "ruby", // Ruby Annotation XHTML module
517  "rbc",
518  "rtc",
519  "rb",
520  "rt",
521  "rp"
522  );
523  return $tags;
524  }
+ Here is the caller graph for this function:

◆ _getAllHTMLTagsAsString()

ilObjAdvancedEditing::_getAllHTMLTagsAsString ( )

Returns a string of all HTML tags.

Returns a string of all HTML tags

Returns
string Used HTML tags

Definition at line 532 of file class.ilObjAdvancedEditing.php.

References $result, and _getAllHTMLTags().

533  {
534  $result = "";
536  foreach ($tags as $tag)
537  {
538  $result .= "<$tag>";
539  }
540  return $result;
541  }
$result
& _getAllHTMLTags()
Returns an array of all possible HTML tags for text editing.
+ Here is the call graph for this function:

◆ _getRichTextEditor()

ilObjAdvancedEditing::_getRichTextEditor ( )

Returns the identifier for the Rich Text Editor.

Returns the identifier for the Rich Text Editor

Returns
string Identifier for the Rich Text Editor

Definition at line 301 of file class.ilObjAdvancedEditing.php.

Referenced by ilRTE\_getRTEClassname(), and ilTinyMCE\addRTESupport().

302  {
303  include_once "./Services/Administration/classes/class.ilSetting.php";
304  $setting = new ilSetting("advanced_editing");
305  $js = $setting->get("advanced_editing_javascript_editor");
306  return $js;
307  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ _getRichTextEditorUserState()

static ilObjAdvancedEditing::_getRichTextEditorUserState ( )
static

Gets the state of the rich text editor visibility for the current user.

Gets the state of the rich text editor visibility for the current user

Returns
integer 0 if the RTE should be disabled, 1 otherwise

Definition at line 564 of file class.ilObjAdvancedEditing.php.

References $ilUser.

Referenced by ilTinyMCE\addRTESupport(), and ilObjForumGUI\cancelPostObject().

565  {
566  global $ilUser;
567  if (strlen($ilUser->getPref("show_rte")) > 0)
568  {
569  return $ilUser->getPref("show_rte");
570  }
571  return 1;
572  }
global $ilUser
Definition: imgupload.php:15
+ Here is the caller graph for this function:

◆ _getUsedHTMLTags()

& ilObjAdvancedEditing::_getUsedHTMLTags (   $a_module = "")

Returns an array of all allowed HTML tags for text editing.

Returns an array of all allowed HTML tags for text editing

Parameters
string$a_moduleName of the module or object which uses the tags
Returns
array HTML tags

Definition at line 190 of file class.ilObjAdvancedEditing.php.

Referenced by _getUsedHTMLTagsAsString(), assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilTinyMCE\addRTESupport(), ilAssQuestionFeedback\buildFeedbackContentFormProperty(), ilAssQuestionHintGUI\buildForm(), ilAssHtmlUserSolutionPurifier\getElementsUsedForAdvancedEditing(), ilHtmlForumPostPurifier\getPurifierConfigInstance(), SurveyQuestionGUI\initEditForm(), ilSurveyEditorGUI\initHeadingForm(), ilObjSurveyGUI\initPropertiesForm(), ilSurveyPageGUI\renderPage(), and ilObjExerciseGUI\updateAssignmentTextObject().

191  {
192  $usedtags = array();
193  include_once "./Services/Administration/classes/class.ilSetting.php";
194  $setting = new ilSetting("advanced_editing");
195  $tags = $setting->get("advanced_editing_used_html_tags_" . $a_module);
196  if (strlen($tags))
197  {
198  $usedtags = unserialize($tags);
199  }
200  else
201  {
202  if($a_module == 'frm_post' || $a_module == 'exc_ass')
203  {
204  $usedtags = array(
205  "a",
206  "blockquote",
207  "br",
208  "code",
209  "div",
210  "em",
211  "img",
212  "li",
213  "ol",
214  "p",
215  "strong",
216  "u",
217  "ul",
218  "span"
219  );
220  }
221  else
222  {
223  // default: everything but tables
224  $usedtags = array(
225  "a",
226  "blockquote",
227  "br",
228  "cite",
229  "code",
230  "dd",
231  "div",
232  "dl",
233  "dt",
234  "em",
235  "h1",
236  "h2",
237  "h3",
238  "h4",
239  "h5",
240  "h6",
241  "hr",
242  "img",
243  "li",
244  "ol",
245  "p",
246  "pre",
247  "span",
248  "strike",
249  "strong",
250  "sub",
251  "sup",
252  "u",
253  "ul"
254  );
255  }
256  }
257 
258  // frm_posts need blockquote and div urgently
259  if($a_module === 'frm_post')
260  {
261  if(!in_array('div', $usedtags))
262  {
263  $usedtags[] = 'div';
264  }
265 
266  if(!in_array('blockquote', $usedtags))
267  {
268  $usedtags[] = 'blockquote';
269  }
270  }
271 
272  return $usedtags;
273  }
ILIAS Setting Class.
+ Here is the caller graph for this function:

◆ _getUsedHTMLTagsAsString()

& ilObjAdvancedEditing::_getUsedHTMLTagsAsString (   $a_module = "")

Returns a string of all allowed HTML tags for text editing.

Returns a string of all allowed HTML tags for text editing

Parameters
string$a_moduleName of the module or object which uses the tags
Returns
string Used HTML tags

Definition at line 283 of file class.ilObjAdvancedEditing.php.

References $result, and _getUsedHTMLTags().

Referenced by ilEssayKeywordWizardInputGUI\checkInput(), ilMultipleChoiceWizardInputGUI\checkInput(), ilMatchingWizardInputGUI\checkInput(), ilSingleChoiceWizardInputGUI\checkInput(), ilObjSurvey\cloneTextblocks(), ilHtmlBlockGUIGen\getValuesHtmlBlock(), ilObjTestSettingsGeneralGUI\performSaveForm(), ilSurveyEditorGUI\saveHeadingObject(), ilHtmlBlockGUIGen\saveHtmlBlock(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilContainerGUI\savePageContentObject(), and ilHtmlBlockGUIGen\updateHtmlBlock().

284  {
285  $result = "";
286  $tags =& ilObjAdvancedEditing::_getUsedHTMLTags($a_module);
287  foreach ($tags as $tag)
288  {
289  $result .= "<$tag>";
290  }
291  return $result;
292  }
$result
& _getUsedHTMLTags($a_module="")
Returns an array of all allowed HTML tags for text editing.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _setRichTextEditor()

ilObjAdvancedEditing::_setRichTextEditor (   $a_js_editor)

Sets wheather a Rich Text Editor should be used or not.

Sets wheather a Rich Text Editor should be used or not

Parameters
boolean$a_js_editorA boolean indicating if the JS editor should be used or not

Definition at line 316 of file class.ilObjAdvancedEditing.php.

317  {
318  include_once "./Services/Administration/classes/class.ilSetting.php";
319  $setting = new ilSetting("advanced_editing");
320  $setting->set("advanced_editing_javascript_editor", $a_js_editor);
321  }
ILIAS Setting Class.

◆ _setRichTextEditorUserState()

static ilObjAdvancedEditing::_setRichTextEditorUserState (   $a_state)
static

Sets the state of the rich text editor visibility for the current user.

Sets the state of the rich text editor visibility for the current user

Parameters
integer$a_state0 if the RTE should be disabled, 1 otherwise

Definition at line 550 of file class.ilObjAdvancedEditing.php.

References $ilUser.

Referenced by ilTinyMCE\addRTESupport(), and ilObjForumGUI\cancelPostObject().

551  {
552  global $ilUser;
553  $ilUser->writePref("show_rte", $a_state);
554  }
global $ilUser
Definition: imgupload.php:15
+ Here is the caller graph for this function:

◆ _setUsedHTMLTags()

ilObjAdvancedEditing::_setUsedHTMLTags (   $a_html_tags,
  $a_module 
)

Writes an array with allowed HTML tags to the ILIAS settings.

Writes an array with allowed HTML tags to the ILIAS settings

Parameters
array$a_html_tagsAn array containing the allowed HTML tags
string$a_moduleThe name of the module or object which uses the tags
Exceptions
ilAdvancedEditingRequiredTagsException

Definition at line 333 of file class.ilObjAdvancedEditing.php.

References ilObject\$lng.

334  {
335  global $lng;
336 
337  if (strlen($a_module))
338  {
339  $auto_added_tags = array();
340 
341  // frm_posts need blockquote and div urgently
342  if($a_module == 'frm_post')
343  {
344  if(!in_array('div', $a_html_tags))
345  {
346  $auto_added_tags[] = 'div';
347  }
348 
349  if(!in_array('blockquote', $a_html_tags))
350  {
351  $auto_added_tags[] = 'blockquote';
352  }
353  }
354 
355  include_once "./Services/Administration/classes/class.ilSetting.php";
356  $setting = new ilSetting("advanced_editing");
357  $setting->set("advanced_editing_used_html_tags_" . $a_module, serialize(array_merge((array)$a_html_tags, $auto_added_tags)));
358 
359  if(count($auto_added_tags))
360  {
361  require_once 'Services/AdvancedEditing/exceptions/class.ilAdvancedEditingRequiredTagsException.php';
363  sprintf(
364  $lng->txt('advanced_editing_required_tags'),
365  implode(', ', $auto_added_tags)
366  )
367  );
368  }
369  }
370  }
ILIAS Setting Class.
Class for advanced editing exception handling in ILIAS.

◆ delete()

ilObjAdvancedEditing::delete ( )

delete object and all related data

public

Returns
boolean true if all object data were removed; false if only a references were removed

Definition at line 77 of file class.ilObjAdvancedEditing.php.

78  {
79  // always call parent delete function first!!
80  if (!parent::delete())
81  {
82  return false;
83  }
84 
85  //put here your module specific stuff
86 
87  return true;
88  }

◆ getHTMLTags()

& ilObjAdvancedEditing::getHTMLTags ( )

Returns an array of all possible HTML tags for text editing.

Returns an array of all possible HTML tags for text editing

Returns
array HTML tags

Definition at line 379 of file class.ilObjAdvancedEditing.php.

380  {
381  $tags = array(
382  "a",
383  "blockquote",
384  "br",
385  "cite",
386  "code",
387  "dd",
388  "div",
389  "dl",
390  "dt",
391  "em",
392  "h1",
393  "h2",
394  "h3",
395  "h4",
396  "h5",
397  "h6",
398  "hr",
399  "img",
400  "li",
401  "object",
402  "ol",
403  "p",
404  "param",
405  "pre",
406  "span",
407  "strike",
408  "strong",
409  "sub",
410  "sup",
411  "table",
412  "td",
413  "tr",
414  "u",
415  "ul",
416  "ruby", // Ruby Annotation XHTML module
417  "rbc",
418  "rtc",
419  "rb",
420  "rt",
421  "rp"
422  );
423  return $tags;
424  }

◆ ilObjAdvancedEditing()

ilObjAdvancedEditing::ilObjAdvancedEditing (   $a_id = 0,
  $a_call_by_reference = true 
)

Constructor public.

Parameters
integerreference_id or object_id
booleantreat the id as reference_id (true) or object_id (false)

Definition at line 44 of file class.ilObjAdvancedEditing.php.

References ilObject\ilObject().

45  {
46  include_once "./Services/Administration/classes/class.ilSetting.php";
47  $this->setting = new ilSetting("advanced_editing");
48  $this->type = "adve";
49  $this->ilObject($a_id,$a_call_by_reference);
50  }
ILIAS Setting Class.
ilObject($a_id=0, $a_reference=true)
Constructor public.
+ Here is the call graph for this function:

◆ initDefaultRoles()

ilObjAdvancedEditing::initDefaultRoles ( )

init default roles settings

If your module does not require any default roles, delete this method (For an example how this method is used, look at ilObjForum)

public

Returns
array object IDs of created local roles.

Definition at line 99 of file class.ilObjAdvancedEditing.php.

100  {
101  global $rbacadmin;
102 
103  // create a local role folder
104  //$rfoldObj = $this->createRoleFolder("Local roles","Role Folder of forum obj_no.".$this->getId());
105 
106  // create moderator role and assign role to rolefolder...
107  //$roleObj = $rfoldObj->createRole("Moderator","Moderator of forum obj_no.".$this->getId());
108  //$roles[] = $roleObj->getId();
109 
110  //unset($rfoldObj);
111  //unset($roleObj);
112 
113  return $roles ? $roles : array();
114  }

◆ notify()

ilObjAdvancedEditing::notify (   $a_event,
  $a_ref_id,
  $a_parent_non_rbac_id,
  $a_node_id,
  $a_params = 0 
)

notifys an object about an event occured Based on the event happend, each object may decide how it reacts.

If you are not required to handle any events related to your module, just delete this method. (For an example how this method is used, look at ilObjGroup)

public

Parameters
stringevent
integerreference id of object where the event occured
arraypasses optional parameters if required
Returns
boolean

Definition at line 129 of file class.ilObjAdvancedEditing.php.

References $_GET, and ilObject\getType().

130  {
131  global $tree;
132 
133  switch ($a_event)
134  {
135  case "link":
136 
137  //var_dump("<pre>",$a_params,"</pre>");
138  //echo "Module name ".$this->getRefId()." triggered by link event. Objects linked into target object ref_id: ".$a_ref_id;
139  //exit;
140  break;
141 
142  case "cut":
143 
144  //echo "Module name ".$this->getRefId()." triggered by cut event. Objects are removed from target object ref_id: ".$a_ref_id;
145  //exit;
146  break;
147 
148  case "copy":
149 
150  //var_dump("<pre>",$a_params,"</pre>");
151  //echo "Module name ".$this->getRefId()." triggered by copy event. Objects are copied into target object ref_id: ".$a_ref_id;
152  //exit;
153  break;
154 
155  case "paste":
156 
157  //echo "Module name ".$this->getRefId()." triggered by paste (cut) event. Objects are pasted into target object ref_id: ".$a_ref_id;
158  //exit;
159  break;
160 
161  case "new":
162 
163  //echo "Module name ".$this->getRefId()." triggered by paste (new) event. Objects are applied to target object ref_id: ".$a_ref_id;
164  //exit;
165  break;
166  }
167 
168  // At the beginning of the recursive process it avoids second call of the notify function with the same parameter
169  if ($a_node_id==$_GET["ref_id"])
170  {
171  $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
172  $parent_type = $parent_obj->getType();
173  if($parent_type == $this->getType())
174  {
175  $a_node_id = (int) $tree->getParentId($a_node_id);
176  }
177  }
178 
179  parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);
180  }
$_GET["client_id"]
redirection script todo: (a better solution should control the processing via a xml file) ...
getType()
get object type public
+ Here is the call graph for this function:

◆ update()

ilObjAdvancedEditing::update ( )

update object data

public

Returns
boolean

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

59  {
60  if (!parent::update())
61  {
62  return false;
63  }
64 
65  // put here object specific stuff
66 
67  return true;
68  }

Field Documentation

◆ $setting

ilObjAdvancedEditing::$setting

Definition at line 36 of file class.ilObjAdvancedEditing.php.


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