public function resetOutcomeVariables($preserveBuiltIn = true)
    {
        $data = &$this->getDataPlaceHolder();

        foreach (array_keys($data) as $k) {
            if ($data[$k] instanceof OutcomeVariable) {
                if ($preserveBuiltIn === true && $k === 'completionStatus') {
                    continue;
                } else {
                    $data[$k]->applyDefaultValue();
                }
            }
        }
    }
public function resetOutcomeVariables($preserveBuiltIn = true)
    {
        $data = &$this->getDataPlaceHolder();

        foreach (array_keys($data) as $k) {
            if ($data[$k] instanceof OutcomeVariable) {
                if ($preserveBuiltIn === true && $k === 'completionStatus') {
                    continue;
                } else {
                    $data[$k]->applyDefaultValue();
                }
            }
        }
    }
public function resetOutcomeVariables ( $ preserveBuiltIn = true ) { $ data = & $ this -> getDataPlaceHolder ( ) ; foreach ( array_keys ( $ data ) as $ k ) { if ( $ data [ $ k ] instanceof OutcomeVariable ) { if ( $ preserveBuiltIn === true && $ k === 'completionStatus' ) { continue ; } else { $ data [ $ k ] -> applyDefaultValue ( ) ; } } } }
Reset all outcome variables to their defaults.

@param boolean $preserveBuiltIn Whether the built-in outcome variable 'completionStatus' should be preserved.
Reset all outcome variables to their defaults .