QuizBundle
QuizBundle copied to clipboard
Modifying your bundle for SF 221.Hi,
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)
-
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
}
}
Yes please, send a PR. But take into account that this bundle is a bit out of date. Thanks for the interest!
What do you mean about "PR" ?
Pull Request. Fork the repo, push the change into your fork and then make a Pull Request to this one.