CloneSet799


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10320.984class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11072
plugins/editors/codemirror.php
210108
plugins/editors/none.php
310593
plugins/editors/tinymce.php
Clone Instance
1
Line Count
10
Source Line
72
Source File
plugins/editors/codemirror.php

        public

               function onGetInsertMethod($name) {

                $doc=  &JFactory::getDocument();

                $js= "\tfunction jInsertEditorText(text, editor) {\n\t\t\t\tJoomla.editors.instances[editor].replaceSelection(text);\n\n\t\t}";


                $doc->addScriptDeclaration($js);

                return TRUE;
              }


Clone Instance
2
Line Count
10
Source Line
108
Source File
plugins/editors/none.php

        function onGetInsertMethod($name) {

                $doc=  & JFactory::getDocument();

                $js= "\tfunction jInsertEditorText(text, editor) {\n\t\t\tinsertAtCursor(document.getElementById(editor), text);\n\t\t}";


                $doc->addScriptDeclaration($js);

                return TRUE;
              }


Clone Instance
3
Line Count
10
Source Line
593
Source File
plugins/editors/tinymce.php

        function onGetInsertMethod($name) {

                $doc=  & JFactory::getDocument();

                $js= "function jInsertEditorText( text, editor ) {\n\t\t\ttinyMCE.execInstanceCommand(editor, 'mceInsertContent',false,text);\n\t\t}";


                $doc->addScriptDeclaration($js);

                return TRUE;
              }


Clone AbstractionParameter Count: 2Parameter Bindings

 [[#variable44002e60]]

function onGetInsertMethod($name) {
  $doc= &JFactory::getDocument();
  $js= [[#variable44002de0]];
  $doc->addScriptDeclaration($js);
  return TRUE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#44002e60]]
12[[#44002e60]]
13[[#44002e60]]
public 
21[[#44002de0]]
"function jInsertEditorText( text, editor ) {\n\t\t\ttinyMCE.execInstanceCommand(editor, 'mceInsertContent',false,text);\n\t\t}" 
22[[#44002de0]]
"\tfunction jInsertEditorText(text, editor) {\n\t\t\tinsertAtCursor(document.getElementById(editor), text);\n\t\t}" 
23[[#44002de0]]
"\tfunction jInsertEditorText(text, editor) {\n\t\t\t\tJoomla.editors.instances[editor].replaceSelection(text);\n\n\t\t}"