Hello,
I am doing an add-on to do some processing after a message\thread is deleted. But I can't seem to get my class loaded.
Here is my code event:
My LoadProxy:
But when I check the text file, the only class that gets loaded when I delete a message is XenForo_DataWriter_Forum. Am I missing something?
Thank you
I am doing an add-on to do some processing after a message\thread is deleted. But I can't seem to get my class loaded.
Here is my code event:
HTML:
<listener event_id="load_class_datawriter" execute_order="10" callback_class="TK_dataproc_Index" callback_method="LoadProxy" active="1" hint="" description=""/>
My LoadProxy:
Code:
<?php
/**
*
*/
class TK_dataproc_Index
{
public static function LoadProxy($class, array &$extend)
{
file_put_contents("d:\\xen.txt", $class);
$proxy = array(
'XenForo_DataWriter_DiscussionMessage'
);
if (in_array($class, $proxy))
{
$extend[] = str_replace('Index', '', __CLASS__) . $class;
}
}
}
?>
But when I check the text file, the only class that gets loaded when I delete a message is XenForo_DataWriter_Forum. Am I missing something?
Thank you