本文整理汇总了PHP中CTask::getDependencyList方法的典型用法代码示例。如果您正苦于以下问题:PHP CTask::getDependencyList方法的具体用法?PHP CTask::getDependencyList怎么用?PHP CTask::getDependencyList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTask
的用法示例。
在下文中一共展示了CTask::getDependencyList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_dependencies_pd
/**
* The original method didn't return anything..
*
* @todo Remove for v4.0 - caseydk 06 March 2013
* @deprecated
*/
function get_dependencies_pd($task_id)
{
trigger_error("get_dependencies_pd() has been deprecated in v3.0 and will be removed in v4.0. Use CTask->getDependencyList instead.", E_USER_NOTICE);
$task = new CTask();
return $task->getDependencyList($task_id);
}
示例2: count
$s .= '</tr>';
}
echo '<table width="100%" cellspacing="1" bgcolor="black">' . $s . '</table>';
?>
</td>
</tr>
<tr>
<td colspan="3"><strong><?php
echo $AppUI->_('Dependencies');
?>
</strong></td>
</tr>
<tr>
<td colspan="3">
<?php
$taskDep = $obj->getDependencyList($task_id);
$s = count($taskDep) == 0 ? '<tr><td bgcolor="#ffffff">' . $AppUI->_('none') . '</td></tr>' : '';
foreach ($taskDep as $key => $array) {
$s .= '<tr><td class="hilite" width=80%>';
$s .= '<a href="./index.php?m=tasks&a=view&task_id=' . $key . '">' . $array['task_name'] . '</a>';
$s .= '</td>';
$s .= $htmlHelper->createCell('task_percent_complete', $array['task_percent_complete']);
$s .= '</tr>';
}
echo '<table width="100%" cellspacing="1" bgcolor="black">' . $s . '</table>';
?>
</td>
</tr>
<tr>
<td colspan="3"><strong><?php
echo $AppUI->_('Tasks depending on this Task');