Add changeo

This commit is contained in:
Marco A. Nina Mena
2017-08-14 16:37:50 -04:00
parent ee5a124bba
commit bd9d9a8717
16 changed files with 38 additions and 38 deletions

View File

@@ -2,6 +2,7 @@
namespace ProcessMaker\BusinessModel\Light;
use Processmaker\Core\System;
use \ProcessMaker\Services\Api;
use G;
@@ -11,7 +12,7 @@ class NotificationDevice
public function checkMobileNotifications()
{
$conf = \ProcessMaker\Core\System::getSystemConfiguration('', '', SYS_SYS);
$conf = System::getSystemConfiguration('', '', SYS_SYS);
$activeNotifications = true;
if (isset($conf['mobileNotifications'])) {
$activeNotifications = $conf['mobileNotifications'] == 1 ? true : false;

View File

@@ -13,6 +13,8 @@
namespace ProcessMaker\BusinessModel\Light;
use Processmaker\Core\System;
class PushMessageAndroid
{
private $url = 'https://android.googleapis.com/gcm/send';
@@ -54,7 +56,7 @@ class PushMessageAndroid
*/
public function setSettingNotification()
{
$conf = \ProcessMaker\Core\System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
$conf = System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
$this->setUrl($conf['android']['url']);
$this->setKey($conf['android']['serverApiKey']);
}

View File

@@ -12,6 +12,8 @@
namespace ProcessMaker\BusinessModel\Light;
use Processmaker\Core\System;
class PushMessageIOS
{
private $url = 'ssl://gateway.sandbox.push.apple.com:2195';
@@ -67,7 +69,7 @@ class PushMessageIOS
*/
public function setSettingNotification()
{
$conf = \ProcessMaker\Core\System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
$conf = System::getSystemConfiguration(PATH_CONFIG . 'mobile.ini');
$this->setUrl($conf['apple']['url']);
$this->setKey($conf['apple']['passphrase']);
$this->setPemFile($conf['apple']['pemFile']);