PHP Class Cartalyst\Sentinel\Users\EloquentUser

Inheritance: extends Illuminate\Database\Eloquent\Model, implements Cartalyst\Sentinel\Roles\RoleableInterface, implements Cartalyst\Sentinel\Permissions\PermissibleInterface, implements Cartalyst\Sentinel\Persistences\PersistableInterface, implements Cartalyst\Sentinel\Users\UserInterface, use trait Cartalyst\Sentinel\Permissions\PermissibleTrait
Afficher le fichier Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Свойство Type Description
$activationsModel string The Eloquent activations model name.
$fillable {@inheritDoc}
$hidden {@inheritDoc}
$loginNames array Array of login column names.
$persistableKey {@inheritDoc}
$persistableRelationship {@inheritDoc}
$persistencesModel string The Eloquent persistences model name.
$remindersModel string The Eloquent reminders model name.
$rolesModel string The Eloquent roles model name.
$table {@inheritDoc}
$throttlingModel string The Eloquent throttling model name.

Méthodes publiques

Méthode Description
__call ( string $method, array $parameters ) : mixed Dynamically pass missing methods to the user.
activations ( ) : Illuminate\Database\Eloquent\Relations\HasMany Returns the activations relationship.
delete ( ) {@inheritDoc}
generatePersistenceCode ( ) {@inheritDoc}
getActivationsModel ( ) : string Returns the activations model.
getLoginNames ( ) : array Returns an array of login column names.
getPermissionsAttribute ( mixed $permissions ) : array Get mutator for the "permissions" attribute.
getPersistableId ( ) {@inheritDoc}
getPersistableKey ( ) {@inheritDoc}
getPersistableRelationship ( ) {@inheritDoc}
getPersistencesModel ( ) : string Returns the persistences model.
getRemindersModel ( ) : string Returns the reminders model.
getRoles ( ) {@inheritDoc}
getRolesModel ( ) : string Returns the roles model.
getThrottlingModel ( ) : string Returns the throttling model.
getUserId ( ) {@inheritDoc}
getUserLogin ( ) {@inheritDoc}
getUserLoginName ( ) {@inheritDoc}
getUserPassword ( ) {@inheritDoc}
inRole ( $role ) {@inheritDoc}
persistences ( ) : Illuminate\Database\Eloquent\Relations\HasMany Returns the persistences relationship.
reminders ( ) : Illuminate\Database\Eloquent\Relations\HasMany Returns the reminders relationship.
roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany Returns the roles relationship.
setActivationsModel ( string $activationsModel ) : void Sets the activations model.
setPermissionsAttribute ( array $permissions ) : void Set mutator for the "permissions" attribute.
setPersistableKey ( $key ) {@inheritDoc}
setPersistableRelationship ( $persistableRelationship ) {@inheritDoc}
setPersistencesModel ( string $persistencesModel ) : void Sets the persistences model.
setRemindersModel ( string $remindersModel ) : void Sets the reminders model.
setRolesModel ( string $rolesModel ) : void Sets the roles model.
setThrottlingModel ( string $throttlingModel ) : void Sets the throttling model.
throttle ( ) : Illuminate\Database\Eloquent\Relations\HasMany Returns the throttle relationship.

Méthodes protégées

Méthode Description
createPermissions ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface Creates a permissions object.

Method Details

__call() public méthode

Dynamically pass missing methods to the user.
public __call ( string $method, array $parameters ) : mixed
$method string
$parameters array
Résultat mixed

activations() public méthode

Returns the activations relationship.
public activations ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

createPermissions() protected méthode

Creates a permissions object.
protected createPermissions ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface
Résultat Cartalyst\Sentinel\Permissions\PermissionsInterface

delete() public méthode

{@inheritDoc}
public delete ( )

generatePersistenceCode() public méthode

{@inheritDoc}

getActivationsModel() public static méthode

Returns the activations model.
public static getActivationsModel ( ) : string
Résultat string

getLoginNames() public méthode

Returns an array of login column names.
public getLoginNames ( ) : array
Résultat array

getPermissionsAttribute() public méthode

