PHP Class Cartalyst\Sentinel\Activations\IlluminateActivationRepository

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

Protected Properties

Property Type Description
$expires integer The activation expiration time, in seconds.
$model string The Eloquent activation model name.

Public Methods

Method 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}

Protected Methods

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

Method Details

__construct() public method

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

complete() public method

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

completed() public method

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

create() public method

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

exists() public method

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

expires() protected method

Returns the expiration date.
protected expires ( ) : Carbon\Carbon
return Carbon\Carbon

generateActivationCode() protected method

Return a random string for an activation code.
protected generateActivationCode ( ) : string
return string

remove() public method

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

removeExpired() public method

{@inheritDoc}
public removeExpired ( )

Property Details

$expires protected_oe property

The activation expiration time, in seconds.
protected int $expires
return integer

$model protected_oe property

The Eloquent activation model name.
protected string $model
return string