Example #1
0
 /**
  * Copy items from the OutputPage object into this one
  *
  * @param $out OutputPage object
  */
 public function addOutputPageMetadata(OutputPage $out)
 {
     $this->addModules($out->getModules());
     $this->addModuleScripts($out->getModuleScripts());
     $this->addModuleStyles($out->getModuleStyles());
     $this->addModuleMessages($out->getModuleMessages());
     $this->mHeadItems = array_merge($this->mHeadItems, $out->getHeadItemsArray());
 }
Example #2
0
 /**
  * Copy items from the OutputPage object into this one
  *
  * @param OutputPage $out
  */
 public function addOutputPageMetadata(OutputPage $out)
 {
     $this->addModules($out->getModules());
     $this->addModuleScripts($out->getModuleScripts());
     $this->addModuleStyles($out->getModuleStyles());
     $this->addJsConfigVars($out->getJsConfigVars());
     $this->mHeadItems = array_merge($this->mHeadItems, $out->getHeadItemsArray());
     $this->mPreventClickjacking = $this->mPreventClickjacking || $out->getPreventClickjacking();
 }