public function delete($RoleID = null, $JunctionTable = null, $JunctionColumn = null, $JunctionID = null)
{
// Build the where clause.
$Where = array();
if (!is_null($RoleID)) {
$Where['RoleID'] = $RoleID;
}
if (!is_null($JunctionTable)) {
$Where['JunctionTable'] = $JunctionTable;
$Where['JunctionColumn'] = $JunctionColumn;
$Where['JunctionID'] = $JunctionID;
}
$this->SQL->delete('Permission', $Where);
if (!is_null($RoleID)) {
// Rebuild the permission cache.
}
}