Class humhub\modules\like\models\Like
Inheritance | humhub\modules\like\models\Like » humhub\modules\content\components\ContentAddonActiveRecord » humhub\components\ActiveRecord » yii\db\ActiveRecord |
---|---|
Implements | Serializable, humhub\modules\content\interfaces\ContentOwner |
Available since version | 0.5 |
This is the model class for table "like".
The followings are the available columns in table 'like':
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$automaticContentFollowing | boolean | Automatic following of the addon creator to the related content | humhub\modules\content\components\ContentAddonActiveRecord |
$updateContentStreamSort | boolean | Also update underlying contents last update stream sorting | humhub\modules\like\models\Like |
Public Methods
Property Details
Also update underlying contents last update stream sorting
Method Details
Like Count for specifc model
public static void GetLikes ( $objectModel, $objectId ) | ||
$objectModel | ||
$objectId |
After Save, delete LikeCount (Cache) for target object
public void afterSave ( $insert, $changedAttributes ) | ||
$insert | ||
$changedAttributes |
Before Delete, remove LikeCount (Cache) of target object.
Remove activity
public void beforeDelete ( ) |
public void behaviors ( ) |
public array rules ( ) | ||
return | array | Validation rules for model attributes. |
---|
public static string tableName ( ) | ||
return | string | The associated database table name |
---|