public function calculateHash()
    {
        $answerModel = $this->getAnswerModel('en');
        foreach($answerModel->getItemsOrdered() as $item) {
                $result = $answerModel->get($item, ['label', 'type', 'multiOptions', 'parent_question', 'thClass', 'group', 'description']);
                if (array_key_exists('label', $result)) {
                    $items[$item] = $result;
                }
        }

        $hash = md5(serialize($items));
        
        return $hash;
    }
public function calculateHash()
    {
        $answerModel = $this->getAnswerModel('en');
        foreach($answerModel->getItemsOrdered() as $item) {
                $result = $answerModel->get($item, ['label', 'type', 'multiOptions', 'parent_question', 'thClass', 'group', 'description']);
                if (array_key_exists('label', $result)) {
                    $items[$item] = $result;
                }
        }

        $hash = md5(serialize($items));
        
        return $hash;
    }
public function calculateHash ( ) { $ answerModel = $ this -> getAnswerModel ( 'en' ) ; foreach ( $ answerModel -> getItemsOrdered ( ) as $ item ) { $ result = $ answerModel -> get ( $ item , [ 'label' , 'type' , 'multiOptions' , 'parent_question' , 'thClass' , 'group' , 'description' ] ) ; if ( array_key_exists ( 'label' , $ result ) ) { $ items [ $ item ] = $ result ; } } $ hash = md5 ( serialize ( $ items ) ) ; return $ hash ; }
Calculate a hash for this survey, taking into account the questions and answers

@return string
Calculate a hash for this survey taking into account the questions and answers