static function getObjectInstance($sSys, $iId, $iInit = true)
{
$aSystems = self::getSystems();
if (!isset($aSystems[$sSys])) {
return null;
}
bx_import('BxTemplVotingView');
$sClassName = 'BxTemplVotingView';
if ($aSystems[$sSys]['override_class_name']) {
require_once BX_DIRECTORY_PATH_ROOT . $aSystems[$sSys]['override_class_file'];
$sClassName = $aSystems[$sSys]['override_class_name'];
}
return new $sClassName($sSys, $iId, $iInit);
}