public static function save($form, $formid, $prepare = true) {
        if($prepare) {
            self::prepareSession();
        }
        
        // Save in session
        $_SESSION['bbforms'][$formid] = $form;
    }
public static function save($form, $formid, $prepare = true) {
        if($prepare) {
            self::prepareSession();
        }
        
        // Save in session
        $_SESSION['bbforms'][$formid] = $form;
    }
public static function save ( $ form , $ formid , $ prepare = true ) { if ( $ prepare ) { self :: prepareSession ( ) ; } // Save in session $ _SESSION [ 'bbforms' ] [ $ formid ] = $ form ; }
Save Form into session, and prepare it for validation later on
@param \bootbuilder\Form $form
@param int $formid
@param boolean $prepare prepare the sesison, false on unittesting
Save Form into session and prepare it for validation later on