The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
What does pre_save() do?
I tried to read through the code but didn't understand it. |
#2
|
||||
|
||||
![]()
It does necessary Actions before a Record is being saved.
|
#3
|
||||
|
||||
![]()
Sorry to bug you, but if you can elaborate it would be most helpful. I can't understand lines like
PHP Code:
PHP Code:
PHP Code:
PHP Code:
No clue in the slightest what's going on here. |
#4
|
||||
|
||||
![]()
Hmm, it's documented - you just have to look
![]() Code:
/** * This variable prevents the pre_save() method from being called more than once. * In some classes, it is helpful to explicitly call pre_save() before * calling save as additional checks are done. This variable is used to prevent * pre_save() from being executed when save() is called. If null, pre_save() * has yet to be called; else, it is the return value of pre_save(). * * @var null|bool */ var $presave_called = null; /** * Any checks to run immediately before saving. If returning false, the save will not take place. * * @param boolean Do the query? * * @return boolean True on success; false if an error occurred */ function pre_save($doquery = true) Quote:
Quote:
Quote:
Quote:
PHP Code:
|
#5
|
||||
|
||||
![]()
Thanks.
There's an awful lot to learn. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|