$build = '';
if (sizeof($children) > 0)
{
- foreach ($children AS $child)
+ foreach ($children as $child)
{
$build .= "\n\t\t\t" . $child->paint();
}
public static function row_list($label, $name, Array $options)
{
$build = '';
- foreach ($options AS $option)
+ foreach ($options as $option)
{
if ($option->getType() == 'option')
{
public static function row_checkbox($label, $name, Array $boxes)
{
$build = '';
- foreach ($boxes AS $boxLabel => $box)
+ foreach ($boxes as $boxLabel => $box)
{
if ($box->getType() == 'checkbox')
{
}
$i = 0;
- foreach ($this->children AS $child)
+ foreach ($this->children as $child)
{
$i++;
- $colspan = (($i == $numCols AND !$even) ? $cols + 1 : $cols);
+ $colspan = (($i == $numCols && !$even) ? $cols + 1 : $cols);
$builder .= "\n\t\t<td" . ($colspan > 1 ? ' colspan="' . $colspan . '"' : '') . ">" . $child->paint() . "</td>";
}