public function UcWishlistManager::selectAccounts in UC Wish List 8
Parameters
$rid: refers to the user role id for a specific user account.
$created: refers to the created user for a particular user account.
File
- src/
Database/ UcWishlistManager.php, line 201
Class
- UcWishlistManager
- Defines an UcWishlistManager service.
Namespace
Drupal\uc_wishlist\DatabaseCode
public function selectAccounts($rid, $created) {
$query = $this->connection
->select('users', 'u');
$query
->innerJoin('user_roles', 'ur', 'u.uid = ur.uid');
$query
->where('ur.rid = :rid AND u.created < :created', [
':rid' => $rid,
':created' => $created,
]);
return $query
->execute();
}