sfWebResponse::getSlots PHP Method

getSlots() public method

Retrieves slots from the current web response.
public getSlots ( ) : string
return string Javascript code
    public function getSlots()
    {
        return $this->slots;
    }

Usage Example

Esempio n. 1
0
 /**
  * Merges all properties from a given sfWebResponse object to the current one.
  *
  * @param sfWebResponse $response  An sfWebResponse instance
  */
 public function merge(sfWebResponse $response)
 {
     foreach ($this->getPositions() as $position) {
         $this->javascripts[$position] = array_merge($this->getJavascripts($position), $response->getJavascripts($position));
         $this->stylesheets[$position] = array_merge($this->getStylesheets($position), $response->getStylesheets($position));
     }
     $this->slots = array_merge($this->getSlots(), $response->getSlots());
 }