merge() public method

Merges all properties from a given sfWebResponse object to the current one.
public merge ( sfWebResponse $response )
$response sfWebResponse An sfWebResponse instance
Esempio n. 1
0
 /**
  * Merges all properties from a given opWebResponse object to the current one.
  *
  * @param sfWebResponse $response  An sfWebResponse instance
  *
  * @see sfWebResponse->merge()
  */
 public function merge(sfWebResponse $response)
 {
     parent::merge($response);
     if ($response instanceof opWebResponse) {
         foreach ($this->getPositions() as $position) {
             $this->smtJavascripts[$position] = array_merge($this->getSmtJavascripts($position), $response->getSmtJavascripts($position));
             $this->smtStylesheets[$position] = array_merge($this->getSmtStylesheets($position), $response->getSmtStylesheets($position));
         }
     }
 }