Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
41 | 3 | 3 | 0.990 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 41 | 140 | plugins/editors/codemirror.php |
2 | 41 | 120 | plugins/editors/none.php |
3 | 41 | 605 | plugins/editors/tinymce.php |
| ||||
protected function _displayButtons($name, $buttons) { // Load modal popup behavior JHtml::_('behavior.modal', 'a.modal-button'); $args['name']= $name; $args['event']= 'onGetInsertMethod'; $return= ''; $results[]= $this->update($args); foreach ($results as $result) { if (is_string($result) && trim($result)) { $return.= $result; } } if (!empty($buttons)) { $results= $this->_subject->getButtons($name, $buttons); /* * This will allow plugins to attach buttons or change the behavior on the fly using AJAX */ $return.= "\n<div id=\"editor-xtd-buttons\">\n"; foreach ($results as $button) { /* * Results should be an object */ if ($button->get('name')) { $modal= ($button->get('modal')) ? 'class="modal-button"' : NULL; $href= ($button->get('link')) ? 'href="' . $button->get('link') . '"' : NULL; $onclick= ($button->get('onclick')) ? 'onclick="' . $button->get('onclick') . '"' : NULL; $return.= "<div class=\"button2-left\"><div class=\"" . $button->get('name') . "\"><a " . $modal . " title=\"" . $button->get('text') . "\" " . $href . " " . $onclick . " rel=\"" . $button->get('options') . "\">" . $button->get('text') . "</a></div></div>\n"; } } $return.= "</div>\n"; } return $return; } |
| ||||
function _displayButtons($name, $buttons) { // Load modal popup behavior JHtml::_('behavior.modal', 'a.modal-button'); $args['name']= $name; $args['event']= 'onGetInsertMethod'; $return= ''; $results[]= $this->update($args); foreach ($results as $result) { if (is_string($result) && trim($result)) { $return.= $result; } } if (!empty($buttons)) { $results= $this->_subject->getButtons($name, $buttons); /* * This will allow plugins to attach buttons or change the behavior on the fly using AJAX */ $return.= "\n<div id=\"editor-xtd-buttons\">\n"; foreach ($results as $button) { /* * Results should be an object */ if ($button->get('name')) { $modal= ($button->get('modal')) ? 'class="modal-button"' : NULL; $href= ($button->get('link')) ? 'href="' . $button->get('link') . '"' : NULL; $onclick= ($button->get('onclick')) ? 'onclick="' . $button->get('onclick') . '"' : NULL; $return.= "<div class=\"button2-left\"><div class=\"" . $button->get('name') . "\"><a " . $modal . " title=\"" . $button->get('text') . "\" " . $href . " " . $onclick . " rel=\"" . $button->get('options') . "\">" . $button->get('text') . "</a></div></div>\n"; } } $return.= "</div>\n"; } return $return; } |
| ||||
function _displayButtons($name, $buttons) { // Load modal popup behavior JHTML::_('behavior.modal', 'a.modal-button'); $args['name']= $name; $args['event']= 'onGetInsertMethod'; $return= ''; $results[]= $this->update($args); foreach ($results as $result) { if (is_string($result) && trim($result)) { $return.= $result; } } if (!empty($buttons)) { $results= $this->_subject->getButtons($name, $buttons); /* * This will allow plugins to attach buttons or change the behavior on the fly using AJAX */ $return.= "\n<div id=\"editor-xtd-buttons\">\n"; foreach ($results as $button) { /* * Results should be an object */ if ( $button->get('name')) { $modal= ($button->get('modal')) ? 'class="modal-button"' : NULL; $href= ($button->get('link')) ? 'href="' . JURI::base() . $button->get('link') . '"' : NULL; $onclick= ($button->get('onclick')) ? 'onclick="' . $button->get('onclick') . '"' : NULL; $return.= "<div class=\"button2-left\"><div class=\"" . $button->get('name') . "\"><a " . $modal . " title=\"" . $button->get('text') . "\" " . $href . " " . $onclick . " rel=\"" . $button->get('options') . "\">" . $button->get('text') . "</a></div></div>\n"; } } $return.= "</div>\n"; } return $return; } |
| |||
[[#variable54062300]] function _displayButtons($name,$buttons) { [[#variable54062280]]::_('behavior.modal','a.modal-button'); $args['name']=$name; $args['event']='onGetInsertMethod'; $return=''; $results[]=$this->update($args); foreach ($results as $result) { if (is_string($result) && trim($result)) { $return.=$result; } } if (!empty($buttons)) { $results=$this->_subject->getButtons($name,$buttons); /* * This will allow plugins to attach buttons or change the behavior on the fly using AJAX */ $return.="\n<div id=\"editor-xtd-buttons\">\n"; foreach ($results as $button) { /* * Results should be an object */ if ($button->get('name')) { $modal=($button->get('modal')) ? 'class="modal-button"' : NULL; $href=($button->get('link')) ? [[#variable54062200]] . $button->get('link') . '"' : NULL; $onclick=($button->get('onclick')) ? 'onclick="' . $button->get('onclick') . '"' : NULL; $return.="<div class=\"button2-left\"><div class=\"" . $button->get('name') . "\"><a " . $modal . " title=\"" . $button->get('text') . "\" " . $href . " " . $onclick . " rel=\"" . $button->get('options') . "\">" . $button->get('text') . "</a></div></div>\n"; } } $return.="</div>\n"; } return $return; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54062300]] | |
1 | 2 | [[#54062300]] | |
1 | 3 | [[#54062300]] | protected |
2 | 1 | [[#54062280]] | // Load modal popup behavior JHtml |
2 | 2 | [[#54062280]] | // Load modal popup behavior JHTML |
2 | 3 | [[#54062280]] | // Load modal popup behavior JHtml |
3 | 1 | [[#54062200]] | 'href="' |
3 | 2 | [[#54062200]] | 'href="' . JURI::base() |
3 | 3 | [[#54062200]] | 'href="' |