diff --git a/classes/MouselineRepository.php b/classes/MouselineRepository.php index a18a0d192a479c563d68a7b2d72d17fcadfa7674..2477fa433db258d7c7bc009d2175c02a93426f45 100644 --- a/classes/MouselineRepository.php +++ b/classes/MouselineRepository.php @@ -176,6 +176,20 @@ class MouselineRepository * @param $limit * @return Mouseline[] */ + + + /** + * Return IDs of all Mouselines. + * + * @return array IDs found + */ + public static function getAllIds(){ + $results = db_select(self::$tableName,'id') + ->fields('id',['id']) + ->execute() + ->fetchCol(); + return $results; + } public static function findAndSortByCreatedDateLimit($limit) { // sharing level condition $sl_condition = MouselineSharingLevel::getDatabaseCondition();