protected function beginGetResponse($variable, $count) { $response = new xajaxResponse(); if ($count == 0) { $response->domStartResponse(); } $response->domCreateElement($variable, $this->sTag); return $response; }