PHP Class Cartalyst\Sentinel\Activations\IlluminateActivationRepository

Inheritance: implements Cartalyst\Sentinel\Activations\ActivationRepositoryInterface, use trait Cartalyst\Support\Traits\RepositoryTrait
Afficher le fichier Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Свойство Type Description
$expires integer The activation expiration time, in seconds.
$model string The Eloquent activation model name.

Méthodes publiques

Méthode Description
__construct ( string $model = null, integer $expires = null ) : void Create a new Illuminate activation repository.
complete ( Cartalyst\Sentinel\Users\UserInterface $user, $code ) {@inheritDoc}
completed ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
create ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
exists ( Cartalyst\Sentinel\Users\UserInterface $user, $code = null ) {@inheritDoc}
remove ( Cartalyst\Sentinel\Users\UserInterface $user ) {@inheritDoc}
removeExpired ( ) {@inheritDoc}

Méthodes protégées

Méthode Description
expires ( ) : Carbon\Carbon Returns the expiration date.
generateActivationCode ( ) : string Return a random string for an activation code.

Method Details

__construct() public méthode

Create a new Illuminate activation repository.
public __construct ( string $model = null, integer $expires = null ) : void
$model string
$expires integer
Résultat void

complete() public méthode

{@inheritDoc}
public complete ( Cartalyst\Sentinel\Users\UserInterface $user, $code )
$user Cartalyst\Sentinel\Users\UserInterface

completed() public méthode

{@inheritDoc}
public completed ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

create() public méthode

{@inheritDoc}
public create ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

exists() public méthode

{@inheritDoc}
public exists ( Cartalyst\Sentinel\Users\UserInterface $user, $code = null )
$user Cartalyst\Sentinel\Users\UserInterface

expires() protected méthode

Returns the expiration date.
protected expires ( ) : Carbon\Carbon
Résultat Carbon\Carbon

generateActivationCode() protected méthode

Return a random string for an activation code.
protected generateActivationCode ( ) : string
Résultat string

remove() public méthode

{@inheritDoc}
public remove ( Cartalyst\Sentinel\Users\UserInterface $user )
$user Cartalyst\Sentinel\Users\UserInterface

removeExpired() public méthode

{@inheritDoc}
public removeExpired ( )

Property Details

$expires protected_oe property

The activation expiration time, in seconds.
protected int $expires
Résultat integer

$model protected_oe property

The Eloquent activation model name.
protected string $model
Résultat string