| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 21 | 2 | 2 | 0.975 | class_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 21 | 123 | libraries/joomla/cache/cache.php |
| 2 | 22 | 257 | libraries/joomla/session/session.php |
| ||||
/**
* Get the storage handlers
*
* @access public
* @return array An array of available storage handlers
*/
function getStores() {
jimport('joomla.filesystem.folder');
$handlers= JFolder::files(dirname( __FILE__)
. DS
. 'storage', '.php$');
$names= array();
foreach ($handlers as $handler)
{
$name= substr($handler, 0, strrpos($handler, '.'));
$class= 'JCacheStorage'
. $name;
if (!class_exists($class)) {
require_once (dirname( __FILE__)
. DS
. 'storage'
. DS
. $name
. '.php');
}
if (call_user_func_array(array( trim($class), 'test'
), NULL)) {
$names[]= $name;
}
}
return $names;
}
|
| ||||
/**
* Get the session handlers
*
* @access public
* @return array An array of available session handlers
*/
function getStores() {
jimport('joomla.filesystem.folder');
$handlers= JFolder::files(dirname( __FILE__)
. DS
. 'storage', '.php$');
$names= array();
foreach ($handlers as $handler)
{
$name= substr($handler, 0, strrpos($handler, '.'));
$class= 'JSessionStorage'
. ucfirst($name);
//Load the class only if needed
if (!class_exists($class)) {
require_once (dirname( __FILE__)
. DS
. 'storage'
. DS
. $name
. '.php');
}
if (call_user_func_array(array( trim($class), 'test'
), NULL)) {
$names[]= $name;
}
}
return $names;
}
|
| |||
/**
* Get the storage handlers
*
* @access public
* @return array An array of available storage handlers
*/
/**
* Get the session handlers
*
* @access public
* @return array An array of available session handlers
*/
function getStores() {
jimport('joomla.filesystem.folder');
$handlers=JFolder::files(dirname( __FILE__)
. DS
. 'storage','.php$');
$names=array();
foreach ($handlers as $handler) {
$name=substr($handler,0,strrpos($handler,'.'));
$class= [[#variable507d92c0]]
. [[#variable507d91a0]];
//Load the class only if needed
if (!class_exists($class)) {
require_once (dirname( __FILE__)
. DS
. 'storage'
. DS
. $name
. '.php');
}
if (call_user_func_array(array( trim($class),
'test'
),NULL)) {
$names[]=$name;
}
}
return $names;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#507d92c0]] | 'JCacheStorage' |
| 1 | 2 | [[#507d92c0]] | 'JSessionStorage' |
| 2 | 1 | [[#507d91a0]] | $name |
| 2 | 2 | [[#507d91a0]] | ucfirst($name) |