Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 5 | 0.950 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 228 | libraries/joomla/cache/cache.php |
2 | 11 | 253 | libraries/joomla/cache/cache.php |
| ||||
/** * Remove a cached data entry by id and group * * @abstract * @access public * @param string $id The cache data id * @param string $group The cache data group * @return boolean True on success, false otherwise * @since 1.5 */ function remove($id, $group=NULL) { // Get the default group $group= ($group) ? $group : $this->_options['defaultgroup']; // Get the storage handler $handler= &$this->_getStorage(); if (!JError::isError($handler)) { return $handler->remove($id, $group); } return FALSE; } |
| ||||
/** * Clean cache for a group given a mode. * * group mode : cleans all cache in the group * notgroup mode : cleans all cache not in the group * * @access public * @param string $group The cache data group * @param string $mode The mode for cleaning cache [group|notgroup] * @return boolean True on success, false otherwise * @since 1.5 */ function clean($group=NULL, $mode='group') { // Get the default group $group= ($group) ? $group : $this->_options['defaultgroup']; // Get the storage handler $handler= &$this->_getStorage(); if (!JError::isError($handler)) { return $handler->clean($group, $mode); } return FALSE; } |
| |||
/** * Clean cache for a group given a mode. * * group mode : cleans all cache in the group * notgroup mode : cleans all cache not in the group * * @access public * @param string $group The cache data group * @param string $mode The mode for cleaning cache [group|notgroup] * @return boolean True on success, false otherwise * @since 1.5 */ /** * Remove a cached data entry by id and group * * @abstract * @access public * @param string $id The cache data id * @param string $group The cache data group * @return boolean True on success, false otherwise * @since 1.5 */ function [[#variable525661e0]]( [[#variable52566160]], [[#variable525660e0]]= [[#variable52566040]]) { // Get the default group $group=($group) ? $group : $this->_options['defaultgroup']; // Get the storage handler $handler= &$this->_getStorage(); if (!JError::isError($handler)) { return $handler-> [[#variable525661e0]]( [[#variable52527fa0]], [[#variable525660e0]]); } return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#525661e0]] | clean |
1 | 2 | [[#525661e0]] | remove |
2 | 1 | [[#52566160]] | $group=NULL |
2 | 2 | [[#52566160]] | $id |
3 | 1 | [[#525660e0]] | $mode |
3 | 2 | [[#525660e0]] | $group |
4 | 1 | [[#52566040]] | 'group' |
4 | 2 | [[#52566040]] | NULL |
5 | 1 | [[#52527fa0]] | $group |
5 | 2 | [[#52527fa0]] | $id |