本文整理汇总了PHP中task::treeName方法的典型用法代码示例。如果您正苦于以下问题:PHP task::treeName方法的具体用法?PHP task::treeName怎么用?PHP task::treeName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::treeName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: implode
<th><?php
echo $lang['common_project'];
?>
</th>
<th><?php
echo $projectInst->name;
?>
</th>
</tr><tr>
<th><?php
echo $lang['tasks_depends'];
?>
</th>
<th>/<?php
if ($taskInst->mountId != "0") {
echo "<a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $taskInst->mountId) . "\" title=\"" . $lang['tasks_parentTask'] . "\">" . implode("/", $taskInst->treeName($taskInst->mountId)) . "</a>\n";
}
?>
</th>
</tr>
<?php
$childs = $taskInst->childs();
if (count($childs) > 0) {
echo "<tr><th valign=\"top\" rowspan=\"" . count($childs) . "\">child tasks</th><th>\n";
$childTask = new task(current($childs));
echo "<a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $childTask->id) . "\" title=\"" . $lang['tasks_childTask'] . " 1\">" . substr($childTask->subject, 0, 40) . "</a></th></tr>\n";
next($childs);
$i = 2;
while ($element = current($childs)) {
$childTask = new task(current($childs));
echo "<tr><th><a href=\"" . $toolInst->encodeUrl("index.php?content=taskdetails.php&view=details&taskid=" . $childTask->id) . "\" title=\"" . $lang['tasks_childTask'] . " " . $i . "\">" . substr($childTask->subject, 0, 40) . "</a></th></tr>\n";
示例2: implode
echo "<option value=\"" . $element . "\">/ " . implode(" / ", $taskInst->treeName($element)) . "\n";
}
}
next($list);
}
if (!in_array("0", $seen)) {
echo "<option value=\"0\"> /\n";
}
} else {
?>
<option value="0">/<?php
$taskInst2 = new task();
$taskInst2->filterProjectId = $projectMount;
$list = $taskInst2->getList();
while ($element = current($list)) {
echo "<option value=\"" . $element . "\">/ " . implode(" / ", $taskInst2->treeName($element)) . "\n";
next($list);
}
}
?>
</select>
</td>
</tr><tr>
<td><?php
echo $lang['common_subject'];
?>
: </td>
<td><input type="text" name="subject" value="<?php
echo $taskInst->subject;
?>
" size="<?php