CloneSet323


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16350.965statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116384
libraries/joomla/access/helper.php
216530
libraries/joomla/access/helper.php
316732
libraries/joomla/access/helper.php
Clone Instance
1
Line Count
16
Source Line
384
Source File
libraries/joomla/access/helper.php

                // If the section does not exist, throw an exception.
                if (empty($sectionId)) {
                        return new JException(JText::_('Access_Section_Invalid'));
                      }

                // Check to see if the action already exists.
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__access_actions`'
                        . ' WHERE `name` = '
                        .                  $db->Quote($name)
                        . ' AND `section_id` = '
                        .                      (int) $sectionId);
                $actionId=  $db->loadResult();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        return new JException($db->getErrorMsg());
                      }


Clone Instance
2
Line Count
16
Source Line
530
Source File
libraries/joomla/access/helper.php

                        // If the section does not exist, throw an exception.
                        if (empty($sectionId)) {
                                return new JException(JText::_('Access_Section_Invalid'));
                              }

                        // Check to see if the user group already exists.
                        $db->setQuery(
                                'SELECT `id`'
                                . ' FROM `#__usergroups`'
                                . ' WHERE `title` = '
                                .                   $db->Quote($title)
                                . ' AND `section_id` = '
                                .                      (int) $sectionId);
                        $groupId=  $db->loadResult();
                        // Check for a database error.
                        if ($db->getErrorNum()) {
                                return new JException($db->getErrorMsg());
                              }


Clone Instance
3
Line Count
16
Source Line
732
Source File
libraries/joomla/access/helper.php

                // If the section does not exist, throw an exception.
                if (empty($sectionId)) {
                        return new JException(JText::_('Access_Section_Invalid'));
                      }

                // Check to see if the assetgroup already exists.
                $db->setQuery(
                        'SELECT `id`'
                        . ' FROM `#__access_assetgroups`'
                        . ' WHERE `title` = '
                        .                   $db->Quote($title)
                        . ' AND `section_id` = '
                        .                      (int) $sectionId);
                $groupId=  (int) $db->loadResult();
                // Check for a database error.
                if ($db->getErrorNum()) {
                        return new JException($db->getErrorMsg());
                      }


Clone AbstractionParameter Count: 5Parameter Bindings

// If the section does not exist, throw an exception.
if (empty($sectionId)) {
  return new JException(JText::_('Access_Section_Invalid'));
}
// Check to see if the action already exists.
// Check to see if the user group already exists.
// Check to see if the assetgroup already exists.
$db->setQuery('SELECT `id`'
              .  [[#variable50545be0]]
              .  [[#variable50545b20]]
              . $db->Quote( [[#variable50545a80]])
              . ' AND `section_id` = '
              . (int) $sectionId);
 [[#variable4b65cf80]]= [[#variable50545ac0]]->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
  return new JException($db->getErrorMsg());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#50545be0]]
' FROM `#__access_actions`' 
12[[#50545be0]]
' FROM `#__usergroups`' 
13[[#50545be0]]
' FROM `#__access_assetgroups`' 
21[[#50545b20]]
' WHERE `name` = ' 
22[[#50545b20]]
' WHERE `title` = ' 
23[[#50545b20]]
' WHERE `title` = ' 
31[[#50545a80]]
$name 
32[[#50545a80]]
$title 
33[[#50545a80]]
$title 
41[[#4b65cf80]]
$actionId 
42[[#4b65cf80]]
$groupId 
43[[#4b65cf80]]
$groupId 
51[[#50545ac0]]
$db 
52[[#50545ac0]]
$db 
53[[#50545ac0]]
(int) $db