Class lispa\amos\invitations\utility\InvitationsUtility

Inheritancelispa\amos\invitations\utility\InvitationsUtility » yii\base\Object
Implementsyii\base\Configurable

Class InvitationsUtility

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Object
__construct() Constructor. yii\base\Object
__get() Returns the value of an object property. yii\base\Object
__isset() Checks if a property is set, i.e. defined and not null. yii\base\Object
__set() Sets value of an object property. yii\base\Object
__unset() Sets an object property to null. yii\base\Object
canGetProperty() Returns a value indicating whether a property can be read. yii\base\Object
canSetProperty() Returns a value indicating whether a property can be set. yii\base\Object
checkUserAlreadyPresent() Checks if a user is already present in the platform and set lispa\amos\invitations\utility\InvitationsUtility
className() Returns the fully qualified name of this class. yii\base\Object
hasMethod() Returns a value indicating whether a method is defined. yii\base\Object
hasProperty() Returns a value indicating whether a property is defined. yii\base\Object
init() Initializes the object. yii\base\Object

Method Details

checkUserAlreadyPresent() public static method

Checks if a user is already present in the platform and set

public static boolean|array checkUserAlreadyPresent ( $email, $disableFlashMessage false, $returnArray false )
$email string

User email

$disableFlashMessage boolean

If true the method don't add a flash message in case of user present.

$returnArray boolean

If true return an array with key "present" boolean and key "message" with the same message as flash message.