Exemple #1
0
 /**
  * Resets array of errors and appropriate data.
  * Additionally persistent storage will be cleaned 
  * too.
  *
  * @param null
  * @return null
  */
 static function flushErrors()
 {
     $storage = Storage::createWithSession("post_errors");
     $storage->un_set('errors');
     $storage->un_set('data');
     self::$errors = array();
     self::$post_data = array();
 }