QuizBundle icon indicating copy to clipboard operation
QuizBundle copied to clipboard

Modifying your bundle for SF 221.Hi,

Open FabRondeau opened this issue 11 years ago • 3 comments

Hi, I've just installed your bundle to use it. THe changes I've made only allow to display web pages. I haven't tryed to insert, update and remove questions and quizes yet. If you're interested in, these are changes I add the files:

1.All the *Type.php files : public function buildForm(FormBuilder $builder, array $options) must be replaced by public function buildForm(FormBuilderInterface $builder, array $options)

  1. Egulias\QuizBundle\Entity\Choices.php:

    you must implement CHOICELISTINTERFACE and then the class is as follows:

    /** *

    • @ORM\Entity
    • @ORM\Table (name="choices") / class Choices extends QuestionChoices implements ChoiceListInterface //modif FRO implements... { /*
      • @ORM\Id
      • @ORM\Column(type="integer")
      • @ORM\GeneratedValue(strategy="AUTO") */ protected $id;

    //ajouts FRO pour version SF221 : implémentation des méthodes CHOICELISTINTERFACE

    public function getValues(){

    }

    public function getPreferredViews(){

    }

    public function getRemainingViews() {

    }

    public function getChoices(){

    } /**

    • @param array $choices */ public function getValuesForChoices(array $choices) { // TODO: Auto-generated method stub

    }

    /**

    • @param array $values */ public function getIndicesForValues(array $values) { // TODO: Auto-generated method stub

    }

    /**

    • @param array $choices */ public function getIndicesForChoices(array $choices) { // TODO: Auto-generated method stub

    }

    /**

    • @param array $values */ public function getChoicesForValues(array $values) { // TODO: Auto-generated method stub

    }

}

FabRondeau avatar May 14 '13 11:05 FabRondeau

Yes please, send a PR. But take into account that this bundle is a bit out of date. Thanks for the interest!

egulias avatar May 14 '13 13:05 egulias

What do you mean about "PR" ?

FabRondeau avatar May 14 '13 13:05 FabRondeau

Pull Request. Fork the repo, push the change into your fork and then make a Pull Request to this one.

egulias avatar May 14 '13 13:05 egulias