+ public function setRedirect($url, $code = 0) {
+ $this->_redirect = (string)$url;
+ if (is_numeric($code) && (int)$code >= 300 && (int)$code < 400) {
+ $this->_code;
+ } else if (!isset($this->_code)) {
+ $this->code = 301;
+ }
+ return $this;
+ }
+
+ public function getRedirect() {
+ return $this->_redirect;
+ }
+