Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifying your bundle for SF 221.Hi, #16

Open
FabRondeau opened this issue May 14, 2013 · 3 comments
Open

Modifying your bundle for SF 221.Hi, #16

FabRondeau opened this issue May 14, 2013 · 3 comments

Comments

@FabRondeau
Copy link

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

    }

}

@egulias
Copy link
Owner

egulias commented May 14, 2013

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

@FabRondeau
Copy link
Author

What do you mean about "PR" ?

@egulias
Copy link
Owner

egulias commented May 14, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants