public function is_empty(stdClass $submission) {
        $onlinetextsubmission = $this->get_onlinetext_submission($submission->id);
        $wordcount = 0;

        if (isset($onlinetextsubmission->onlinetext)) {
            $wordcount = count_words(trim($onlinetextsubmission->onlinetext));
        }

        return $wordcount == 0;
    }
public function is_empty(stdClass $submission) {
        $onlinetextsubmission = $this->get_onlinetext_submission($submission->id);
        $wordcount = 0;

        if (isset($onlinetextsubmission->onlinetext)) {
            $wordcount = count_words(trim($onlinetextsubmission->onlinetext));
        }

        return $wordcount == 0;
    }
public function is_empty ( stdClass $ submission ) { $ onlinetextsubmission = $ this -> get_onlinetext_submission ( $ submission -> id ) ; $ wordcount = 0 ; if ( isset ( $ onlinetextsubmission -> onlinetext ) ) { $ wordcount = count_words ( trim ( $ onlinetextsubmission -> onlinetext ) ) ; } return $ wordcount == 0 ; }
No text is set for this plugin

@param stdClass $submission
@return bool
No text is set for this plugin