forked from wallabag/wallabag
toggle archive / fav actions
This commit is contained in:
@ -144,6 +144,12 @@ class Entries
|
||||
return $this->isRead;
|
||||
}
|
||||
|
||||
public function toggleArchive()
|
||||
{
|
||||
$this->isRead = $this->getIsRead() ^ 1;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set isFav
|
||||
*
|
||||
@ -167,6 +173,13 @@ class Entries
|
||||
return $this->isFav;
|
||||
}
|
||||
|
||||
public function toggleStar()
|
||||
{
|
||||
$this->isFav = $this->getIsFav() ^ 1;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set content
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user