문자메세지 관련 설정을 알림센터에 추가

This commit is contained in:
BJRambo 2016-11-15 18:20:17 +09:00
parent 5075e9d875
commit 26de6cebd8
6 changed files with 50 additions and 0 deletions

View file

@ -491,4 +491,29 @@ class ncenterliteModel extends ncenterlite
return $output->data;
}
public static function getSmsHandler()
{
static $oSmsHandler = null;
if($oSmsHandler === null)
{
$config = self::getConfig();
if($config->use_sms != 'Y')
{
$oSmsHandler = false;
}
else
{
$oSmsHandler = new Rhymix\Framework\SMS;
if($oSmsHandler::getDefaultDriver()->getName() === 'Dummy')
{
$oSmsHandler = false;
}
}
}
return $oSmsHandler;
}
}