PHP Class Owl\Repositories\Fluent\UserRepository

Inheritance: extends AbstractFluent, implements Owl\Repositories\UserRepositoryInterface
Afficher le fichier Open project: owl/owl Class Usage Examples

Protected Properties

Свойство Type Description
$table

Méthodes publiques

Méthode Description
create ( mixed $credentials ) : stdClass Create a new user.
getAll ( ) : stdClass Get all user data.
getByEmail ( string $email ) : stdClass Get a user by email.
getById ( $id ) : stdClass Get a user by user_id.
getByUsername ( string $username ) : stdClass Get a user by username.
getLikeUsername ( string $username ) : stdClass Get users by username like search.
getOwners ( ) : stdClass Get users which role is owner.
getTableName ( ) : string Get a table name.
getUsersToArray ( $users ) : array get users array
updateUser ( integer $id, string $username, string $email, integer $role ) : stdClass Update a user information(username, email, role).

Method Details

create() public méthode

Create a new user.
public create ( mixed $credentials ) : stdClass
$credentials mixed (email, username, password, role)
Résultat stdClass

getAll() public méthode

Get all user data.
public getAll ( ) : stdClass
Résultat stdClass

getByEmail() public méthode

Get a user by email.
public getByEmail ( string $email ) : stdClass
$email string
Résultat stdClass

getById() public méthode

Get a user by user_id.
public getById ( $id ) : stdClass
$id int
Résultat stdClass

getByUsername() public méthode

Get a user by username.
public getByUsername ( string $username ) : stdClass
$username string
Résultat stdClass

getLikeUsername() public méthode

Get users by username like search.
public getLikeUsername ( string $username ) : stdClass
$username string
Résultat stdClass

getOwners() public méthode

Get users which role is owner.
public getOwners ( ) : stdClass
Résultat stdClass

getTableName() public méthode

Get a table name.
public getTableName ( ) : string
Résultat string

getUsersToArray() public méthode

get users array
public getUsersToArray ( $users ) : array
Résultat array

updateUser() public méthode

Update a user information(username, email, role).
public updateUser ( integer $id, string $username, string $email, integer $role ) : stdClass
$id integer
$username string
$email string
$role integer
Résultat stdClass

Property Details

$table protected_oe property

protected $table