toggle archive / fav actions

This commit is contained in:
Nicolas Lœuillet
2015-01-23 12:45:24 +01:00
parent bd9f08157c
commit 163eae0bb1
12 changed files with 268 additions and 44 deletions

View File

@ -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
*