本文整理汇总了PHP中FormHelper::getNameEventRow方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHelper::getNameEventRow方法的具体用法?PHP FormHelper::getNameEventRow怎么用?PHP FormHelper::getNameEventRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormHelper
的用法示例。
在下文中一共展示了FormHelper::getNameEventRow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</tr>
<!-- End: Add row for new additional name -->
<!-- List of existing additional names -->
<?php
if (is_object($this->item)) {
$names = $this->item->getPersonNames();
if (count($names)) {
$k = 4;
for ($i = 0, $n = count($names); $i < $n; $i++) {
$name =& $names[$i];
$namCnt = $name->orderNumber > $namCnt ? $name->orderNumber : $namCnt;
?>
<!-- Row for one existing additional name -->
<?php
echo FormHelper::getNameEventRow(true, 'personName', $this->form, $this->item, $name, $this->lists['appId'], null);
?>
<!-- End: Row for one existing additional name -->
<?php
$k = 7 - $k;
}
}
}
?>
<!-- End: List of existing additional names -->
</tbody>
<!-- End: tabel body for additional names -->
</table>
<!-- End: Additional names -->
示例2:
</tr>
<!-- End: Add row for new event -->
<!-- List of existing events -->
<?php
if (is_object($this->item)) {
$events = $this->item->getPartnerEvents($this->relation->id, $this->relation->living);
if (count($events)) {
$k = 4;
for ($i = 0, $n = count($events); $i < $n; $i++) {
$event =& $events[$i];
$evtCnt = $event->orderNumber > $evtCnt ? $event->orderNumber : $evtCnt;
?>
<!-- Row for one existing event -->
<?php
echo FormHelper::getNameEventRow(true, 'relationEvent', $this->form, $this->item, $event, $this->lists['appId'], $this->relation->id);
?>
<!-- End: Row for one existing event -->
<?php
$k = 7 - $k;
}
}
}
?>
<!-- End: List of existing events -->
</tbody>
<!-- End: tabel body for events -->
</table>
<!-- End: Events -->