PHP Class Bolt\Storage\Repository\UsersRepository

Inheritance: extends Bolt\Storage\Repository
显示文件 Open project: bolt/bolt Class Usage Examples

Public Methods

Method Description
deleteUser ( string | integer $userId ) : integer Delete a user.
deleteUserQuery ( string | integer $userId ) : Doctrine\DBAL\Query\QueryBuilder Get the user deletion query.
getUser ( string | integer $userId ) : Bolt\Storage\Entity\Users | false Get a user.
getUserAuthData ( string | integer $userId ) : Bolt\Storage\Entity\Users | false Get a user's authentication data.
getUserAuthDataQuery ( string | integer $userId ) : Doctrine\DBAL\Query\QueryBuilder Get the user fetch query.
getUserQuery ( string | integer $userId ) : Doctrine\DBAL\Query\QueryBuilder Get the user fetch query.
getUserShadowAuth ( $shadowtoken ) : Bolt\Storage\Entity\Users | false Get user based on password reset notification.
getUserShadowAuthQuery ( $shadowtoken ) : Doctrine\DBAL\Query\QueryBuilder
getUsers ( ) : Bolt\Storage\Entity\Users[] | false Get all the system users.
hasUsers ( ) : integer Check to see if there are users in the user table.
hasUsersQuery ( ) : Doctrine\DBAL\Query\QueryBuilder
save ( $entity, $silent = null )
update ( $entity, $exclusions = [] )

Protected Methods

Method Description
unsetSensitiveFields ( Bolt\Storage\Entity\Users $entity ) Null sensitive data that doesn't need to be passed around.

Method Details

deleteUser() public method

Delete a user.
public deleteUser ( string | integer $userId ) : integer
$userId string | integer Either the user's ID, username, or email address.
return integer

deleteUserQuery() public method

Get the user deletion query.
public deleteUserQuery ( string | integer $userId ) : Doctrine\DBAL\Query\QueryBuilder
$userId string | integer
return Doctrine\DBAL\Query\QueryBuilder

getUser() public method

Get a user.
public getUser ( string | integer $userId ) : Bolt\Storage\Entity\Users | false
$userId string | integer Either the user's ID, username, or email address.
return Bolt\Storage\Entity\Users | false

getUserAuthData() public method

Get a user's authentication data.
public getUserAuthData ( string | integer $userId ) : Bolt\Storage\Entity\Users | false
$userId string | integer
return Bolt\Storage\Entity\Users | false

getUserAuthDataQuery() public method

Get the user fetch query.
public getUserAuthDataQuery ( string | integer $userId ) : Doctrine\DBAL\Query\QueryBuilder
$userId string | integer
return Doctrine\DBAL\Query\QueryBuilder

getUserQuery() public method

Get the user fetch query.
public getUserQuery ( string | integer $userId ) : Doctrine\DBAL\Query\QueryBuilder
$userId string | integer
return Doctrine\DBAL\Query\QueryBuilder

getUserShadowAuth() public method

Get user based on password reset notification.
public getUserShadowAuth ( $shadowtoken ) : Bolt\Storage\Entity\Users | false
return Bolt\Storage\Entity\Users | false

getUserShadowAuthQuery() public method

public getUserShadowAuthQuery ( $shadowtoken ) : Doctrine\DBAL\Query\QueryBuilder
return Doctrine\DBAL\Query\QueryBuilder

getUsers() public method

Get all the system users.
public getUsers ( ) : Bolt\Storage\Entity\Users[] | false
return Bolt\Storage\Entity\Users[] | false

hasUsers() public method

Check to see if there are users in the user table.
public hasUsers ( ) : integer
return integer

hasUsersQuery() public method

public hasUsersQuery ( ) : Doctrine\DBAL\Query\QueryBuilder
return Doctrine\DBAL\Query\QueryBuilder

save() public method

public save ( $entity, $silent = null )

unsetSensitiveFields() protected method

Null sensitive data that doesn't need to be passed around.
protected unsetSensitiveFields ( Bolt\Storage\Entity\Users $entity )
$entity Bolt\Storage\Entity\Users

update() public method

public update ( $entity, $exclusions = [] )