11-02-2010, 12:08 AM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Nov 2010
Posts: 5
Thanks: 0
|
class?
Hey, I was wondering if anyone could give me an example script or show me how to make a class like such:
PHP Code:
$do->Query("SELECT * FROM users")->Where("id = 1")->extra("LIMIT 1");
See, I know how to make a class and functions inside of the class to make:
PHP Code:
$do->Query("SELECT * FROM users");
$do->Where(""id = 1");
$do->extra("LIMIT 1");
But I would rather have the single line link..
PHP Code:
$do->Query("SELECT * FROM users")->Where("id = 1")->extra("LIMIT 1");
Is this considered OOP (object oriented programming) ? I've searched and searched for this, tried many things.. nothings working :/ any help? Thanks!
|
|
|
|