public function getFieldNames() { if ($this->data === null) { return; } if (is_array($this->data)) { return array_keys($this->data); } else { return $this->data->getUserDefinedColumns(true); } }