public function getColumnLabels($includeVirtual = false) { $labels = array(); foreach ($this->columns as $column) { if (!$includeVirtual && $column->virtual) { continue; } if ($column->label) { $labels[] = $column->label; } } return $labels; }