/** * Builds the whole response object. * * @return object $response. */ public static function render() { if (!is_object(self::$response)) { self::$response = new stdClass(); } self::$response->title = self::getTitle(); self::$response->scripts = array_unique(self::$scripts); self::$response->scriptDeclarations = array_unique(self::$scriptDeclarations); self::$response->styles = array_unique(self::$styles); self::$response->states = self::getStates(); self::$response->menu = self::getMenu(); self::$response->actions = self::getActions(); self::$response->rows = self::getRows(); self::$response->pagination = self::getPagination(); self::$response->filters = self::getFilters(); self::$response->toolbar = self::getToolbar(); self::$response->batch = self::getBatch(); self::$response->row = self::getRow(); self::$response->form = self::getForm(); self::$response->status = self::getStatus(); self::$response->messages = JFactory::getApplication()->getMessageQueue(); return self::$response; }