add recurring & fix until

This commit is contained in:
DavidBadura
2015-02-08 12:13:53 +00:00
parent 9ed7f6ff7c
commit 7199ad4dfa
4 changed files with 95 additions and 32 deletions

View File

@@ -163,6 +163,7 @@ class TaskManager
*/
private function export($filter = null)
{
$this->update();
$json = $this->taskwarrior->export($filter);
return $this->getSerializer()->deserialize($json, 'array<DavidBadura\Taskwarrior\Task>', 'json');
@@ -211,6 +212,18 @@ class TaskManager
$this->setValue($old, 'end', $new->getEnd());
}
/**
*
*/
private function update()
{
try {
$this->taskwarrior->command('list');
} catch (TaskwarriorException $e) {
// to nothing
}
}
/**
* @param Task[] $tasks
* @return Task[]