TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Help me find this tutorialsite? (http://www.talkphp.com/general/1763-help-me-find-tutorialsite.html)

ReSpawN 12-18-2007 10:05 AM

Help me find this tutorialsite?
 
Hey guys,

A couple of days ago, maybe longer than I week, I did some tutorials about OOP. Simply learning and trying as we go. 'Updating' the info somewhat.

Anyway, I found this site, and I believe the link came from TalkPHP, which has a tutorial about OOP. 2 to be exact. The one was about a CAR Class. This is what I copied from the site.

PHP Code:

<?php
  
class Car  
 
{  
     public 
$color;  
     public 
$horsepower;  
     public 
$speed;  
     public 
$name;  
     public 
$engineStatus;  
       
     function 
__construct()  
     {  
         
$this->color "Silver";  
         
$this->horsepower 450;  
         
$this->name "Aston Martin DB9";  
         
$this->speed 0//stationary  
         
$this->engineStatus "Off";  
   
         
$this->StartCar();// jump to the Startup function below  
     
}  
     function 
__destruct()  
     {  
         echo 
"Car has crashed!!!";  
     }  
     public function 
StartCar()  
     {  
         
$this->engineStatus "On";  
         echo 
"Engine is now running<br>";  
     }  
     public function 
SpeedUp($speed)  
     {  
         
$this->speed $speed;// set speed to 20  
         
echo "Car is now moving at ".$speed." Mph<br>";//display a confirmation message  
     
}  
     public function 
StopCar()  
     {  
         
$this->speed 0;  
         echo 
"Car stopped!<br>";  
     }  
     public function 
StopEngine()  
     {  
         
$this->engineStatus "Off";  
         echo 
"Engine is not running<br>";  
     }  
   
 }  
?>

The site style was dynamicly changing with javascript and the basic colors where orange and black/darkgrey.

Can you guys help me out here? :-S

maZtah 12-18-2007 11:36 AM

Sorry I don't know the url of that tutorial. Though, I'll provide you by giving another very useful tutorial about OOP that everybody should've gone through!

Here it is: http://hudzilla.org/phpwiki/index.ph...ed_programming

ReSpawN 12-18-2007 11:59 AM

Not the site I was aiming for. I was rather interested in the javascript used to controll the overflow of pages as you click a line.

Once again, the site was black with a little bit of orange.

hostfreak 12-18-2007 01:12 PM

Not sure if this is the site, but the colors match your description: http://www.sampsonresume.com/

ReSpawN 12-18-2007 01:33 PM

No, it's really a small site. Uses Moo.FX and other Javascript types. Faily lardge font, not more than 600px wide. Background color is black, overall I believe not a lot of graphical elements.

bdm 12-18-2007 01:35 PM

Wouldn't it be in your history?

hostfreak 12-18-2007 03:31 PM

I think I have found the site you are looking for: http://sketch-media.co.uk/index.php?page=PHP_OOP . It is the personal site of a member here, sketchMedia. Found it while I was browsing the TalkPHP homepage, located under the "Member of the month".

ReSpawN 12-18-2007 03:39 PM


I bow to your greatness. That's the site!

PS: No it isn't in my history, it's my WORK PC and sometimes we have some trouble with buffers & cookies so I erase it a lot. ;)

Thanks a bunch you guys!!

sketchMedia 12-19-2007 01:45 AM

its my site lol i had forgotten i had written that, its a complete mess at the moment, kind of put it on hold because of my job :(.

Tanax 12-19-2007 08:55 AM

An idea is to change the "M/h" to a dynamic system, since here in europe we measure in km/h, so if any of us uses that script we wouldn't understand anything.. xD

sketchMedia 12-19-2007 09:18 AM

here in britain we mesure by mph, thats the way its gonna stay (coz its the correct mesurement, the rest of europe are wrong :-P )
when i get chance ill put a little side note on it just for you Tanax :-D

thegrayman 01-03-2008 12:39 PM

That almost looks like a class I saw in a book about Javascript. It was cars as well. I think it was Learning JS in 24 hours??


All times are GMT. The time now is 06:25 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0