Пример #1
0
 /**
  * Class constructor
  * @global \DBManager $db
  */
 public function __construct()
 {
     //$this->connectionGateway = new ADAMConnectionGateway();
     $this->amBean = BeanFactory::getBean('pmse_BpmAccessManagement');
     //BpmAccessManagement();
     $this->key = '1234567890';
     $this->crypt = new Crypt();
     global $db;
     $this->db = isset($GLOBALS["db"]) ? $GLOBALS["db"] : $db;
     $this->pmse = PMSE::getInstance();
     $this->moduleName = $this->pmse->getModuleName();
 }
Пример #2
0
 public function __construct()
 {
     $this->caseFlowHandler = new PMSECaseFlowHandler();
     $this->userAssignmentHandler = new PMSEUserAssignmentHandler();
     $this->pmse = PMSE::getInstance();
     $this->wrapper = new PMSEWrapper();
     $this->requestHandler = new PMSEDirectRequestHandler();
     $this->caseWrapper = new PMSECaseWrapper();
 }
Пример #3
0
function bpminbox_execute_special_logic($field_name, &$source_object)
{
    require_once 'modules/pmse_Inbox/engine/PMSE.php';
    $pmse = PMSE::getInstance();
    if ($pmse->fileExists('modules/' . $source_object->module_dir . '/SaveOverload.php')) {
        require_once 'modules/' . $source_object->module_dir . '/SaveOverload.php';
        perform_save($source_object);
    }
}
Пример #4
0
 public function pmse_InboxViewShowCase()
 {
     $this->pmse = PMSE::getInstance();
     $this->wrapper = new PMSEWrapper();
     parent::SugarView();
 }
Пример #5
0
 /**
  * Constructor here set modulePath, pmse, moduleName properties to init an instance of this class
  *
  * @return Crypt
  */
 public function Crypt()
 {
     require_once 'vendor/Pear/Crypt_Blowfish/Blowfish.php';
     $this->pmse = PMSE::getInstance();
     $this->moduleName = $this->pmse->getModuleName();
 }
Пример #6
0
 public function __construct()
 {
     $this->pmse = PMSE::getInstance();
 }
Пример #7
0
 public function clearLog($api, $args)
 {
     $this->checkACL($api, $args);
     $logger = PMSELogger::getInstance();
     $pmse = PMSE::getInstance();
     global $current_user;
     if ($current_user->isDeveloperForModule('pmse_Inbox') || $current_user->isAdminForModule('pmse_Inbox')) {
         $pmse->clearLogFile($logger->getLogFileNameWithPath());
     } else {
         return false;
     }
     return true;
 }