vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "$vbulletin" ? the mother of all things :) (https://vborg.vbsupport.ru/showthread.php?t=153225)

mihai11 07-24-2007 08:44 AM

"$vbulletin" ? the mother of all things :)
 
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

Quote:

Originally Posted by Zachery (Post 1299940)
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...

Quote:

Originally Posted by Dismounted (Post 1300043)
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

Quote:

Originally Posted by King Kovifor (Post 1300070)
I don't think you can print out a class...

You can_t print a class, but an object:

PHP Code:

print_r($vbulletin); 

But be prepared for a HUGE amount of output ;)

Dismounted 07-24-2007 11:45 AM

Quote:

Originally Posted by King Kovifor (Post 1300070)
I don't think you can print out a class...

You wanna bet? ;)
PHP Code:

$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

Quote:

Originally Posted by Dismounted (Post 1300089)
You wanna bet? ;)
PHP Code:

$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.


All times are GMT. The time now is 03:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01006 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete