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);
            }
        }
    }
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);
            }
        }
    }
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 ) ; } } }
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
Saves filter data into a persistant storage such as user session