isUserAction() public method

判断指定分类下操作是否存在
public isUserAction ( integer $type, string $do = '', integer $targetId ) : integer | string
$type integer 话题还是评论
$do string 动作
$targetId integer 话题ID或者评论ID
return integer | string
Beispiel #1
0
 public function getThanks()
 {
     $model = new UserMeta();
     return $model->isUserAction(self::TYPE, 'thanks', $this->id);
 }
Beispiel #2
0
 public function getLike()
 {
     $model = new UserMeta();
     return $model->isUserAction(self::TYPE, 'like', $this->id);
 }