/** * Add column values to the row * Can be either an array of string cell contents * or the string contents as keys and array of attributes * as values, or a combination of the above. */ public function values($values) { foreach ($values as $key => $val) { $col = new Table_Column(); $attr = is_array($val) ? $val : array(); if (is_int($key) && is_array($val)) { $col->value(isset($val['value']) ? $val['value'] : ''); $col->attr(isset($val['attr']) ? $val['attr'] : array()); } else { $col->value($val); } $this->columns[] = $col; } }