Ejemplo n.º 1
0
 function setUserProfiletype($userId, $pId)
 {
     if ($this->detect_application() == false) {
         return;
     }
     //IMP : if MI are attached but subscription_message is set to false
     // then dont apply any action
     //old
     //$subscription_message =  XiptFactory::getSettings('subscription_message');
     //new
     require_once JPATH_ROOT . DS . 'components' . DS . 'com_xipt' . DS . 'api.xipt.php';
     $integrate_with = XiptAPI::getGlobalConfig('integrate_with');
     if ($integrate_with == 'aec') {
         XiptAPI::setUserProfiletype($userId, $pId, 'ALL');
     }
     return;
 }