public function FeedsAccountSwitcher::__construct in Feeds 7.2
Constructs a new FeedsAccountSwitcher.
Parameters
object $current_user: (optional) The current user.
File
- includes/
FeedsAccountSwitcher.inc, line 44 - Contains FeedsAccountSwitcher class.
Class
- FeedsAccountSwitcher
- An implementation of FeedsAccountSwitcherInterface.
Code
public function __construct($current_user = NULL) {
if (is_null($current_user)) {
global $user;
$this->currentUser = $user;
}
else {
$this->currentUser = $current_user;
}
}