Class yeesoft\models\UserVisitLog

Inheritanceyeesoft\models\UserVisitLog » yeesoft\db\ActiveRecord » yii\db\ActiveRecord
Subclassesyeesoft\user\models\search\UserVisitLogSearch

This is the model class for table "user_visit_log".

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributeLabels() yeesoft\models\UserVisitLog
checkToken() Checks if token stored in session is equal to token from this user last visit Logout if not yeesoft\models\UserVisitLog
getUser() yeesoft\models\UserVisitLog
getVisitDate() Get visit date yeesoft\models\UserVisitLog
getVisitDatetime() Get visit datetime yeesoft\models\UserVisitLog
getVisitTime() Get visit time yeesoft\models\UserVisitLog
isMultilingual() Returns TRUE if model support multilingual behavior. yeesoft\db\ActiveRecord
newVisitor() Save new record in DB and write unique token in session yeesoft\models\UserVisitLog
rules() yeesoft\models\UserVisitLog
tableName() yeesoft\models\UserVisitLog

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
SESSION_TOKEN '__visitorToken' yeesoft\models\UserVisitLog

Method Details

attributeLabels() public method

public void attributeLabels ( )
checkToken() public static method

Checks if token stored in session is equal to token from this user last visit Logout if not

public static void checkToken ( )
getUser() public method

public \yii\db\ActiveQuery getUser ( )
getVisitDate() public method

Get visit date

public string getVisitDate ( )
getVisitDatetime() public method

Get visit datetime

public string getVisitDatetime ( )
getVisitTime() public method

Get visit time

public string getVisitTime ( )
newVisitor() public static method

Save new record in DB and write unique token in session

public static void newVisitor ( $userId )
$userId int
rules() public method

public void rules ( )
tableName() public static method

public static void tableName ( )