public static function create_for_quiz($quizobj) {
        $structure = self::create();
        $structure->quizobj = $quizobj;
        $structure->populate_structure($quizobj->get_quiz());
        return $structure;
    }
public static function create_for_quiz($quizobj) {
        $structure = self::create();
        $structure->quizobj = $quizobj;
        $structure->populate_structure($quizobj->get_quiz());
        return $structure;
    }
public static function create_for_quiz ( $ quizobj ) { $ structure = self :: create ( ) ; $ structure -> quizobj = $ quizobj ; $ structure -> populate_structure ( $ quizobj -> get_quiz ( ) ) ; return $ structure ; }
Create an instance of this class representing the structure of a given quiz.
@param \quiz $quizobj the quiz.
@return structure
Create an instance of this class representing the structure of a given quiz .