Log in

View Full Version : DataManagers: REQ_AUTO


akanevsky
05-30-2006, 07:27 PM
What exactly does REQ_AUTO do?
I couldn't find any references to it except for the define() in functions.php and the validfields[] in field declarations. Thanks.

Paul M
05-30-2006, 09:48 PM
From the docs;

REQ_YES - the field is required

REQ_NO - the field is not required

REQ_AUTO - the field can be automatically generated. The does not have any effect on code execution at this time. This is appropriate for things like post times that can be reasonably guessed before inserting the new data. (You will still need to write code to generate the appropriate value!)

REQ_INCR - this field is an AUTO_INCREMENT field in the database, and thus will be automatically generated upon insertion
Whether that makes you any wiser is another story .....

See http://www.vbulletin.com/docs/html?manualversion=30504500

akanevsky
05-30-2006, 10:21 PM
Thank you.
Another question:
Is the VF_METHOD called regardless of the REQ_X value?