public function sortQuestion($data)
    {
        $arr = explode(",", $data);

        foreach ($arr as $k => $v) {
            $question = $this->getQuizQuestionMapper()->findById($v);
            $question->setPosition($k);
            $this->getQuizQuestionMapper()->update($question);
        }

        return true;
    }
public function sortQuestion($data)
    {
        $arr = explode(",", $data);

        foreach ($arr as $k => $v) {
            $question = $this->getQuizQuestionMapper()->findById($v);
            $question->setPosition($k);
            $this->getQuizQuestionMapper()->update($question);
        }

        return true;
    }
public function sortQuestion ( $ data ) { $ arr = explode ( "," , $ data ) ; foreach ( $ arr as $ k => $ v ) { $ question = $ this -> getQuizQuestionMapper ( ) -> findById ( $ v ) ; $ question -> setPosition ( $ k ) ; $ this -> getQuizQuestionMapper ( ) -> update ( $ question ) ; } return true ; }
This function update the sort order of the questions in a Quiz

@param  string $data
@return boolean
This function update the sort order of the questions in a Quiz