original_string: public static function save_filter(stdclass $data, stdclass $persistant) {
          if (!isset($persistant->tool_customlang_filter)) {
              $persistant->tool_customlang_filter = array();
          }
          foreach ($data as $key => $value) {
              if ($key !== 'submit') {
                  $persistant->tool_customlang_filter[$key] = serialize($value);
              }
          }
      }
code: public static function save_filter(stdclass $data, stdclass $persistant) {
          if (!isset($persistant->tool_customlang_filter)) {
              $persistant->tool_customlang_filter = array();
          }
          foreach ($data as $key => $value) {
              if ($key !== 'submit') {
                  $persistant->tool_customlang_filter[$key] = serialize($value);
              }
          }
      }
code_tokens: public static function save_filter ( stdclass $ data , stdclass $ persistant ) { if ( ! isset ( $ persistant -> tool_customlang_filter ) ) { $ persistant -> tool_customlang_filter = array ( ) ; } foreach ( $ data as $ key => $ value ) { if ( $ key !== 'submit' ) { $ persistant -> tool_customlang_filter [ $ key ] = serialize ( $ value ) ; } } }
docstring: Saves filter data into a persistant storage such as user session
  
  @see self::load_filter()
  @param stdclass $data filter values
  @param stdclass $persistant storage object
docstring_tokens: Saves filter data into a persistant storage such as user session