/**
  * Class Constructor
  */
 public function __construct()
 {
     $this->request = new PMSERequest();
     $this->logger = PMSELogger::getInstance();
     $this->request->setType('direct');
     $this->preProcessor = PMSEPreProcessor::getInstance();
 }
Пример #2
0
 /**
  * Pre Processor constructor method
  * @codeCoverageIgnore
  */
 private function __construct()
 {
     $this->executer = new PMSEExecuter();
     $this->validator = new PMSEValidator();
     $this->caseFlowHandler = new PMSECaseFlowHandler();
     $this->logger = PMSELogger::getInstance();
 }
Пример #3
0
 /**
  * Class Constructor
  * @global type $current_user
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     global $current_user;
     $this->schedulersJob = new SchedulersJob();
     $this->sugarJobQueue = new SugarJobQueue();
     $this->logger = PMSELogger::getInstance();
     $this->currentUser = $current_user;
 }
Пример #4
0
 /**
  *
  */
 public function __construct()
 {
     global $db;
     $this->request = new PMSERequest();
     $this->request->setType('hook');
     $this->preProcessor = PMSEPreProcessor::getInstance();
     $this->logger = PMSELogger::getInstance();
     $this->dbHandler = $db;
 }
Пример #5
0
 /**
  *
  * @global type $locale
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     global $locale;
     $this->locale = $locale;
     $this->beanUtils = new PMSEBeanHandler();
     $this->logger = PMSELogger::getInstance();
     $this->admin = new Administration();
     $this->pmseRelatedModule = new PMSERelatedModule();
 }
Пример #6
0
 /**
  * Class constructor
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     global $db;
     $this->executionMode = 'DEFAULT';
     $this->caseFlowHandler = new PMSECaseFlowHandler();
     $this->userAssignmentHandler = new PMSEUserAssignmentHandler();
     $this->beanHandler = new PMSEBeanHandler();
     $this->emailHandler = new PMSEEmailHandler();
     $this->dbHandler = $db;
     $this->logger = PMSELogger::getInstance();
 }
Пример #7
0
 /**
  * PMSEExecuter constructor
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     global $sugar_config;
     $this->caseFlowHandler = new PMSECaseFlowHandler();
     $this->flowRouter = new PMSEFlowRouter();
     $this->logger = PMSELogger::getInstance();
     $settings = $sugar_config['pmse_settings_default'];
     $this->maxExecutionCycleNumber = (int) $settings['error_number_of_cycles'];
     $this->maxExecutionTimeout = (int) $settings['error_timeout'];
     $this->executedElements = array();
     $this->executionTime = 0;
 }
Пример #8
0
 /**
  *
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->sugarQuery = new SugarQuery();
     $this->logger = PMSELogger::getInstance();
 }
Пример #9
0
 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->logger = PMSELogger::getInstance();
     $this->evaluator = new PMSEEvaluator();
     $this->pmseRelatedModule = new PMSERelatedModule();
 }
Пример #10
0
 /**
  *
  * @param type $level
  * @codeCoverageIgnore
  */
 public function __construct($level)
 {
     $this->level = $level;
     $this->logger = PMSELogger::getInstance();
 }
 /**
  * Class constructor
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->logger = PMSELogger::getInstance();
     $this->relationship = BeanFactory::getBean('Relationships');
     $this->relatedModule = new PMSERelatedModule();
 }
Пример #12
0
 /**
  * Flow Router Constructor
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->caseFlowHandler = new PMSECaseFlowHandler();
     $this->jobQueueHandler = new PMSEJobQueueHandler();
     $this->logger = PMSELogger::getInstance();
 }
 /**
  *
  * @param type $level
  * @codeCoverageIgnore
  */
 public function __construct($level)
 {
     $this->level = $level;
     $this->logger = PMSELogger::getInstance();
     $this->evaluator = new PMSEEvaluator();
 }
Пример #14
0
 /**
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->relatedDependency = new PMSERelatedDependencyWrapper();
     $this->logger = PMSELogger::getInstance();
 }
 /**
  * Class constructor.
  * Retrieving the logger instance from the singleton.
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->logger = PMSELogger::getInstance();
 }
Пример #16
0
 public function __construct()
 {
     $this->logger = PMSELogger::getInstance();
     $this->relatedRecordApi = new RelateRecordApi();
 }
Пример #17
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;
 }
Пример #18
0
 /**
  *
  * @global type $db
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     global $db;
     $this->dbHandler = $db;
     $this->logger = PMSELogger::getInstance();
 }
 /**
  *
  * Class constructor
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->wrapper = new PMSEWrapper();
     $this->logger = PMSELogger::getInstance();
 }
Пример #20
0
 /**
  * Class constructor
  * @codeCoverageIgnore
  */
 public function __construct()
 {
     $this->logger = PMSELogger::getInstance();
     $this->validators = array('direct' => array('terminate' => PMSEValidationLevel::NoValidation, 'concurrency' => PMSEValidationLevel::Simple, 'record' => PMSEValidationLevel::NoValidation, 'element' => PMSEValidationLevel::NoValidation, 'expression' => PMSEValidationLevel::NoValidation), 'hook' => array('terminate' => PMSEValidationLevel::Simple, 'concurrency' => PMSEValidationLevel::NoValidation, 'record' => PMSEValidationLevel::Simple, 'element' => PMSEValidationLevel::Simple, 'expression' => PMSEValidationLevel::Simple), 'engine' => array('terminate' => PMSEValidationLevel::NoValidation, 'concurrency' => PMSEValidationLevel::NoValidation, 'record' => PMSEValidationLevel::NoValidation, 'element' => PMSEValidationLevel::NoValidation, 'expression' => PMSEValidationLevel::NoValidation), 'queue' => array('terminate' => PMSEValidationLevel::NoValidation, 'concurrency' => PMSEValidationLevel::Simple, 'record' => PMSEValidationLevel::NoValidation, 'element' => PMSEValidationLevel::NoValidation, 'expression' => PMSEValidationLevel::NoValidation));
 }