Example #1
0
 /**
  * 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));
         }
     }
 }
Example #2
0
 /**
  * Overwrite init of error-handling to use logfiles
  */
 protected function initErrorHandling()
 {
     Error::init(Request::Uri());
 }
Example #3
0
 /**
  * Is the user on the shared page?
  * @return boolean
  */
 public static function isOnSharedPage()
 {
     return in_array('shared', explode('/', Request::Uri())) || self::isOnMetaCourseForFacebook();
 }