id |
Дата |
Задача |
План |
Потрачено |
Статус |
Тэги |
Заметка |
$planned = 0;
$spent = 0;
foreach($tasks->limit(0) as $task) {
tmp::exec("row",array (
"task" => $task,
));
$planned += $task->timeScheduled();
$spent += $task->timeSpent();
foreach($task->subtasks()->limit(0) as $subtask) {
tmp::exec("row",array (
"task" => $subtask,
));
}
}
|
Итого |
{$planned} |
{$spent} |