CloneSet732


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
41210.968class_member_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
141231
libraries/joomla/application/categories.php
22481
libraries/joomla/base/tree.php
Clone Instance
1
Line Count
41
Source Line
231
Source File
libraries/joomla/application/categories.php

        /**
         * Adds a child to the current element of the Categorytree
         * @param $node
         * @return void
         */
        public

               function addChild( &$node) {

                $node->setParent($this);
                $this->_children[]=  & $node;
              }
        /**
         * Returns the parent category of the current category
         * @return JCategoryNode
         */
        public

               function &getParent() {

                return $this->_parent;
              }
        /**
         * Sets the parent for the current category
         * @param $node
         * @return void
         */
        public

               function setParent( &$node) {

                $this->_parent = & $node;
              }
        /**
         * Returns true if the category has children
         * @return boolean
         */
        public

               function hasChildren() {

                return count($this->_children);
              }
        /**
         * Returns the children of the Category
         * @return array
         */
        public

               function &getChildren() {

                return $this->_children;
              }


Clone Instance
2
Line Count
24
Source Line
81
Source File
libraries/joomla/base/tree.php

        function addChild( &$node) {

                $node->setParent($this);
                $this->_children[]=  & $node;
              }

        function &getParent() {

                return $this->_parent;
              }

        function setParent( &$node) {

                $this->_parent = & $node;
              }

        function hasChildren() {

                return count($this->_children);
              }

        function &getChildren() {

                return $this->_children;
              }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variable46d06b60]]

function addChild( &$node) {
  $node->setParent($this);
  $this->_children[]= &$node;
}
 [[#variable46d06b60]]

 function &getParent() {
   return $this->_parent;
 }
 [[#variable46d06b60]]

  function setParent( &$node) {
    $this->_parent = &$node;
  }
 [[#variable46d06b60]]

   function hasChildren() {
     return count($this->_children);
   }
 [[#variable46d06b60]]

    function &getChildren() {
      return $this->_children;
    }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#46d06b60]]
/**
 * Adds a child to the current element of the Categorytree
 * @param $node
 * @return void
 */
public 
12[[#46d06b60]]