Get mutator for the "permissions" attribute.
public getPermissionsAttribute ( mixed $permissions ) : array
$permissions mixed
Résultat array

getPersistableId() public méthode

{@inheritDoc}
public getPersistableId ( )

getPersistableKey() public méthode

{@inheritDoc}
public getPersistableKey ( )

getPersistableRelationship() public méthode

{@inheritDoc}

getPersistencesModel() public static méthode

Returns the persistences model.
public static getPersistencesModel ( ) : string
Résultat string

getRemindersModel() public static méthode

Returns the reminders model.
public static getRemindersModel ( ) : string
Résultat string

getRoles() public méthode

{@inheritDoc}
public getRoles ( )

getRolesModel() public static méthode

Returns the roles model.
public static getRolesModel ( ) : string
Résultat string

getThrottlingModel() public static méthode

Returns the throttling model.
public static getThrottlingModel ( ) : string
Résultat string

getUserId() public méthode

{@inheritDoc}
public getUserId ( )

getUserLogin() public méthode

{@inheritDoc}
public getUserLogin ( )

getUserLoginName() public méthode

{@inheritDoc}
public getUserLoginName ( )

getUserPassword() public méthode

{@inheritDoc}
public getUserPassword ( )

inRole() public méthode

{@inheritDoc}
public inRole ( $role )

persistences() public méthode

Returns the persistences relationship.
public persistences ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

reminders() public méthode

Returns the reminders relationship.
public reminders ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

roles() public méthode

Returns the roles relationship.
public roles ( ) : Illuminate\Database\Eloquent\Relations\BelongsToMany
Résultat Illuminate\Database\Eloquent\Relations\BelongsToMany

setActivationsModel() public static méthode

Sets the activations model.
public static setActivationsModel ( string $activationsModel ) : void
$activationsModel string
Résultat void

setPermissionsAttribute() public méthode

Set mutator for the "permissions" attribute.
public setPermissionsAttribute ( array $permissions ) : void
$permissions array
Résultat void

setPersistableKey() public méthode

{@inheritDoc}
public setPersistableKey ( $key )

setPersistableRelationship() public méthode

{@inheritDoc}
public setPersistableRelationship ( $persistableRelationship )

setPersistencesModel() public static méthode

Sets the persistences model.
public static setPersistencesModel ( string $persistencesModel ) : void
$persistencesModel string
Résultat void

setRemindersModel() public static méthode

Sets the reminders model.
public static setRemindersModel ( string $remindersModel ) : void
$remindersModel string
Résultat void

setRolesModel() public static méthode

Sets the roles model.
public static setRolesModel ( string $rolesModel ) : void
$rolesModel string
Résultat void

setThrottlingModel() public static méthode

Sets the throttling model.
public static setThrottlingModel ( string $throttlingModel ) : void
$throttlingModel string
Résultat void

throttle() public méthode

Returns the throttle relationship.
public throttle ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Résultat Illuminate\Database\Eloquent\Relations\HasMany

Property Details

$activationsModel protected_oe static_oe property

The Eloquent activations model name.
protected static string $activationsModel
Résultat string

$fillable protected_oe property

{@inheritDoc}
protected $fillable

$hidden protected_oe property

{@inheritDoc}
protected $hidden

$loginNames protected_oe property

Array of login column names.
protected array $loginNames
Résultat array

$persistableKey protected_oe property

{@inheritDoc}
protected $persistableKey

$persistableRelationship protected_oe property

{@inheritDoc}
protected $persistableRelationship

$persistencesModel protected_oe static_oe property

The Eloquent persistences model name.
protected static string $persistencesModel
Résultat string

$remindersModel protected_oe static_oe property

The Eloquent reminders model name.
protected static string $remindersModel
Résultat string

$rolesModel protected_oe static_oe property

The Eloquent roles model name.
protected static string $rolesModel
Résultat string

$table protected_oe property

{@inheritDoc}
protected $table

$throttlingModel protected_oe static_oe property

The Eloquent throttling model name.
protected static string $throttlingModel
Résultat string