public function new_submission_empty($data) {
        foreach ($this->submissionplugins as $plugin) {
            if ($plugin->is_enabled() && $plugin->is_visible() && $plugin->allow_submissions() &&
                    !$plugin->submission_is_empty($data)) {
                return false;
            }
        }
        return true;
    }
public function new_submission_empty($data) {
        foreach ($this->submissionplugins as $plugin) {
            if ($plugin->is_enabled() && $plugin->is_visible() && $plugin->allow_submissions() &&
                    !$plugin->submission_is_empty($data)) {
                return false;
            }
        }
        return true;
    }
public function new_submission_empty ( $ data ) { foreach ( $ this -> submissionplugins as $ plugin ) { if ( $ plugin -> is_enabled ( ) && $ plugin -> is_visible ( ) && $ plugin -> allow_submissions ( ) && ! $ plugin -> submission_is_empty ( $ data ) ) { return false ; } } return true ; }
Determine if a new submission is empty or not

@param stdClass $data Submission data
@return bool
Determine if a new submission is empty or not