CloneSet63


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
33450.976toplevel_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13520
administrator/components/com_categories/controller.php
23319
administrator/components/com_content/controller.php
33520
administrator/components/com_menus/controller.php
43318
administrator/components/com_weblinks/controller.php
Clone Instance
1
Line Count
35
Source Line
20
Source File
administrator/components/com_categories/controller.php

/**
 * Categories view class for the Category package.
 *
 * @package             Joomla.Administrator
 * @subpackage  com_categories
 * @since               1.6
 */
class CategoriesController extends JController {

        /**
         * Method to display a view.
         *
         * @return      void
         */
        function display() {

                // Get the document object.
                $document=  &JFactory::getDocument();

                // Set the default view name and format from the Request.
                $vName=           JRequest::getWord('view', 'categories');
                $vFormat=         $document->getType();
                $lName=           JRequest::getWord('layout', 'default');

                // Get and render the view.
                if ($view=  &$this->getView($vName, $vFormat))
                {
                        // Get the model for the view.
                        $model=  &$this->getModel($vName);

                        // Push the model into the view (as default).
                        $view->setModel($model, TRUE);
                        $view->setLayout($lName);

                        // Push document object into the view.
                        $view->assignRef('document', $document);

                        $view->display();

                        // Load the submenu.
                        require_once JPATH_COMPONENT
                                     .               DS
                                     .                  'helpers'
                                     .                            DS
                                     .                               'categories.php';
                        CategoriesHelper::addSubmenu($model->getState('filter.extension'));
                      }
              }
      }


Clone Instance
2
Line Count
33
Source Line
19
Source File
administrator/components/com_content/controller.php

/**
 * Component Controller
 *
 * @package             Joomla.Administrator
 * @subpackage  com_content
 */
class ContentController extends JController {

        /**
         * Display the view
         */
        function display() {

                // Get the document object.
                $document=        &JFactory::getDocument();

                // Set the default view name and format from the Request.
                $vName=           JRequest::getWord('view', 'articles');
                $vFormat=         $document->getType();
                $lName=           JRequest::getWord('layout', 'default');

                // Get and render the view.
                if ($view=  &$this->getView($vName, $vFormat))
                {
                        // Get the model for the view.
                        $model=  &$this->getModel($vName);

                        // Push the model into the view (as default).
                        $view->setModel($model, TRUE);
                        $view->setLayout($lName);

                        // Push document object into the view.
                        $view->assignRef('document', $document);

                        $view->display();

                        // Load the submenu.
                        require_once JPATH_COMPONENT
                                     .               DS
                                     .                  'helpers'
                                     .                            DS
                                     .                               'content.php';
                        ContentHelper::addSubmenu($vName);
                      }
              }
      }


Clone Instance
3
Line Count
35
Source Line
20
Source File
administrator/components/com_menus/controller.php

/**
 * Base controller class for Menu Manager.
 *
 * @package             Joomla.Administrator
 * @subpackage  com_menus
 * @version             1.6
 */
class MenusController extends JController {

        /**
         * Method to display a view.
         *
         * @return      void
         */
        function display() {

                // Get the document object.
                $document=  &JFactory::getDocument();

                // Set the default view name and format from the Request.
                $vName=           JRequest::getWord('view', 'items');
                $vFormat=         $document->getType();
                $lName=           JRequest::getWord('layout', 'default');

                // Get and render the view.
                if ($view=  &$this->getView($vName, $vFormat))
                {
                        // Get the model for the view.
                        $model=  &$this->getModel($vName);

                        // Push the model into the view (as default).
                        $view->setModel($model, TRUE);
                        $view->setLayout($lName);

                        // Push document object into the view.
                        $view->assignRef('document', $document);

                        $view->display();

                        // Load the submenu.
                        require_once JPATH_COMPONENT
                                     .               DS
                                     .                  'helpers'
                                     .                            DS
                                     .                               'menus.php';
                        MenusHelper::addSubmenu($vName);
                      }
              }
      }


