public function flushToContext(ResponseContext $mainContext)
	{
		foreach ($this->getAllValues() as $key => $value) {
			$mainContext->setValue($key, $value);
		}

		foreach ($this->layoutSnippetResponses as $key => $responses) {
			foreach	($responses as $snippet) {
				$mainContext->addToLayoutSnippet($key, $snippet);
			}
		}
	}
public function flushToContext(ResponseContext $mainContext)
	{
		foreach ($this->getAllValues() as $key => $value) {
			$mainContext->setValue($key, $value);
		}

		foreach ($this->layoutSnippetResponses as $key => $responses) {
			foreach	($responses as $snippet) {
				$mainContext->addToLayoutSnippet($key, $snippet);
			}
		}
	}
public function flushToContext ( ResponseContext $ mainContext ) { foreach ( $ this -> getAllValues ( ) as $ key => $ value ) { $ mainContext -> setValue ( $ key , $ value ) ; } foreach ( $ this -> layoutSnippetResponses as $ key => $ responses ) { foreach ( $ responses as $ snippet ) { $ mainContext -> addToLayoutSnippet ( $ key , $ snippet ) ; } } }
Flushes all data to another response context
@param ResponseContext $mainContext
Flushes all data to another response context