本文整理汇总了PHP中app::getNameByTableId方法的典型用法代码示例。如果您正苦于以下问题:PHP app::getNameByTableId方法的具体用法?PHP app::getNameByTableId怎么用?PHP app::getNameByTableId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app
的用法示例。
在下文中一共展示了app::getNameByTableId方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
<ul class="listInfo">
<?php
if ($c['tasks_status_id'] > 0) {
?>
<li><?php
echo '<span>' . __('Status') . ':</span> ' . app::getNameByTableId('TasksStatus', $c['tasks_status_id']);
?>
</li>
<?php
}
if ($c['tasks_priority_id'] > 0) {
?>
<li><?php
echo '<span>' . __('Priority') . ':</span> ' . app::getNameByTableId('TasksPriority', $c['tasks_priority_id']);
?>
</li>
<?php
}
if (strlen($c['due_date']) > 0) {
?>
<li><?php
echo '<span>' . __('Due Date') . ':</span> ' . app::dateTimeFormat($c['due_date']);
?>
</li>
<?php
}
if ($c['worked_hours'] > 0) {
?>
<li><?php
echo '<span>' . __('Work Hours') . ':</span> ' . $c['worked_hours'];
?>
示例2: switch
</td>
<td valign="top"><div id="filtersPreviewMenuBox">
<?php
switch ($table) {
case 'Users':
$m = app::getFilterMenuUsers(array(), $table, 'In Team', 'projects/index', false, $filter_by[$table]);
break;
default:
$m = app::getFilterMenuItemsByTable(array(), $table, $title, 'projects/index', false, $filter_by[$table], $sf_user);
break;
}
echo renderYuiMenu('filtersMenu' . $table, $m);
?>
</div></td>
<td valign="top" class="selectedFilterItems"><?php
echo strstr($table, 'extraField') ? $filter_by[$table] : app::getNameByTableId($table, $filter_by[$table]);
?>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
YAHOO.util.Event.onContentReady("filtersMenu<?php
echo $table;
?>
", function () {
var oMenuBar = new YAHOO.widget.MenuBar("filtersMenu<?php
echo $table;
?>
", {autosubmenudisplay: true,hidedelay: 350,submenuhidedelay: 0,showdelay: 150,keepopen: true,lazyload: true });
示例3: __
<ul class="listInfo">
<?php
if ($c['discussions_status_id'] > 0) {
?>
<li><?php
echo '<span>' . __('Status') . ':</span> ' . app::getNameByTableId('DiscussionsStatus', $c['discussions_status_id']);
?>
</li>
<?php
}
?>
</ul>
示例4: __
<ul class="listInfo">
<?php
if ($c['tickets_status_id'] > 0) {
?>
<li><?php
echo '<span>' . __('Status') . ':</span> ' . app::getNameByTableId('TicketsStatus', $c['tickets_status_id']);
?>
</li>
<?php
}
?>
</ul>
示例5: addCommentIfStatusChanged
protected function addCommentIfStatusChanged($previeous_status, $projects)
{
if ($previeous_status != $projects->getProjectsStatusId() and $previeous_status > 0) {
$c = new ProjectsComments();
$c->setDescription(t::__('Status') . ': ' . app::getNameByTableId('ProjectsStatus', $projects->getProjectsStatusId()));
$c->setProjectsId($projects->getId());
$c->setCreatedAt(date('Y-m-d H:i:s'));
$c->setCreatedBy($this->getUser()->getAttribute('id'));
$c->save();
}
return $projects;
}