| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 3 | 2 | 0.984 | class_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 72 | plugins/editors/codemirror.php |
| 2 | 10 | 108 | plugins/editors/none.php |
| 3 | 10 | 593 | plugins/editors/tinymce.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;
}
|
| ||||
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;
}
|
| ||||
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;
}
|
| |||
[[#variable44002e60]]
function onGetInsertMethod($name) {
$doc= &JFactory::getDocument();
$js= [[#variable44002de0]];
$doc->addScriptDeclaration($js);
return TRUE;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#44002e60]] | |
| 1 | 2 | [[#44002e60]] | |
| 1 | 3 | [[#44002e60]] | public |
| 2 | 1 | [[#44002de0]] | "function jInsertEditorText( text, editor ) {\n\t\t\ttinyMCE.execInstanceCommand(editor, 'mceInsertContent',false,text);\n\t\t}" |
| 2 | 2 | [[#44002de0]] | "\tfunction jInsertEditorText(text, editor) {\n\t\t\tinsertAtCursor(document.getElementById(editor), text);\n\t\t}" |
| 2 | 3 | [[#44002de0]] | "\tfunction jInsertEditorText(text, editor) {\n\t\t\t\tJoomla.editors.instances[editor].replaceSelection(text);\n\n\t\t}" |