Class humhub\modules\user\models\Invite

Inheritancehumhub\modules\user\models\Invite » humhub\components\ActiveRecord » yii\db\ActiveRecord

This is the model class for table "user_invite".

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$captcha humhub\modules\user\models\Invite

Public Methods

Hide inherited methods

MethodDescriptionDefined By
allowSelfInvite() Allow users to invite themself humhub\modules\user\models\Invite
attributeLabels() humhub\modules\user\models\Invite
beforeSave() humhub\modules\user\models\Invite
getCreatedBy() Relation to User defined in created_by attribute humhub\components\ActiveRecord
getErrorMessage() Returns the errors as string for all attribute or a single attribute. humhub\components\ActiveRecord
getFileManager() Returns the file manager for this record humhub\components\ActiveRecord
getOriginator() Return user which triggered this invite humhub\modules\user\models\Invite
getSpace() Return space which is involved in this invite humhub\modules\user\models\Invite
getUniqueId() Returns a unique id for this record/model humhub\components\ActiveRecord
getUpdatedBy() Relation to User defined in updated_by attribute humhub\components\ActiveRecord
rules() humhub\modules\user\models\Invite
scenarios() humhub\modules\user\models\Invite
selfInvite() humhub\modules\user\models\Invite
sendInviteMail() Sends the invite e-mail humhub\modules\user\models\Invite
serialize() Serializes attributes and oldAttributes of this record. humhub\components\ActiveRecord
showCaptureInRegisterForm() humhub\modules\user\models\Invite
tableName() humhub\modules\user\models\Invite
unserialize() Unserializes the given string, calls the init() function and sets the attributes and oldAttributes. humhub\components\ActiveRecord


Hide inherited constants

ConstantValueDescriptionDefined By
SOURCE_INVITE 'invite' humhub\modules\user\models\Invite
SOURCE_SELF 'self' humhub\modules\user\models\Invite
TOKEN_LENGTH 12 humhub\modules\user\models\Invite

Property Details

$captcha public property
public $captcha null

Method Details

allowSelfInvite() public method

Allow users to invite themself

public boolean allowSelfInvite ( )
return boolean

Allow self invite

attributeLabels() public method

public void attributeLabels ( )
beforeSave() public method

public void beforeSave ( $insert )
getOriginator() public method

Return user which triggered this invite

public \yii\db\ActiveQuery getOriginator ( )
getSpace() public method

Return space which is involved in this invite

public \yii\db\ActiveQuery getSpace ( )
rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
selfInvite() public method

public void selfInvite ( )
sendInviteMail() public method

Sends the invite e-mail

public void sendInviteMail ( )
showCaptureInRegisterForm() public method

public void showCaptureInRegisterForm ( )
tableName() public static method

public static void tableName ( )