本文整理汇总了PHP中app::getLastCommentByTable方法的典型用法代码示例。如果您正苦于以下问题:PHP app::getLastCommentByTable方法的具体用法?PHP app::getLastCommentByTable怎么用?PHP app::getLastCommentByTable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app
的用法示例。
在下文中一共展示了app::getLastCommentByTable方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: link_to
<?php
}
?>
<?php
if (in_array('Name', $in_listing)) {
?>
<td>
<?php
echo link_to($tasks['name'], 'tasksComments/index?tasks_id=' . $tasks['id'] . '&projects_id=' . $tasks['projects_id']);
?>
<?php
if ($has_comments_access) {
echo ' ' . app::getLastCommentByTable('TasksComments', 'tasks_id', $tasks['id']);
}
?>
</td>
<?php
}
?>
<?php
if (in_array('TasksStatus', $in_listing)) {
?>
<td><?php
echo app::getArrayName($tasks, 'TasksStatus');
?>
</td>
<?php
示例2: link_to
?>
<td><?php
echo app::getArrayName($projects, 'ProjectsStatus');
?>
</td>
<?php
}
?>
<td>
<?php
echo link_to($projects['name'], 'projects/open?projects_id=' . $projects['id']);
?>
<?php
if ($has_comments_access) {
echo ' ' . app::getLastCommentByTable('ProjectsComments', 'projects_id', $projects['id']);
}
?>
</td>
<?php
if ($is_filter['type']) {
?>
<td><?php
echo app::getArrayName($projects, 'ProjectsTypes');
?>
</td>
<?php
}
?>
示例3: link_to
?>
<td><?php
echo app::getArrayName($tickets, 'TicketsTypes');
?>
</td>
<?php
}
?>
<td>
<?php
echo link_to($tickets['name'], 'ticketsComments/index?tickets_id=' . $tickets['id'] . ($tickets['projects_id'] > 0 ? '&projects_id=' . $tickets['projects_id'] : ''));
?>
<?php
if ($has_comments_access) {
echo ' ' . app::getLastCommentByTable('TicketsComments', 'tickets_id', $tickets['id']);
}
?>
</td>
<td><?php
echo app::getArrayName($tickets, 'Departments');
?>
</td>
<td><?php
echo $tickets['Users']['name'];
?>
</td>
<td><?php
echo app::dateTimeFormat($tickets['created_at'], 0, true);
示例4: link_to
?>
<td><?php
echo app::getArrayName($discussions, 'DiscussionsStatus');
?>
</td>
<?php
}
?>
<td>
<?php
echo link_to($discussions['name'], 'discussionsComments/index?discussions_id=' . $discussions['id'] . ($discussions['projects_id'] > 0 ? '&projects_id=' . $discussions['projects_id'] : ''));
?>
<?php
if ($has_comments_access) {
echo ' ' . app::getLastCommentByTable('DiscussionsComments', 'discussions_id', $discussions['id']);
}
?>
</td>
<td><?php
echo $discussions['Users']['name'];
?>
</td>
<?php
$v = ExtraFieldsList::getValuesList($extra_fields, $discussions['id']);
echo ExtraFieldsList::renderListingTbody($extra_fields, $v);
$totals = ExtraFieldsList::getListingTotals($totals, $extra_fields, $v);
?>