Log in

View Full Version : "$vbulletin" ? the mother of all things :)


mihai11
07-24-2007, 08:44 AM
Hi,



Where can I find out everything that is contained in the variable "$vbulletin" ? Looks like everything that I need or I will need is already there :)

Is there an article about every piece of data that can be found there ?



Regards,
Razvan

Zachery
07-24-2007, 08:47 AM
There is a considerable ammount of data that is stored in the vbulletin class, you can learn more about it by going though the class_ and dm_ files in the includes folder. I believe you may also be able to print the entire array but I'm not 100% positive.

Dismounted
07-24-2007, 11:12 AM
If you think about it, $vbulletin doesn't actually contain many things...

King Kovifor
07-24-2007, 11:29 AM
There is a considerable ammount of data that is stored in the vbulletin class, you can learn more about it by going though the class_ and dm_ files in the includes folder. I believe you may also be able to print the entire array but I'm not 100% positive.

I don't think you can print out a class...

If you think about it, $vbulletin doesn't actually contain many things...

It holds userinfo and other little variables and links to classes, like $db...

Andreas
07-24-2007, 11:44 AM
I don't think you can print out a class...
You can_t print a class, but an object:


print_r($vbulletin);

But be prepared for a HUGE amount of output ;)

Dismounted
07-24-2007, 11:45 AM
I don't think you can print out a class...
You wanna bet? ;)
$methods = get_class_methods($vbulletin);
$vars = get_class_vars($vbulletin);

echo '<b>Methods:</b><br />';
print_r($methods);
echo '<br /><br /><b>Variables</b><br />';
print_r($vars);

King Kovifor
07-24-2007, 01:03 PM
You wanna bet? ;)
$methods = get_class_methods($vbulletin);
$vars = get_class_vars($vbulletin);

echo '<b>Methods:</b><br />';
print_r($methods);
echo '<br /><br /><b>Variables</b><br />';
print_r($vars);

Runs and hides... Oops.