CloneSet29


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
51960.970class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15165
administrator/includes/toolbar.php
25179
administrator/includes/toolbar.php
36192
administrator/includes/toolbar.php
45206
administrator/includes/toolbar.php
55219
administrator/includes/toolbar.php
65232
administrator/includes/toolbar.php
75245
administrator/includes/toolbar.php
86258
administrator/includes/toolbar.php
95272
administrator/includes/toolbar.php
105285
administrator/includes/toolbar.php
115298
administrator/includes/toolbar.php
125312
administrator/includes/toolbar.php
135325
administrator/includes/toolbar.php
145339
administrator/includes/toolbar.php
155352
administrator/includes/toolbar.php
165366
administrator/includes/toolbar.php
175428
administrator/includes/toolbar.php
185442
administrator/includes/toolbar.php
195455
administrator/includes/toolbar.php
Clone Instance
1
Line Count
5
Source Line
165
Source File
administrator/includes/toolbar.php

        /**
        * Writes the common 'new' icon for the button bar
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function addNew($task=  'add', $alt=  'New') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a new button
                $bar->appendButton('Standard', 'new', $alt, $task, FALSE, FALSE);
              }


Clone Instance
2
Line Count
5
Source Line
179
Source File
administrator/includes/toolbar.php

        /**
        * Writes the common 'new' icon for the button bar.
        * Extended version of addNew() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function addNewX($task=  'add', $alt=  'New') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a new button (hide menu)
                $bar->appendButton('Standard', 'new', $alt, $task, FALSE, TRUE);
              }


Clone Instance
3
Line Count
6
Source Line
192
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'publish' button
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function publish($task=  'publish', $alt=  'Publish') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a publish button
                //$bar->appendButton('Publish', false, $alt, $task);
                $bar->appendButton('Standard', 'publish', $alt, $task, FALSE, FALSE);
              }


Clone Instance
4
Line Count
5
Source Line
206
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'publish' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function publishList($task=  'publish', $alt=  'Publish') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a publish button (list)
                $bar->appendButton('Standard', 'publish', $alt, $task, TRUE, FALSE);
              }


Clone Instance
5
Line Count
5
Source Line
219
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'default' button for a record
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function makeDefault($task=  'default', $alt=  'Default') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a default button
                $bar->appendButton('Standard', 'default', $alt, $task, TRUE, FALSE);
              }


Clone Instance
6
Line Count
5
Source Line
232
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'assign' button for a record
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function assign($task=  'assign', $alt=  'Assign') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an assign button
                $bar->appendButton('Standard', 'assign', $alt, $task, TRUE, FALSE);
              }


Clone Instance
7
Line Count
5
Source Line
245
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'unpublish' button
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function unpublish($task=  'unpublish', $alt=  'Unpublish') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an unpublish button
                $bar->appendButton('Standard', 'unpublish', $alt, $task, FALSE, FALSE);
              }


Clone Instance
8
Line Count
6
Source Line
258
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'unpublish' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function unpublishList($task=  'unpublish', $alt=  'Unpublish') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an unpublish button (list)

                $bar->appendButton('Standard', 'unpublish', $alt, $task, TRUE, FALSE);
              }


Clone Instance
9
Line Count
5
Source Line
272
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'archive' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function archiveList($task=  'archive', $alt=  'Archive') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an archive button
                $bar->appendButton('Standard', 'archive', $alt, $task, TRUE, FALSE);
              }


Clone Instance
10
Line Count
5
Source Line
285
Source File
administrator/includes/toolbar.php

        /**
        * Writes an unarchive button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function unarchiveList($task=  'unarchive', $alt=  'Unarchive') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an unarchive button (list)
                $bar->appendButton('Standard', 'unarchive', $alt, $task, TRUE, FALSE);
              }


Clone Instance
11
Line Count
5
Source Line
298
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'edit' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function editList($task=  'edit', $alt=  'Edit') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an edit button
                $bar->appendButton('Standard', 'edit', $alt, $task, TRUE, FALSE);
              }


Clone Instance
12
Line Count
5
Source Line
312
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'edit' button for a list of records.
        * Extended version of editList() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function editListX($task=  'edit', $alt=  'Edit') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an edit button (hide)
                $bar->appendButton('Standard', 'edit', $alt, $task, TRUE, TRUE);
              }


Clone Instance
13
Line Count
5
Source Line
325
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'edit' button for a template html
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function editHtml($task=  'edit_source', $alt=  'Edit HTML') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an edit html button
                $bar->appendButton('Standard', 'edithtml', $alt, $task, TRUE, FALSE);
              }


Clone Instance
14
Line Count
5
Source Line
339
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'edit' button for a template html.
        * Extended version of editHtml() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function editHtmlX($task=  'edit_source', $alt=  'Edit HTML') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an edit html button (hide)
                $bar->appendButton('Standard', 'edithtml', $alt, $task, TRUE, TRUE);
              }


Clone Instance
15
Line Count
5
Source Line
352
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'edit' button for a template css
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function editCss($task=  'edit_css', $alt=  'Edit CSS') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an edit css button (hide)
                $bar->appendButton('Standard', 'editcss', $alt, $task, TRUE, FALSE);
              }


Clone Instance
16
Line Count
5
Source Line
366
Source File
administrator/includes/toolbar.php

        /**
        * Writes a common 'edit' button for a template css.
        * Extended version of editCss() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function editCssX($task=  'edit_css', $alt=  'Edit CSS') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an edit css button (hide)
                $bar->appendButton('Standard', 'editcss', $alt, $task, TRUE, TRUE);
              }


Clone Instance
17
Line Count
5
Source Line
428
Source File
administrator/includes/toolbar.php

        /**
        * Writes a save button for a given option
        * Apply operation leads to a save action only (does not leave edit mode)
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function apply($task=  'apply', $alt=  'Apply') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add an apply button
                $bar->appendButton('Standard', 'apply', $alt, $task, FALSE, FALSE);
              }


Clone Instance
18
Line Count
5
Source Line
442
Source File
administrator/includes/toolbar.php

        /**
        * Writes a save button for a given option
        * Save operation leads to a save and then close action
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function save($task=  'save', $alt=  'Save') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a save button
                $bar->appendButton('Standard', 'save', $alt, $task, FALSE, FALSE);
              }


Clone Instance
19
Line Count
5
Source Line
455
Source File
administrator/includes/toolbar.php

        /**
        * Writes a cancel button and invokes a cancel operation (eg a checkin)
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
        function cancel($task=  'cancel', $alt=  'Cancel') {

                $bar=  & JToolBar::getInstance('toolbar');
                // Add a cancel button
                $bar->appendButton('Standard', 'cancel', $alt, $task, FALSE, FALSE);
              }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
        * Writes a cancel button and invokes a cancel operation (eg a checkin)
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a save button for a given option
        * Save operation leads to a save and then close action
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a save button for a given option
        * Apply operation leads to a save action only (does not leave edit mode)
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'edit' button for a template css.
        * Extended version of editCss() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'edit' button for a template css
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'edit' button for a template html.
        * Extended version of editHtml() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'edit' button for a template html
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'edit' button for a list of records.
        * Extended version of editList() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'edit' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes an unarchive button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'archive' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'unpublish' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'unpublish' button
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'assign' button for a record
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'default' button for a record
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'publish' button for a list of records
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes a common 'publish' button
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes the common 'new' icon for the button bar.
        * Extended version of addNew() calling hideMainMenu() before submitbutton().
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
/**
        * Writes the common 'new' icon for the button bar
        * @param string An override for the task
        * @param string An override for the alt text
        * @since 1.0
        */
