Remove model OverdueNotification

This commit is contained in:
Frederic Guillot
2016-03-04 16:31:34 -05:00
parent abe9371f32
commit a7c157df3c
6 changed files with 68 additions and 85 deletions

View File

@@ -135,23 +135,4 @@ abstract class Base extends \Kanboard\Core\Base
return $start_column.' IS NOT NULL AND '.$start_column.' > 0 AND ('.implode(' OR ', $conditions).')';
}
/**
* Group a collection of records by a column
*
* @access public
* @param array $collection
* @param string $column
* @return array
*/
public function groupByColumn(array $collection, $column)
{
$result = array();
foreach ($collection as $item) {
$result[$item[$column]][] = $item;
}
return $result;
}
}