mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Merge pull request #2787 from githubjeka/comment
Fix phpDoc for \humhub\modules\comment\models\Comment
This commit is contained in:
commit
7427d1268a
@ -29,7 +29,6 @@ use humhub\modules\content\components\ContentAddonActiveRecord;
|
||||
* @property integer $updated_by
|
||||
*
|
||||
* The followings are the available model relations:
|
||||
* @property PortfolioItem[] $portfolioItems
|
||||
* @property Post[] $posts
|
||||
*
|
||||
* @package humhub.modules_core.comment.models
|
||||
@ -106,6 +105,10 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
|
||||
|
||||
/**
|
||||
* After Saving of comments, fire an activity
|
||||
*
|
||||
* @param bool $insert
|
||||
* @param array $changedAttributes
|
||||
* @return bool
|
||||
*/
|
||||
public function afterSave($insert, $changedAttributes)
|
||||
{
|
||||
@ -148,8 +151,8 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
|
||||
/**
|
||||
* Filters out all users contained in $mentionedUsers from $followers
|
||||
*
|
||||
* @param User[] $followers
|
||||
* @param User[] $mentionedUsers
|
||||
* @param \humhub\modules\user\models\User[] $followers
|
||||
* @param \humhub\modules\user\models\User[] $mentionedUsers
|
||||
*/
|
||||
private function filterMentionings(&$followers, $mentionedUsers)
|
||||
{
|
||||
@ -191,10 +194,11 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
|
||||
/**
|
||||
* Returns a limited amount of comments
|
||||
*
|
||||
* @param type $model
|
||||
* @param type $id
|
||||
* @param type $limit
|
||||
* @return type
|
||||
* @param $model
|
||||
* @param $id
|
||||
* @param int $limit
|
||||
*
|
||||
* @return array|mixed|\yii\db\ActiveRecord[]
|
||||
*/
|
||||
public static function GetCommentsLimited($model, $id, $limit = 2)
|
||||
{
|
||||
@ -221,9 +225,10 @@ class Comment extends ContentAddonActiveRecord implements ContentOwner
|
||||
/**
|
||||
* Count number comments for this target object
|
||||
*
|
||||
* @param type $model
|
||||
* @param type $id
|
||||
* @return type
|
||||
* @param $model
|
||||
* @param $id
|
||||
*
|
||||
* @return int|mixed|string
|
||||
*/
|
||||
public static function GetCommentCount($model, $id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user