- $this->has(Mode::DBAVAILABLE) &&
- $this->has(Mode::DBCONFIGAVAILABLE) &&
- $this->has(Mode::MAINTENANCEDISABLED);
+ $this->has(Mode::DBAVAILABLE) &&
+ $this->has(Mode::DBCONFIGAVAILABLE) &&
+ $this->has(Mode::MAINTENANCEDISABLED);
+ }
+
+ /**
+ * Returns true, if the call is from a backend node (f.e. from a worker)
+ *
+ * @return bool Is it a backend call
+ */
+ public function isBackend(): bool
+ {
+ return $this->isBackend;
+ }
+
+ /**
+ * Check if request was an AJAX (xmlhttprequest) request.
+ *
+ * @return bool true if it was an AJAX request
+ */
+ public function isAjax(): bool
+ {
+ return $this->isAjax;
+ }
+
+ /**
+ * Check if request was a mobile request.
+ *
+ * @return bool true if it was an mobile request
+ */
+ public function isMobile(): bool
+ {
+ return $this->isMobile;
+ }
+
+ /**
+ * Check if request was a tablet request.
+ *
+ * @return bool true if it was an tablet request
+ */
+ public function isTablet(): bool
+ {
+ return $this->isTablet;