コード例 #1
0
 function __construct()
 {
     $this->_entity = $this->setEntity();
     $this->_formType = $this->setFormType();
     $this->_form_template = $this->setFormTemplate();
     $this->_list_template = $this->setListTemplate();
     $this->_redirect_route = $this->setRedirectRoute();
     $this->_list_columns = $this->setListColumns();
     if ($this->_entity == null || trim($this->_entity) == "") {
         throw new \Exception("Target Entity must be set, please implement setEntity to return a correct value");
     }
     if ($this->_formType == null) {
         throw new \Exception("Target FORM TYPE must be set, please implement setFormType to return a correct value");
     }
     if ($this->_form_template == null || trim($this->_form_template) == "") {
         throw new \Exception("Target FORM TEMPLATE must be set, please implement setFormTemplate to return a correct value");
     }
     if ($this->_list_template == null || trim($this->_list_template) == "") {
         throw new \Exception("Target LIST TEMPLATE must be set, please implement setListTemplate to return a correct value");
     }
     if ($this->_redirect_route == null || trim($this->_redirect_route) == "") {
         throw new \Exception("REDIRECT ROUTE must be set, please implement setRedirectRoute to return a correct value");
     }
     parent::__construct();
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #3
0
 public function __construct()
 {
     PreferencesUtils::registerKey("CORE_LEADSFACTORY_EMAIL_SENDER", "Email used by the lead's factory as sender in emails", PreferencesUtils::$_PRIORITY_OPTIONNAL);
     PreferencesUtils::registerKey("CORE_LEADSFACTORY_DISPATCH_EMAIL", "Email of the dispatch user", PreferencesUtils::$_PRIORITY_REQUIRED);
     parent::__construct();
 }
コード例 #4
0
 public function __construct()
 {
     PreferencesUtils::registerKey(ElasticSearchUtils::$_SEARCH_URL_AND_PORT_ELASTICSEARCH_PREFERENCE, "Url to elastic search", PreferencesUtils::$_PRIORITY_REQUIRED);
     parent::__construct();
 }