本文整理汇总了PHP中commands函数的典型用法代码示例。如果您正苦于以下问题:PHP commands函数的具体用法?PHP commands怎么用?PHP commands使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了commands函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
?>
</li>
<?php
if (isset($article->editor)) {
?>
<li><?php
echo sprintf(@text('LIB-AN-ENTITY-EDITOR'), @date($article->updateTime), @name($article->editor));
?>
</li>
<?php
}
?>
</ul>
<div class="vote-count-wrapper an-meta" id="vote-count-wrapper-<?php
echo $article->id;
?>
">
<?php
echo @helper('ui.voters', $article);
?>
</div>
</div>
<div class="entity-actions">
<?php
echo @helper('ui.commands', @commands('list'));
?>
</div>
</div>
示例2: array
echo @helper('ui.menubar', array('menubar' => $menubar));
?>
<ul class="breadcrumb">
<li><a href="<?php
echo @route('view=forums');
?>
"><?php
echo @text('COM-FORUMS-FORUMS');
?>
</a> <span class="divider">/</span></li>
</ul>
<div class="btn-toolbar">
<?php
echo @helper('ui.commands', @commands('toolbar'));
?>
</div>
<div class="accordion">
<?php
foreach ($categories as $category) {
?>
<?php
if (empty($category->parent)) {
?>
<?php
echo @view('category')->layout('list')->category($category);
?>
<?php
}
示例3: defined
<?php
defined('KOOWA') or die;
?>
<?php
$commands = @commands('list');
$highlight = $item->isEnableable() && !$item->enabled ? 'an-highlight' : '';
?>
<div class="an-entity dropdown-actions <?php
echo $highlight;
?>
">
<div class="clearfix">
<div class="entity-portrait-square">
<?php
echo @avatar($item);
?>
</div>
<div class="entity-container">
<h3 class="entity-name">
<?php
echo @name($item);
?>
</h3>
<div class="entity-meta">
<?php
echo $item->followerCount;
?>
示例4: foreach
}
//**************************************************************************************
//****************************** Function Object Creator *******************************
//**************************************************************************************
foreach ($functions_to_start as $function_name) {
${$function_name} = new $function_name($multibotObject);
}
//*************************************************************************************
//*************************************** Loop ****************************************
//*************************************************************************************
while (true) {
sleep(1);
$buffer = socketRead($socket);
if (!empty($buffer)) {
$buffer = explode(" ", $buffer);
commands();
if ($break) {
break;
}
}
foreach ($vars_list as $vars_list_value => $vars_list_temp) {
foreach ($vars_list_temp as $var_name => $var_refresh_time) {
$multibotObject->refresh($var_name, $var_refresh_time);
}
$refresh_time = $multibot_config[$vars_list_value]['general_config']['refresh'];
${$vars_list_value}->start($refresh_time);
}
}
//*************************************************************************************
//************************************ Debug Mode *************************************
//*************************************************************************************
示例5: defined
<?php
defined('KOOWA') or die;
?>
<?php
@commands('toolbar');
?>
<div class="an-entity">
<h1 class="entity-title">
<?php
echo @escape($revision->title);
?>
</h1>
<?php
if ($revision->body) {
?>
<div class="entity-description">
<?php
echo @content($revision->body);
?>
</div>
<?php
}
?>
</div>
示例6: get_breadcrumbs
</td>
<td>
<input type="submit" name="action" value="search" /> <a href="/">clear</a>
</td>
</tr>
</table>
<span id="breadcrumbs"><?php
get_breadcrumbs($db, $query_array);
?>
</span>
</form>
</div>
<div id="results">
<?php
// search results
$rows = commands($db, 'command_html', $limit, $offset, $user, $dev, $begin, $end);
if ($rows == 0) {
print '<strong>No Results</strong>';
}
?>
</div>
<div id="footer">
<?php
get_page_links($rows, $limit, $page, $query_array);
?>
<?php
echo $rows;
?>
Results (<?php
echo ceil($rows / $limit);
?>
示例7: array
echo @content($post->body, array('exclude' => 'link'));
?>
</div>
<?php
if ($showToolbar) {
?>
<div class="entity-actions">
<div class="btn-toolbar">
<?php
echo @helper('ui.commands', @commands('toolbar'));
?>
<div class="pull-right">
<?php
echo @helper('ui.commands', @commands('administration'));
?>
</div>
</div>
</div>
<?php
}
?>
<div class="entity-meta clearfix">
<div class="vote-count-wrapper pull-left" id="vote-count-wrapper-<?php
echo $post->id;
?>
">
<?php
echo @helper('ui.voters', $post);