255 ], ]; } public function attributeLabels() { return []; } public static function getSettingByName(string $name): bool { if (isset(QuestionarySettings::$_memorizedSettings[$name])) { return QuestionarySettings::$_memorizedSettings[$name]; } $value = false; $setting = self::findOne(['name' => $name]); if (isset($setting)) { $value = $setting->value == QuestionarySettings::BOOLEAN_TRUE; } QuestionarySettings::$_memorizedSettings[$name] = $value; return QuestionarySettings::$_memorizedSettings[$name]; } }