Robust
Well-known member
What does getTablesDataFromArray do? I don't really understand its purpose. The tables data is already given if you do getForumById, for example, so why do this?
e.g. from XenForo_DataWriter_Forum:
e.g. from XenForo_DataWriter_Forum:
Code:
protected function _getExistingData($data)
{
if (!$nodeId = $this->_getExistingPrimaryKey($data))
{
return false;
}
$forum = $this->getModelFromCache('XenForo_Model_Forum')->getForumById($nodeId);
if (!$forum)
{
return false;
}
return $this->getTablesDataFromArray($forum);
}