TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-18-2007, 10:05 AM   #1 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default 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
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-18-2007, 11:36 AM   #2 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

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
maZtah is offline  
Reply With Quote
The Following User Says Thank You to maZtah For This Useful Post:
bdm (12-18-2007)
Old 12-18-2007, 11:59 AM   #3 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-18-2007, 01:12 PM   #4 (permalink)
The Wanderer
 
hostfreak's Avatar
 
Join Date: Oct 2007
Posts: 21
Thanks: 1
hostfreak is on a distinguished road
Default

Not sure if this is the site, but the colors match your description: http://www.sampsonresume.com/
hostfreak is offline  
Reply With Quote
Old 12-18-2007, 01:33 PM   #5 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-18-2007, 01:35 PM   #6 (permalink)
bdm
The Acquainted
Good Samaritan 
 
Join Date: Nov 2007
Posts: 127
Thanks: 14
bdm is on a distinguished road
Default

Wouldn't it be in your history?
bdm is offline  
Reply With Quote
Old 12-18-2007, 03:31 PM   #7 (permalink)
The Wanderer
 
hostfreak's Avatar
 
Join Date: Oct 2007
Posts: 21
Thanks: 1
hostfreak is on a distinguished road
Default

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".
hostfreak is offline  
Reply With Quote
Old 12-18-2007, 03:39 PM   #8 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default


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!!
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 12-19-2007, 01:45 AM   #9 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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 :(.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 12-19-2007, 08:55 AM   #10 (permalink)
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

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
Tanax is offline  
Reply With Quote
Old 12-19-2007, 09:18 AM   #11 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

here in britain we mesure by mph, thats the way its gonna stay (coz its the correct mesurement, the rest of europe are wrong )
when i get chance ill put a little side note on it just for you Tanax
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
Old 01-03-2008, 12:39 PM   #12 (permalink)
The Wanderer
 
thegrayman's Avatar
 
Join Date: Dec 2007
Posts: 15
Thanks: 3
thegrayman is on a distinguished road
Default

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??
thegrayman is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:26 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design