+
+ /**
+ * Check if request was an AJAX (xmlhttprequest) request.
+ *
+ * @return boolean true if it was an AJAX request
+ */
+ public function isAjax()
+ {
+ return $this->isAjax;
+ }
+
+ /**
+ * Returns the value of a argv key
+ * TODO there are a lot of $a->argv usages in combination with defaults() which can be replaced with this method
+ *
+ * @param int $position the position of the argument
+ * @param mixed $default the default value if not found
+ *
+ * @return mixed returns the value of the argument
+ */
+ public function getArgumentValue($position, $default = '')
+ {
+ if (array_key_exists($position, $this->argv)) {
+ return $this->argv[$position];
+ }
+
+ return $default;
+ }