Retrieve results of a passing
-
Hello,
Firstly, thank you for this great plugin which saved me a lot of development!
Now, I need to build an interface where results of a passing could be easily consulted, through a table which will show scores done at each scale of the test. Thus, I need to retrieve :
– scales of the test;
– main data of a passing, like the date (can easily be done through a simple SQL request on the table “t_passings”);
– results of a passing;in an easily usable/readable way.
I looked at the database relations between the plugin’s tables and it seems possible to create methods from scratch to achieve this. Nevertheless, this would take time and those DIY functions would not be really performant.
So I studied the plugin source code to try to use built-in methods (I’m far away from undertsanding all of it!).
I think that the methods buildResults/buildScales/etc. from the WpTesting_Model_Passing class will provide what I need for my interface (correct me if I’m wrong).So far I was able to create a passing and associate a test to it (via the populate method). In order to retrieve an existing passing, I then use the setId method (hoping that would populate the passing instance with all its data), but that’s not working.
Could you help me please?
PS: sorry for the long post and possible english mistakes.
- The topic ‘Retrieve results of a passing’ is closed to new replies.