protected function is_hint_empty_in_form_data($formdata, $number, $withparts) {
        if ($withparts) {
            return empty($formdata->hint[$number]['text']) && empty($formdata->hintclearwrong[$number]) &&
                    empty($formdata->hintshownumcorrect[$number]);
        } else {
            return  empty($formdata->hint[$number]['text']);
        }
    }
protected function is_hint_empty_in_form_data($formdata, $number, $withparts) {
        if ($withparts) {
            return empty($formdata->hint[$number]['text']) && empty($formdata->hintclearwrong[$number]) &&
                    empty($formdata->hintshownumcorrect[$number]);
        } else {
            return  empty($formdata->hint[$number]['text']);
        }
    }
protected function is_hint_empty_in_form_data ( $ formdata , $ number , $ withparts ) { if ( $ withparts ) { return empty ( $ formdata -> hint [ $ number ] [ 'text' ] ) && empty ( $ formdata -> hintclearwrong [ $ number ] ) && empty ( $ formdata -> hintshownumcorrect [ $ number ] ) ; } else { return empty ( $ formdata -> hint [ $ number ] [ 'text' ] ) ; } }
Determine if the hint with specified number is not empty and should be saved.
Overload if you use custom hint controls.
@param object $formdata the data from the form.
@param int $number number of hint under question.
@param bool $withparts whether to take into account clearwrong and shownumcorrect options.
@return bool is this particular hint data empty.
Determine if the hint with specified number is not empty and should be saved . Overload if you use custom hint controls .