plugin/exo/Entity/Attempt/Paper.php
public function getQuestion($questionUuid)
    {
        $question = null;

        if (empty($this->decodedStructure)) {
            $this->decodeStructure();
        }

        foreach ($this->decodedStructure['steps'] as $step) {
            foreach ($step['items'] as $item) {
                if ($item['id'] === $questionUuid) {
                    $question = $item;
                    break 2;
                }
            }
        }

        return $question;
    }
public function getQuestion($questionUuid)
    {
        $question = null;

        if (empty($this->decodedStructure)) {
            $this->decodeStructure();
        }

        foreach ($this->decodedStructure['steps'] as $step) {
            foreach ($step['items'] as $item) {
                if ($item['id'] === $questionUuid) {
                    $question = $item;
                    break 2;
                }
            }
        }

        return $question;
    }
public function getQuestion ( $ questionUuid ) { $ question = null ; if ( empty ( $ this -> decodedStructure ) ) { $ this -> decodeStructure ( ) ; } foreach ( $ this -> decodedStructure [ 'steps' ] as $ step ) { foreach ( $ step [ 'items' ] as $ item ) { if ( $ item [ 'id' ] === $ questionUuid ) { $ question = $ item ; break 2 ; } } } return $ question ; }
Gets a question in the paper structure.

@param $questionUuid

@return array
Gets a question in the paper structure .