本文整理汇总了PHP中TextHelper::cycle方法的典型用法代码示例。如果您正苦于以下问题:PHP TextHelper::cycle方法的具体用法?PHP TextHelper::cycle怎么用?PHP TextHelper::cycle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextHelper
的用法示例。
在下文中一共展示了TextHelper::cycle方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_named_cycles
function test_named_cycles()
{
$this->assertEqual('odd', TextHelper::cycle(array('odd', 'even', 'name' => '1st')));
$this->assertEqual('red', TextHelper::cycle('red', 'black'));
$this->assertEqual('even', TextHelper::cycle(array('odd', 'even', 'name' => '1st')));
$this->assertEqual('black', TextHelper::cycle('red', 'black'));
}
示例2: _
</tr>
<tr class="<?php
echo TextHelper::cycle('table_row_even', 'table_row_odd');
?>
">
<td><?php
echo _('Methode');
?>
</td>
<td><input type="text" name="test_method" size="50" required value="<?php
echo htmlReady(Request::get("test_method"));
?>
"></td>
</tr>
<tr class="<?php
echo TextHelper::cycle('table_row_even', 'table_row_odd');
?>
">
<td><?php
echo _('IP Adresse');
?>
</td>
<td><input type="text" name="test_ip" size="50" required value="<?php
echo htmlReady(Request::get("test_ip"));
?>
"></td>
</tr>
<tr>
<td style="text-align:center" colspan="2">
<?php
echo Button::createAccept(_('Abschicken'), 'ok', array('title' => _('Test starten')));
示例3: reset_cycle
function reset_cycle($name)
{
TextHelper::cycle(array('reset' => $name));
}
示例4: _
echo TextHelper::cycle('hover_odd', 'hover_even');
?>
">
<td><?php
echo _("Auf der Profilseite und in Adressbüchern sichtbar");
?>
:</td>
<td><input type="checkbox" name="visible" value="1" <?php
echo $institute['visible'] ? 'checked' : '';
?>
></td>
</tr>
<? if (count($datafields) > 0) : ?>
<? foreach ($datafields as $entry) : ?>
<tr class="<?php
echo TextHelper::cycle('hover_odd', 'hover_even');
?>
">
<td>
<?php
echo htmlReady($entry->getName());
?>
:
</td>
<td>
<? if ($entry->isEditable()) : ?>
<?php
echo $entry->getHTML("datafields");
?>
<? else : ?>
<?php
示例5: _
</th>
<th><?php
echo _('Kontakt');
?>
</th>
<th><?php
echo _('Kommerziell');
?>
</th>
<th> </th>
</tr>
</thead>
<tbody>
<? foreach ($consumers as $consumer): ?>
<tr class="<?php
echo TextHelper::cycle('cycle_even', 'cycle_odd');
?>
">
<td>
<a href="<?php
echo $controller->url_for('admin/toggle', $consumer['consumer_key'], $consumer['enabled'] ? 'off' : 'on');
?>
">
<?php
echo Assets::img('icons/16/blue/checkbox-' . ($consumer['enabled'] ? '' : 'un') . 'checked');
?>
</a>
</td>
<td>
<? if ($consumer['application_uri']): ?>
<a href="<?php