本文整理汇总了PHP中task::getIcal方法的典型用法代码示例。如果您正苦于以下问题:PHP task::getIcal方法的具体用法?PHP task::getIcal怎么用?PHP task::getIcal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::getIcal方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tasklist
$task = $mytask->getTask($tid);
$members = $myproject->getProjectMembers($id, $myproject->countMembers($id));
$tasklist = new tasklist();
$tasklists = $tasklist->getProjectTasklists($id);
$tl = $tasklist->getTasklist($task['liste']);
$task['listid'] = $tl['ID'];
$task['listname'] = $tl['name'];
$tmp = $mytask->getUsers($task['ID']);
if ($tmp) {
foreach ($tmp as $value) {
$task['users'][] = $value[0];
}
}
$user = $mytask->getUser($task['ID']);
$task['username'] = $user[1];
$task['userid'] = $user[0];
$template->assign("members", $members);
$template->assign("tasklists", $tasklists);
$template->assign("tl", $tl);
$template->assign("pid", $id);
$template->assign("projectname", $projectname);
$template->assign("title", $title);
$template->assign("task", $task);
$template->display("task.tpl");
} elseif ($action == "ical") {
$mytask = new task();
$task = $mytask->getIcal($userid);
} elseif ($action == "icalshort") {
$mytask = new task();
$task = $mytask->getIcal($userid, false);
}
示例2: tasklist
$members = $myproject->getProjectMembers($id, $myproject->countMembers($id));
$tasklist = new tasklist();
$tasklists = $tasklist->getProjectTasklists($id);
$tl = $tasklist->getTasklist($task['liste']);
$task['listid'] = $tl['ID'];
$task['listname'] = $tl['name'];
$tmp = $mytask->getUsers($task['ID']);
if ($tmp) {
foreach ($tmp as $value) {
$task['users'][] = $value[0];
}
}
$user = $mytask->getUser($task['ID']);
$task['username'] = $user[1];
$task['userid'] = $user[0];
$template->assign("members", $members);
$template->assign("tasklists", $tasklists);
$template->assign("tl", $tl);
$template->assign("pid", $id);
$template->assign("projectname", $projectname);
$template->assign("title", $title);
$template->assign("task", $task);
$template->display("task.tpl");
} elseif ($action == "ical") {
$mytask = new task();
$task = $mytask->getIcal($userid);
}