UsersActivations

Package: Record

class UsersActivations

extends Omeka_Record_AbstractRecord

An activation code for a User.

property UsersActivations::$user_id

int

The ID of the User this activation code is for.

property UsersActivations::$url

string

Random activation key.

property UsersActivations::$added

string

Date this activation key was created.

protected array

Related records.

UsersActivations::factory(User $user)

Get a new UsersActivations for a User.

Parameters:
Returns:

UsersActivations

UsersActivations::beforeSave($args)

Before-save hook.

Set the timestamp and create a random key.

Parameters:
  • $args

UsersActivations::getUser()

Get the User for this Activation.

Returns:

User