![]() |
defining functions inside datamanagers
I have tried to define a new function inside the attachment datamanager
PHP Code:
Am i doing something wrong? this is how it is described in the vBulletin manual. |
Can you give the exact location where this is stated in the manual?
As it seems to be wrong ;) You cannot create methods for objects at runtime; this is a PHP limitation. What you can do is using a lamda function that calls your custom verification function: PHP Code:
|
Sorry, my mistake, the code in the manual shows what you've pasted, i was trying to use VF_METHOD where it should have been just a string.
Got it working now, thanks :) |
All times are GMT. The time now is 07:53 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|