vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can the datamanagers be used to retrieve info too? (https://vborg.vbsupport.ru/showthread.php?t=91840)

amykhar 07-08-2005 05:26 PM

Can the datamanagers be used to retrieve info too?
 
Or are they just for saving.

For example, could I initialize a forum data manager, set the forumid to the forum I am interested in, and then fetch the forum description using the fetch_field function?

Amy

Dream 07-08-2005 05:37 PM

/me votes for someone to make a datamanager how-to

amykhar 07-08-2005 06:03 PM

Quote:

Originally Posted by Dream
[high]* Dream votes for someone to make a datamanager how-to[/high]

Nah, just for the code to have better documentation. ;)

I tried doing what I posted in the above example. It doesn't seem to work, but I might be missing something.

merk 07-09-2005 10:01 AM

Im not sure how much help this will be, but im able to do:

PHP Code:

$userinfo fetch_userinfo($userid);
 
$userdata =& datamanager_init('User'$vbulletinERRTYPE_STANDARD);
$userdata->set_existing($userinfo);
$userdata->set_userfields($userfields);
$userdata->save(); 


amykhar 07-09-2005 01:06 PM

And, then once the fields are resaved, they are available for view, huh? I ended up just writing to my own method to do what I wanted. It's a lot easier :)

merk 07-10-2005 01:44 AM

Well, Im not totally sure, but the main reason i thought the code could help was because of the set_existing() method.

Im not sure if you can retrieve values either, but it could have been a starting point ;)


All times are GMT. The time now is 03:03 PM.

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.01059 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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