Clone Instance
4
Line Count
33
Source Line
18
Source File
administrator/components/com_weblinks/controller.php

/**
 * Weblinks Weblink Controller
 *
 * @package             Joomla.Administrator
 * @subpackage  com_weblinks
 * @since               1.5
 */
class WeblinksController extends JController {

        /**
         * Method to display a view.
         */
        function display() {

                // Get the document object.
                $document=  &JFactory::getDocument();

                // Set the default view name and format from the Request.
                $vName=           JRequest::getWord('view', 'weblinks');
                $vFormat=         $document->getType();
                $lName=           JRequest::getWord('layout', 'default');

                // Get and render the view.
                if ($view=  &$this->getView($vName, $vFormat))
                {
                        // Get the model for the view.
                        $model=  &$this->getModel($vName);

                        // Push the model into the view (as default).
                        $view->setModel($model, TRUE);
                        $view->setLayout($lName);

                        // Push document object into the view.
                        $view->assignRef('document', $document);

                        $view->display();

                        // Load the submenu.
                        require_once JPATH_COMPONENT
                                     .               DS
                                     .                  'helpers'
                                     .                            DS
                                     .                               'weblinks.php';
                        WeblinksHelper::addSubmenu($vName);
                      }
              }
      }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
 * Weblinks Weblink Controller
 *
 * @package             Joomla.Administrator
 * @subpackage  com_weblinks
 * @since               1.5
 */
/**
 * Base controller class for Menu Manager.
 *
 * @package             Joomla.Administrator
 * @subpackage  com_menus
 * @version             1.6
 */
/**
 * Component Controller
 *
 * @package             Joomla.Administrator
 * @subpackage  com_content
 */
/**
 * Categories view class for the Category package.
 *
 * @package             Joomla.Administrator
 * @subpackage  com_categories
 * @since               1.6
 */
class [[#variable45079ea0]]extends JController {

  /**
           * Method to display a view.
           */
  /**
           * Method to display a view.
           *
           * @return      void
           */
  /**
           * Display the view
           */
  function display() {
    // Get the document object.
    $document= &JFactory::getDocument();
    // Set the default view name and format from the Request.
    $vName=JRequest::getWord('view', [[#variable45079e40]]);
    $vFormat=$document->getType();
    $lName=JRequest::getWord('layout','default');
    // Get and render the view.
    if ($view= &$this->getView($vName,$vFormat)) {
      // Get the model for the view.
      $model= &$this->getModel($vName);
      // Push the model into the view (as default).
      $view->setModel($model,TRUE);
      $view->setLayout($lName);
      // Push document object into the view.
      $view->assignRef('document',$document);
      $view->display();
      // Load the submenu.
      require_once JPATH_COMPONENT
                   . DS
                   . 'helpers'
                   . DS
                   .  [[#variable45079de0]];
       [[#variable45079d60]]::addSubmenu( [[#variable45079c20]]);
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#45079ea0]]
WeblinksController 
12[[#45079ea0]]
MenusController 
13[[#45079ea0]]
ContentController 
14[[#45079ea0]]
CategoriesController 
21[[#45079e40]]
'weblinks' 
22[[#45079e40]]
'items' 
23[[#45079e40]]
'articles' 
24[[#45079e40]]
'categories' 
31[[#45079de0]]
'weblinks.php' 
32[[#45079de0]]
'menus.php' 
33[[#45079de0]]
'content.php' 
34[[#45079de0]]
'categories.php' 
41[[#45079d60]]
WeblinksHelper 
42[[#45079d60]]
MenusHelper 
43[[#45079d60]]
ContentHelper 
44[[#45079d60]]
CategoriesHelper 
51[[#45079c20]]
$vName 
52[[#45079c20]]
$vName 
53[[#45079c20]]
$vName 
54[[#45079c20]]
$model->getState('filter.extension')