Returns the string matching the given alarm value.
public static formatAlarm ( integer $value ) : string | ||
$value | integer | The alarm value in minutes. |
리턴 | string | The formatted alarm string. |
$notification->push(_("Task not found"), 'horde.error'); Horde::url('list.php', true)->redirect(); } } /* Load child tasks */ $task->loadChildren(false); /* Check permissions on $tasklist_id. */ $share = $GLOBALS['nag_shares']->getShare($tasklist_id); if (!$share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::READ)) { $notification->push(_("You do not have permission to view this task list."), 'horde.error'); Horde::url('list.php', true)->redirect(); } $links = array(); $page_output->addScriptFile('stripe.js', 'horde'); $taskurl = Horde::url('task.php')->add(array('task' => $task_id, 'tasklist' => $tasklist_id)); try { $share = $GLOBALS['nag_shares']->getShare($tasklist_id); } catch (Horde_Share_Exception $e) { Horde::log($e->getMessage(), 'ERR'); throw new Nag_Exception($e); } /* Set up alarm units and value. */ $task_alarm = $task->alarm; if (!$task->due) { $task_alarm = 0; } $alarm_text = Nag::formatAlarm($task_alarm); $page_output->header(array('title' => $task->name)); Nag::status(); require NAG_TEMPLATES . '/view/task.inc'; $page_output->footer();