| | <?php |
| |
|
| | namespace Kanboard\User; |
| |
|
| | use Kanboard\Core\User\UserProviderInterface; |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | class DatabaseUserProvider implements UserProviderInterface |
| | { |
| | |
| | |
| | |
| | |
| | |
| | |
| | protected $user = array(); |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function __construct(array $user) |
| | { |
| | $this->user = $user; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function isUserCreationAllowed() |
| | { |
| | return false; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getInternalId() |
| | { |
| | return $this->user['id']; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getExternalIdColumn() |
| | { |
| | return ''; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getExternalId() |
| | { |
| | return ''; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getRole() |
| | { |
| | return empty($this->user['role']) ? '' : $this->user['role']; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getUsername() |
| | { |
| | return empty($this->user['username']) ? '' : $this->user['username']; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getName() |
| | { |
| | return empty($this->user['name']) ? '' : $this->user['name']; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getEmail() |
| | { |
| | return empty($this->user['email']) ? '' : $this->user['email']; |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getExternalGroupIds() |
| | { |
| | return array(); |
| | } |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | public function getExtraAttributes() |
| | { |
| | return array(); |
| | } |
| | } |
| |
|