/** * 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()); }
/** * 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(); }