| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 7 | 3 | 0.984 | statement_sequence[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 365 | libraries/joomla/access/access.php |
| 2 | 10 | 105 | libraries/joomla/access/helper.php |
| 3 | 10 | 176 | libraries/joomla/access/helper.php |
| 4 | 10 | 371 | libraries/joomla/access/helper.php |
| 5 | 10 | 456 | libraries/joomla/access/helper.php |
| 6 | 10 | 517 | libraries/joomla/access/helper.php |
| 7 | 10 | 719 | libraries/joomla/access/helper.php |
| ||||
// Check to see if the section exists.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_sections`'
. ' WHERE `name` = '
. $db->Quote($section));
$sectionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| ||||
// Check to see if the section exists.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_sections`'
. ' WHERE `name` = '
. $db->Quote($section));
$sectionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| ||||
// Check to see if the section already exists.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_sections`'
. ' WHERE `name` = '
. $db->Quote($name));
$sectionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| ||||
// Check to see if the section exists.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_sections`'
. ' WHERE `name` = '
. $db->Quote($section));
$sectionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| ||||
// Get the id for the action.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_actions`'
. ' WHERE `name` = '
. $db->Quote($name));
$actionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| ||||
// Check to see if the section already exists.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_sections`'
. ' WHERE `name` = '
. $db->Quote($section));
$sectionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| ||||
// Check to see if the section already exists.
$db->setQuery(
'SELECT `id`'
. ' FROM `#__access_sections`'
. ' WHERE `name` = '
. $db->Quote($section));
$sectionId= $db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| |||
// Check to see if the section exists.
// Check to see if the section already exists.
// Get the id for the action.
$db->setQuery('SELECT `id`'
. [[#variable55789240]]
. ' WHERE `name` = '
. $db->Quote( [[#variable55789140]]));
[[#variable55789180]]=$db->loadResult();
// Check for a database error.
if ($db->getErrorNum()) {
return new JException($db->getErrorMsg());
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#55789240]] | ' FROM `#__access_sections`' |
| 1 | 2 | [[#55789240]] | ' FROM `#__access_sections`' |
| 1 | 3 | [[#55789240]] | ' FROM `#__access_actions`' |
| 1 | 4 | [[#55789240]] | ' FROM `#__access_sections`' |
| 1 | 5 | [[#55789240]] | ' FROM `#__access_sections`' |
| 1 | 6 | [[#55789240]] | ' FROM `#__access_sections`' |
| 1 | 7 | [[#55789240]] | ' FROM `#__access_sections`' |
| 2 | 1 | [[#55789140]] | $section |
| 2 | 2 | [[#55789140]] | $name |
| 2 | 3 | [[#55789140]] | $name |
| 2 | 4 | [[#55789140]] | $section |
| 2 | 5 | [[#55789140]] | $section |
| 2 | 6 | [[#55789140]] | $section |
| 2 | 7 | [[#55789140]] | $section |
| 3 | 1 | [[#55789180]] | $sectionId |
| 3 | 2 | [[#55789180]] | $sectionId |
| 3 | 3 | [[#55789180]] | $actionId |
| 3 | 4 | [[#55789180]] | $sectionId |
| 3 | 5 | [[#55789180]] | $sectionId |
| 3 | 6 | [[#55789180]] | $sectionId |
| 3 | 7 | [[#55789180]] | $sectionId |