PHP Classes

This code isn't object oriented.

Recommend this page to a friend!

      PHP MySQL Quiz class  >  All threads  >  This code isn't object oriented.  >  (Un) Subscribe thread alerts  
Subject:This code isn't object oriented.
Summary:Package rating comment
Messages:4
Author:Maykonn Welington Candido
Date:2013-11-06 13:16:02
Update:2013-11-06 18:40:00
 

Maykonn Welington Candido rated this package as follows:

Utility: Sufficient
Consistency: Not sure
Examples: Sufficient

  1. This code isn't object oriented.   Reply   Report abuse  
Picture of Maykonn Welington Candido Maykonn Welington Candido - 2013-11-06 13:16:02
This code isn't object oriented. Can not be easily reused for OO applications.

  2. Re: This code isn't object oriented.   Reply   Report abuse  
Picture of Nuno Tiago Nuno Tiago - 2013-11-06 18:15:01 - In reply to message 1 from Maykonn Welington Candido
Sorry, I am little confused about your comment, this class was made ​​for the purpose of simplify quiz also as your extensibility.

I use the "real" Objects to call mysql, but you quickly change the main functions, "display_questions" and "check_question" to Object Oriented.

But explain please, why is difficult to reused for OO applications.

Best regards,

Nuno

  3. Re: This code isn't object oriented.   Reply   Report abuse  
Picture of Maykonn Welington Candido Maykonn Welington Candido - 2013-11-06 18:34:34 - In reply to message 2 from Nuno Tiago
Sorry, Nuno,

quizz_user_class.php and
sql_class.php

Are ok to reuse.

I got confused between the Roles of the sample files. It was my mistake.

But is a tip to improve your package: separate the sample files in a folder /examples and quiz /src for example.

This will improve the understanding of the package.

  4. Re: This code isn't object oriented.   Reply   Report abuse  
Picture of Maykonn Welington Candido Maykonn Welington Candido - 2013-11-06 18:40:00 - In reply to message 2 from Nuno Tiago
I updated my ratings on this package.