/** * Include class::Error and and initialise it */ protected function initErrorHandling() { Error::init(Request::Uri()); if ($this->logGetAndPost) { if (!empty($_POST)) { Error::getInstance()->addDebug('POST-Data: ' . print_r($_POST, true)); } if (!empty($_GET)) { Error::getInstance()->addDebug('GET-Data: ' . print_r($_GET, true)); } } }
/** * Overwrite init of error-handling to use logfiles */ protected function initErrorHandling() { Error::init(Request::Uri()); }
/** * Is the user on the shared page? * @return boolean */ public static function isOnSharedPage() { return in_array('shared', explode('/', Request::Uri())) || self::isOnMetaCourseForFacebook(); }