本文整理匯總了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) . ')';
}