Deek
Member
I'm currently working on my own custom importer for Vanilla forums. I've created the listener for my class
and its going well so far but I need to make a custom methods that aren't in XenForo_Model_Import
I want to be able to call these functions on my model declared by
then called in my TheCollectiveMind_Importer_Vanilla by
What is the proper method of extending XenForo_Model_Import so I'm able to do this?
For refrence here is the function I need to be able use.
PHP:
class TheCollectiveMind_Importer_Vanilla extends XenForo_Importer_Abstract
I want to be able to call these functions on my model declared by
PHP:
$model = $this->_importModel
PHP:
$model->getUserNameByEmail($this->_convertToUtf8($thread['Email']))
What is the proper method of extending XenForo_Model_Import so I'm able to do this?
For refrence here is the function I need to be able use.
PHP:
public function getUserNameByEmail($email)
{
return $this->_getDb()->fetchOne('
SELECT username
FROM xf_user
WHERE email = ?
', $email);
}