CyberShot Posted October 14, 2009 Share Posted October 14, 2009 Hey guys. I am a student at a local college taking a class in php right now. I have a project due on friday that I can not figure out. Actually none of the other students in can figure it out either and the instructor seems to be missing right now. Can you take a look at the files and give me a hint. There are only two. there are only three short files. the instructions were as follows 1. Copy the images subfolder from your project_02 folder to your project_03 folder. 2. Copy the default.css file from your project_02/styles folderr to your project_03/styles folder. 3. Copy the rednote_2_objects three php files to your project_03 folder, renaming MusicStore.php to BikeSite.php and MusicStoreTester.php to BikeSiteTester.php. 4. Edit each php file to replace all references (including comments) for the rednote website with appropriate references for the your evolving bluebike website. 5. Edit each php file to replace all references to the music store classes with appropriate references to the your bike site classes. 6. Add a new class property named $pass to the BikeSite class. 7. Modify the BikeSite class methods (as needed) to make use of $pass in ways similar to the uses made of the $pass property by the Customer class. 8.Modify any existing tests or add new tests to BikeSiteTester.php to accomodate the changes to the BikeSite class. I have done everything except 6,7,8. I don't understand how to do those last few instructions. Any help would be greatly appreciated. Keep in mind, I have only been studying php for 3 weeks. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/ Share on other sites More sharing options...
ialsoagree Posted October 14, 2009 Share Posted October 14, 2009 As for number 6, that's pretty easy. If you don't know how to do it, you might want to read up on the PHP's manual entry for Class Basics. As for 7 and 8, can you post the Customer class using code tags as well as the BikeSite class and BikeSiteTester.php file? Quote Link to comment https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/#findComment-936843 Share on other sites More sharing options...
CyberShot Posted October 14, 2009 Author Share Posted October 14, 2009 I don't have any idea. The problem is that I don't know what the end result is suppose to be. we did not write all this code. The instrutor gave it to us then said modify it to work. I could spend a month figuring out how all this works. I don't have that much time. I need to turn it in on friday. is there anything in there that you can explain? Quote Link to comment https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/#findComment-936846 Share on other sites More sharing options...
CyberShot Posted October 14, 2009 Author Share Posted October 14, 2009 edit. I figure for number 6. all I need to do is add var $pass; I figure that number 7 says to use it in similar ways as used in customer.php. Well that would mean md5. But the password already is md5. So what is this new class property suppose to do? Quote Link to comment https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/#findComment-936850 Share on other sites More sharing options...
ialsoagree Posted October 14, 2009 Share Posted October 14, 2009 As I don't plan to download the zip file and do your homework for you, if you throw the codes I requested up I can point you in the right direction (maybe even give an example or two if there's a lot of work). Quote Link to comment https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/#findComment-936852 Share on other sites More sharing options...
CyberShot Posted October 14, 2009 Author Share Posted October 14, 2009 I wasn't asking for you to do my homework for me, but just to explain a few things. I included the zip file so that you could see what the code is doing and offer that explanation, the code is very short. I was finally able to get a hold of the instructor and we just discussed it so I am good now. Thanks for offering your help. Quote Link to comment https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/#findComment-936871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.