function [[#variable526c0400]]($task= [[#variable526c0340]],$alt= [[#variable526c0240]]) {
  $bar= &JToolBar::getInstance('toolbar');
  // Add a cancel button
  // Add a save button
  // Add an apply button
  // Add an edit css button (hide)
  // Add an edit html button (hide)
  // Add an edit html button
  // Add an edit button (hide)
  // Add an edit button
  // Add an unarchive button (list)
  // Add an archive button
  // Add an unpublish button (list)
  // Add an unpublish button
  // Add an assign button
  // Add a default button
  // Add a publish button (list)
  // Add a publish button
  //$bar->appendButton('Publish', false, $alt, $task);
  // Add a new button (hide menu)
  // Add a new button
  $bar->appendButton('Standard', [[#variable526c01c0]],$alt,$task, [[#variable526c00a0]], [[#variable526c00c0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#526c0400]]
cancel 
12[[#526c0400]]
save 
13[[#526c0400]]
apply 
14[[#526c0400]]
editCssX 
15[[#526c0400]]
editCss 
16[[#526c0400]]
editHtmlX 
17[[#526c0400]]
editHtml 
18[[#526c0400]]
editListX 
19[[#526c0400]]
editList 
110[[#526c0400]]
unarchiveList 
111[[#526c0400]]
archiveList 
112[[#526c0400]]
unpublishList 
113[[#526c0400]]
unpublish 
114[[#526c0400]]
assign 
115[[#526c0400]]
makeDefault 
116[[#526c0400]]
publishList 
117[[#526c0400]]
publish 
118[[#526c0400]]
addNewX 
119[[#526c0400]]
addNew 
21[[#526c0340]]
'cancel' 
22[[#526c0340]]
'save' 
23[[#526c0340]]
'apply' 
24[[#526c0340]]
'edit_css' 
25[[#526c0340]]
'edit_css' 
26[[#526c0340]]
'edit_source' 
27[[#526c0340]]
'edit_source' 
28[[#526c0340]]
'edit' 
29[[#526c0340]]
'edit' 
210[[#526c0340]]
'unarchive' 
211[[#526c0340]]
'archive' 
212[[#526c0340]]
'unpublish' 
213[[#526c0340]]
'unpublish' 
214[[#526c0340]]
'assign' 
215[[#526c0340]]
'default' 
216[[#526c0340]]
'publish' 
217[[#526c0340]]
'publish' 
218[[#526c0340]]
'add' 
219[[#526c0340]]
'add' 
31[[#526c0240]]
'Cancel' 
32[[#526c0240]]
'Save' 
33[[#526c0240]]
'Apply' 
34[[#526c0240]]
'Edit CSS' 
35[[#526c0240]]
'Edit CSS' 
36[[#526c0240]]
'Edit HTML' 
37[[#526c0240]]
'Edit HTML' 
38[[#526c0240]]
'Edit' 
39[[#526c0240]]
'Edit' 
310[[#526c0240]]
'Unarchive' 
311[[#526c0240]]
'Archive' 
312[[#526c0240]]
'Unpublish' 
313[[#526c0240]]
'Unpublish' 
314[[#526c0240]]
'Assign' 
315[[#526c0240]]
'Default' 
316[[#526c0240]]
'Publish' 
317[[#526c0240]]
'Publish' 
318[[#526c0240]]
'New' 
319[[#526c0240]]
'New' 
41[[#526c01c0]]
'cancel' 
42[[#526c01c0]]
'save' 
43[[#526c01c0]]
'apply' 
44[[#526c01c0]]
'editcss' 
45[[#526c01c0]]
'editcss' 
46[[#526c01c0]]
'edithtml' 
47[[#526c01c0]]
'edithtml' 
48[[#526c01c0]]
'edit' 
49[[#526c01c0]]
'edit' 
410[[#526c01c0]]
'unarchive' 
411[[#526c01c0]]
'archive' 
412[[#526c01c0]]
'unpublish' 
413[[#526c01c0]]
'unpublish' 
414[[#526c01c0]]
'assign' 
415[[#526c01c0]]
'default' 
416[[#526c01c0]]
'publish' 
417[[#526c01c0]]
'publish' 
418[[#526c01c0]]
'new' 
419[[#526c01c0]]
'new' 
51[[#526c00a0]]
FALSE 
52[[#526c00a0]]
FALSE 
53[[#526c00a0]]
FALSE 
54[[#526c00a0]]
TRUE 
55[[#526c00a0]]
TRUE 
56[[#526c00a0]]
TRUE 
57[[#526c00a0]]
TRUE 
58[[#526c00a0]]
TRUE 
59[[#526c00a0]]
TRUE 
510[[#526c00a0]]
TRUE 
511[[#526c00a0]]
TRUE 
512[[#526c00a0]]
TRUE 
513[[#526c00a0]]
FALSE 
514[[#526c00a0]]
TRUE 
515[[#526c00a0]]
TRUE 
516[[#526c00a0]]
TRUE 
517[[#526c00a0]]
FALSE 
518[[#526c00a0]]
FALSE 
519[[#526c00a0]]
FALSE 
61[[#526c00c0]]
FALSE 
62[[#526c00c0]]
FALSE 
63[[#526c00c0]]
FALSE 
64[[#526c00c0]]
TRUE 
65[[#526c00c0]]
FALSE 
66[[#526c00c0]]
TRUE 
67[[#526c00c0]]
FALSE 
68[[#526c00c0]]
TRUE 
69[[#526c00c0]]
FALSE 
610[[#526c00c0]]
FALSE 
611[[#526c00c0]]
FALSE 
612[[#526c00c0]]
FALSE 
613[[#526c00c0]]
FALSE 
614[[#526c00c0]]
FALSE 
615[[#526c00c0]]
FALSE 
616[[#526c00c0]]
FALSE 
617[[#526c00c0]]
FALSE 
618[[#526c00c0]]
TRUE 
619[[#526c00c0]]
FALSE