Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
41 | 2 | 1 | 0.968 | class_member_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 41 | 231 | libraries/joomla/application/categories.php |
2 | 24 | 81 | libraries/joomla/base/tree.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; } |
| ||||
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; } |
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#46d06b60]] | /** * Adds a child to the current element of the Categorytree * @param $node * @return void */ public |
1 | 2 | [[#46d06b60]] |