Пример #1
0
 /**
  * Returns a shared instanace of RaxanDataSanitizer with direct input enabled. Used internally
  * @return RaxanDataSanitizer
  */
 public static function getSharedSanitizer()
 {
     if (self::$sharedSanitizer) {
         return self::$sharedSanitizer;
     } else {
         self::$sharedSanitizer = self::dataSanitizer();
         self::$sharedSanitizer->enableDirectInput();
         return self::$sharedSanitizer;
     }
 }