mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
문자메세지 관련 설정을 알림센터에 추가
This commit is contained in:
parent
5075e9d875
commit
26de6cebd8
6 changed files with 50 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue