本文整理汇总了PHP中CTable::itemsCount方法的典型用法代码示例。如果您正苦于以下问题:PHP CTable::itemsCount方法的具体用法?PHP CTable::itemsCount怎么用?PHP CTable::itemsCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTable
的用法示例。
在下文中一共展示了CTable::itemsCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
if (!isset($opcondition['operator'])) {
$opcondition['operator'] = 0;
}
if (!isset($opcondition['value'])) {
$opcondition['value'] = 0;
}
if (!str_in_array($opcondition['conditiontype'], $allowed_opconditions)) {
continue;
}
$label = num2letter($i);
$operationConditionsTable->addRow(array('(' . $label . ')', get_condition_desc($opcondition['conditiontype'], $opcondition['operator'], $opcondition['value']), array(new CButton('remove', _('Remove'), 'javascript: removeOperationCondition(' . $i . ');', 'link_menu'), new CVar('new_operation[opconditions][' . $i . '][conditiontype]', $opcondition['conditiontype']), new CVar('new_operation[opconditions][' . $i . '][operator]', $opcondition['operator']), new CVar('new_operation[opconditions][' . $i . '][value]', $opcondition['value']))), null, 'opconditions_' . $i);
$grouped_opconditions[$opcondition['conditiontype']][] = $label;
$i++;
}
if ($operationConditionsTable->itemsCount() > 1) {
switch ($this->data['new_operation']['evaltype']) {
case ACTION_EVAL_TYPE_AND:
$group_op = $glog_op = _('and');
break;
case ACTION_EVAL_TYPE_OR:
$group_op = $glog_op = _('or');
break;
default:
$group_op = _('or');
$glog_op = _('and');
break;
}
foreach ($grouped_opconditions as $id => $condition) {
$grouped_opconditions[$id] = '(' . implode(' ' . $group_op . ' ', $condition) . ')';
}