/**
  * Wrapper method for t3lib_div::validEmail() or \TYPO3\CMS\Core\Utility\GeneralUtility::validEmail()
  *
  * @param string $email Input string to evaluate
  * @return boolean Returns TRUE if the $email address (input string) is valid
  */
 public static function validEmail($email)
 {
     return Tx_Rnbase_Utility_Strings::validEmail($email);
 }
 /**
  * Returns the Backtrase excluding the log calls.
  *
  * @return array
  */
 private function getBacktrace()
 {
     \tx_rnbase::load('tx_rnbase_util_Debug');
     $trace = array_reverse(\tx_rnbase_util_Debug::getTracePaths());
     $lastIgnoreKey = 0;
     $ignoreClasses = array('DMK\\Mklog\\Logger\\', 'TYPO3\\CMS\\Core\\Log\\', 'TYPO3\\CMS\\Core\\Utility\\GeneralUtility::devLog', 'Tx_Rnbase_Utility_Logger', 'tx_rnbase_util_Logger');
     foreach ($trace as $key => $path) {
         $ignore = false;
         foreach ($ignoreClasses as $ignoreClass) {
             $ignore = \Tx_Rnbase_Utility_Strings::isFirstPartOfStr($path, $ignoreClass);
             if ($ignore) {
                 break;
             }
         }
         // break if ther is no more ignore
         if ($ignore) {
             $lastIgnoreKey = $key;
         }
     }
     return array_splice($trace, $lastIgnoreKey + 1);
 }
 /**
  * @param string	$emails
  * @return void
  */
 public function setEmailReceiver($emails)
 {
     $emails = Tx_Rnbase_Utility_Strings::trimExplode(',', $emails);
     foreach ($emails as $email) {
         if (!Tx_Rnbase_Utility_Strings::validEmail($email)) {
             throw new Exception('tx_mklog_scheduler_WatchDog->setEmail(): Invalid email address given!');
         }
     }
     $this->email = implode(',', $emails);
 }
 /**
  * This method returns the destination mail address as additional information
  *
  * @return	string	Information to display
  */
 public function getAdditionalInformation()
 {
     if ($this->getOptions()->isEmpty()) {
         return '';
     }
     \tx_rnbase::load('Tx_Rnbase_Utility_Strings');
     $options = array();
     foreach ($this->getOptions() as $key => $value) {
         $key = \Tx_Rnbase_Utility_Strings::underscoredToLowerCamelCase($key);
         $options[] = ucfirst($key) . ': ' . $value;
     }
     return 'Options: ' . implode('; ', $options);
 }
 /**
  * Th extension keys to exclude from logging
  *
  * @return array
  */
 public function getExcludeExtKeys()
 {
     $extKeys = $this->getExtConf()->getExcludeExtKeys();
     if (!is_array($extKeys)) {
         \tx_rnbase::load('Tx_Rnbase_Utility_Strings');
         $extKeys = \Tx_Rnbase_Utility_Strings::trimExplode(',', $extKeys);
         $this->getExtConf()->setExcludeExtKeys($extKeys);
     }
     return $this->getExtConf()->getExcludeExtKeys();
 }