so basically more like $DB_site->xxx will be occuring, cause im not really sure what OOP is but im asuming $DB_site is OOP. can someone explain what OOP is>_<
edit: if they are going to use more OOP i believe vBulletin should announce it officially and write up some docs for developers so they can accordingly update their hacks so when the new version is released using more OOPs the vBulletin Hack community will be compatiable thus encouraging users to upgrade
so basically more like $DB_site->xxx will be occuring, cause im not really sure what OOP is but im asuming $DB_site is OOP. can someone explain what OOP is>_<
edit: if they are going to use more OOP i believe vBulletin should announce it officially and write up some docs for developers so they can accordingly update their hacks so when the new version is released using more OOPs the vBulletin Hack community will be compatiable thus encouraging users to upgrade
Object Oriented Programming. I suggest learning Java if you want to learn OOP. PHP doesn't lend itself to OO that well.
Jelsoft never has written documentation for developers and I don't expect it to change...but I would love it if they did.
A method of computer programming where items of related data together with routines associated with it are treated as a single 'object' or item in program. For example, to implement an onscreen dialog box requires graphic images for the box and its two buttons, details of how they are to be arranged, and facility to detect which button has been pressed. All of these would combine into a self-sufficient object which would take as input, the name of the dialog, perhaps some text to be displayed and the names of the buttons, and return as output a code indicating which button had been pressed. The advantage of OOP is that manipulation of the defined object can be made easier for the programmer. Languages such as C++ provide special features to assist OOP. ( top )
Undoubtedly the best way to learn OOP is to get a book and practice it. An example:
PHP Code:
class hello_world
{
// we initliaze global variables to the methods here
// note functions within a class are called methods
// variables are called preferences (I think? :p)
var $string = '';
// this function has the same name as the class so we can call it's arguements when
// intializing the class
function hello_world($incoming, $whowetalkinto)
{
// in OOP the $this-> prefix allows you to make new variables which are global
// to the class
// you can reference the value of $this->who and $this->string anywhere in any method now
$this->who = $whowetalkinto;
$this->string = $incoming;
// calls another method to output :)
$this->output();
}
// takes our global variables and spits them out
function output()
{
echo $this->string . ' ' . $this->who;
}
}
// you initialize a class with the keyword: new
new hello_world('Hello', 'Dean');