本文整理匯總了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');