本文整理汇总了PHP中License::format方法的典型用法代码示例。如果您正苦于以下问题:PHP License::format方法的具体用法?PHP License::format怎么用?PHP License::format使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类License
的用法示例。
在下文中一共展示了License::format方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: T_
</th>
<th class="cel_description"><?php
echo T_('Description');
?>
</th>
<th class="cel_action"><?php
echo T_('Action');
?>
</th>
</tr>
</thead>
<tbody>
<?php
foreach ($object_ids as $license_id) {
$libitem = new License($license_id);
$libitem->format();
require AmpConfig::get('prefix') . '/templates/show_license_row.inc.php';
?>
<?php
}
if (!count($object_ids)) {
?>
<tr class="<?php
echo UI::flip_class();
?>
">
<td colspan="6" class="error"><?php
echo T_('No Licenses Found');
?>
</td>
</tr>
示例2: date
$songprops[gettext_noop('Filename')] = scrub_out($song->file) . " " . $song->f_size;
}
if ($song->update_time) {
$songprops[gettext_noop('Last Updated')] = date("d/m/Y H:i", $song->update_time);
}
$songprops[gettext_noop('Added')] = date("d/m/Y H:i", $song->addition_time);
if (AmpConfig::get('show_played_times')) {
$songprops[gettext_noop('# Played')] = scrub_out($song->object_cnt);
}
if (AmpConfig::get('show_lyrics')) {
$songprops[gettext_noop('Lyrics')] = $song->f_lyrics;
}
if (AmpConfig::get('licensing')) {
if ($song->license) {
$license = new License($song->license);
$license->format();
$songprops[gettext_noop('Licensing')] = $license->f_link;
}
}
$owner_id = $song->get_user_owner();
if (AmpConfig::get('sociable') && $owner_id > 0) {
$owner = new User($owner_id);
$owner->format();
$songprops[gettext_noop('Uploaded by')] = $owner->f_link;
}
foreach ($songprops as $key => $value) {
if (trim($value)) {
$rowparity = UI::flip_class();
echo "<dt class=\"" . $rowparity . "\">" . T_($key) . "</dt><dd class=\"" . $rowparity . "\">" . $value . "</dd>";
}
}