XF 1.5 Can you extend Xenforo_Dependencies_Public?

Gobb

Member
Hey all, I'm just curious if there is any way to extend the following, located within the XenForo/Dependencies/Public.php file?
protected $_dataPreLoadFromRegistry array
_handleCustomPreloadedData(array &$data) function

I see that this file extends the XenForo/Dependencies/Abstract.php file, which has these two but without fixed data (I' tried extending to that too with no luck). I'd prefer to not directly edit the Public file, which does work. The reason for this was that I'm in the process of creating an addition to the moderator bar much like the report count, moderation count, etc, and these are both used within the respective controllerpublic files, so I was trying to recreate mine the same way. Although, if it's not possible, I guess it would be best to directly interact with the data registry for storing the counts and cache rebuilding?

Sorry if this is worded confusingly, still pretty green at addon creation too. Any insight would be much appreciated, thanks.
 
Back
Top Bottom