getKeepURLFragmentsGlobal() публичный Метод

Returns true if the default behavior is to keep URL fragments when tracking, false if otherwise.
public getKeepURLFragmentsGlobal ( ) : boolean
Результат boolean
Пример #1
0
 private function makeKeepUrlFragments(SitesManager\API $sitesManagerApi)
 {
     return $this->makeProperty('keep_url_fragment', $default = '0', FieldConfig::TYPE_STRING, function (FieldConfig $field) use($sitesManagerApi) {
         $field->title = Piwik::translate('SitesManager_KeepURLFragmentsLong');
         $field->uiControl = FieldConfig::UI_CONTROL_SINGLE_SELECT;
         if ($sitesManagerApi->getKeepURLFragmentsGlobal()) {
             $default = Piwik::translate('General_Yes');
         } else {
             $default = Piwik::translate('General_No');
         }
         $field->availableValues = array('0' => $default . ' (' . Piwik::translate('General_Default') . ')', '1' => Piwik::translate('General_Yes'), '2' => Piwik::translate('General_No'));
     });
 }