Beispiel #1
0
 /**
  * Set the minimal variables in the view object
  * Extended by some admin view specific variables
  * 
  * @param Piwik_View  $view
  */
 protected function setBasicVariablesView($view)
 {
     parent::setBasicVariablesView($view);
     $view->currentAdminMenuName = Piwik_GetCurrentAdminMenuName();
     $view->enableFrames = Piwik_Config::getInstance()->General['enable_framed_settings'];
     if (!$view->enableFrames) {
         $view->setXFrameOptions('sameorigin');
     }
 }
Beispiel #2
0
 /**
  * Used by Admin screens
  * 
  * @param Piwik_View $view
  */
 protected function setBasicVariablesView($view)
 {
     parent::setBasicVariablesView($view);
     $view->currentAdminMenuName = Piwik_GetCurrentAdminMenuName();
     $view->enableFrames = Zend_Registry::get('config')->General->enable_framed_settings;
     if (!$view->enableFrames) {
         $view->setXFrameOptions('sameorigin');
     }
 }
Beispiel #3
0
 /**
  * Set the minimal variables in the view object
  * Extended by some admin view specific variables
  *
  * @param Piwik_View $view
  */
 protected function setBasicVariablesView($view)
 {
     parent::setBasicVariablesView($view);
     self::setBasicVariablesAdminView($view);
 }