コード例 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('KBDocumentKBTags');
     //parameter is module name
     $this->disable_row_level_security = false;
 }
コード例 #2
0
 function __construct()
 {
     parent::__construct();
     $this->db = DBManagerFactory::getInstance();
     $this->dbManager = DBManagerFactory::getInstance();
     $this->disable_row_level_security = true;
 }
コード例 #3
0
 public function __construct($token = '', $secret = '')
 {
     parent::__construct();
     $this->token = $token;
     $this->secret = $secret;
     $this->setState(self::REQUEST);
 }
コード例 #4
0
ファイル: Version.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     parent::__construct();
     $this->team_id = 1;
     // make the item globally accessible
     $this->disable_row_level_security = true;
 }
コード例 #5
0
ファイル: EmailMarketing.php プロジェクト: auf/crm_auf_org
    public function __construct()
	{
		parent::__construct();



	}
コード例 #6
0
ファイル: ProjectTask.php プロジェクト: jglaine/sugar761-ent
 public function __construct($init = true)
 {
     parent::__construct();
     if ($init && empty($GLOBALS['installing'])) {
         // default value for a clean instantiation
         $this->utilization = 100;
         global $current_user;
         if (empty($current_user)) {
             $this->assigned_user_id = 1;
             $admin_user = BeanFactory::getBean('Users', $this->assigned_user_id);
             $this->assigned_user_name = $admin_user->user_name;
         } else {
             $this->assigned_user_id = $current_user->id;
             $this->assigned_user_name = $current_user->user_name;
         }
         global $current_user;
         if (!empty($current_user)) {
             $this->team_id = $current_user->default_team;
             //default_team is a team id
         } else {
             $this->team_id = 1;
             // make the item globally accessible
         }
     }
 }
コード例 #7
0
 public function __construct()
 {
     parent::__construct();
     global $sugar_config;
     if (!$sugar_config['require_accounts']) {
         unset($this->required_fields['account_name']);
     }
 }
コード例 #8
0
 public function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('DocumentRevisions');
     //parameter is module name
     $this->disable_row_level_security = true;
     //no direct access to this module.
 }
コード例 #9
0
 public function __construct()
 {
     global $current_user, $db;
     parent::__construct();
     $this->disable_row_level_security = true;
     $this->currency = BeanFactory::getBean('Currencies')->getUserCurrency();
     $this->currencysymbol = $this->currency->symbol;
 }
コード例 #10
0
ファイル: Currency.php プロジェクト: sacredwebsite/SuiteCRM
 public function __construct()
 {
     parent::__construct();
     global $app_strings, $current_user, $sugar_config, $locale;
     $this->field_defs['hide'] = array('name' => 'hide', 'source' => 'non-db', 'type' => 'varchar', 'len' => 25);
     $this->field_defs['unhide'] = array('name' => 'unhide', 'source' => 'non-db', 'type' => 'varchar', 'len' => 25);
     $this->disable_row_level_security = true;
 }
コード例 #11
0
 public function __construct()
 {
     global $dictionary;
     if (isset($this->module_dir) && isset($this->object_name) && !isset($dictionary[$this->object_name])) {
         require SugarAutoLoader::existingCustomOne('metadata/workflow_schedulesMetaData.php');
     }
     parent::__construct();
 }
コード例 #12
0
ファイル: TeamNotice.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     parent::__construct();
     foreach ($this->field_defs as $field) {
         $this->field_name_map[$field['name']] = $field;
     }
     $this->team_id = 1;
     // make the item globally accessible
 }
コード例 #13
0
 public function __construct()
 {
     global $dictionary;
     if (isset($this->module_dir) && isset($this->object_name) && !isset($dictionary[$this->object_name])) {
         require 'metadata/dataset_layoutsMetaData.php';
     }
     parent::__construct();
     $this->disable_row_level_security = true;
 }
コード例 #14
0
ファイル: Audit.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     parent::__construct();
     $this->team_id = 1;
     // make the item globally accessible
     // load up the assoc fields array from globals
     $this->getAssocFieldsArray();
     $this->getFieldDefs();
 }
コード例 #15
0
ファイル: SavedSearch.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     parent::__construct();
     $args = func_get_args();
     if (count($args) > 0) {
         // old ctor, pass to init
         call_user_func_array(array($this, "init"), $args);
     }
 }
コード例 #16
0
ファイル: OAuthToken.php プロジェクト: jglaine/sugar761-ent
 public function __construct($token = '', $secret = '')
 {
     parent::__construct();
     $this->token = $token;
     $this->secret = $secret;
     $this->setState(self::REQUEST);
     if (!empty($GLOBALS['current_user']->id)) {
         $this->addVisibilityStrategy('OwnerVisibility');
     }
 }
コード例 #17
0
 public function __construct($columns = [], $orderBy = null, $sortOrder = 'DESC')
 {
     parent::__construct();
     $this->columns = $columns;
     $this->orderBy = $orderBy;
     $this->sortOrder = $sortOrder;
     $this->setupCustomFields('SavedSearch');
     foreach ($this->field_defs as $field) {
         $this->field_name_map[$field['name']] = $field;
     }
 }
コード例 #18
0
 public function __construct()
 {
     //Ensure the vardefs get loaded.
     global $dictionary;
     if (file_exists('custom/metadata/users_signaturesMetaData.php')) {
         require_once 'custom/metadata/users_signaturesMetaData.php';
     } else {
         require_once 'metadata/users_signaturesMetaData.php';
     }
     parent::__construct();
 }
コード例 #19
0
ファイル: Bug.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('Bugs');
     foreach ($this->field_defs as $field) {
         if (!isset($field['name'])) {
             continue;
         }
         $this->field_name_map[$field['name']] = $field;
     }
 }
コード例 #20
0
 public function __construct()
 {
     parent::__construct();
     global $current_user;
     if (!empty($current_user)) {
         $this->team_id = $current_user->default_team;
         //default_team is a team id
     } else {
         $this->team_id = 1;
         // make the item globally accessible
     }
 }
コード例 #21
0
ファイル: Tracker.php プロジェクト: butschster/sugarcrm_dev
 public function __construct()
 {
     global $dictionary;
     if (isset($this->module_dir) && isset($this->object_name) && !isset($GLOBALS['dictionary'][$this->object_name])) {
         $path = 'modules/Trackers/vardefs.php';
         if (defined('TEMPLATE_URL')) {
             $path = SugarTemplateUtilities::getFilePath($path);
         }
         require_once $path;
     }
     parent::__construct();
 }
コード例 #22
0
ファイル: Forecast.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     global $current_user;
     parent::__construct();
     $this->setupCustomFields('Forecasts');
     //parameter is module name
     $this->disable_row_level_security = true;
     $this->currency = BeanFactory::getBean('Currencies');
     if (isset($current_user)) {
         $this->currency->retrieve($current_user->getPreference('currency'));
     } else {
         $this->currency->retrieve('-99');
     }
     $this->currencysymbol = $this->currency->symbol;
     $this->base_rate = $this->currency->conversion_rate;
 }
コード例 #23
0
 public function __construct($init = true)
 {
     parent::__construct();
     if ($init) {
         // default value for a clean instantiation
         $this->utilization = 100;
         global $current_user;
         if (empty($current_user)) {
             $this->assigned_user_id = 1;
             $admin_user = new User();
             $admin_user->retrieve($this->assigned_user_id);
             $this->assigned_user_name = $admin_user->user_name;
         } else {
             $this->assigned_user_id = $current_user->id;
             $this->assigned_user_name = $current_user->user_name;
         }
     }
 }
コード例 #24
0
ファイル: Shipper.php プロジェクト: jglaine/sugar761-ent
 public function __construct()
 {
     parent::__construct();
     $this->disable_row_level_security = true;
 }
コード例 #25
0
 /**
  * Sole constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->index = self::$count;
     self::$count++;
 }
コード例 #26
0
ファイル: Scheduler.php プロジェクト: jglaine/sugar761-ent
 public function __construct($init = true)
 {
     parent::__construct();
     $this->job_queue_table = BeanFactory::getBean('SchedulersJobs')->table_name;
 }
コード例 #27
0
 function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('Administration');
 }
コード例 #28
0
ファイル: Meeting.php プロジェクト: butschster/sugarcrm_dev
 public function __construct()
 {
     parent::__construct();
     $this->setupCustomFields('Meetings');
     foreach ($this->field_defs as $field) {
         $this->field_name_map[$field['name']] = $field;
     }
     if (!empty($GLOBALS['app_list_strings']['duration_intervals'])) {
         $this->minutes_values = $GLOBALS['app_list_strings']['duration_intervals'];
     }
 }
コード例 #29
0
ファイル: InboundEmail.php プロジェクト: samus-aran/SuiteCRM
 /**
  * Sole constructor
  */
 public function __construct()
 {
     $this->InboundEmailCachePath = sugar_cached('modules/InboundEmail');
     $this->EmailCachePath = sugar_cached('modules/Emails');
     parent::__construct();
     if (function_exists("imap_timeout")) {
         /*
          * 1: Open
          * 2: Read
          * 3: Write
          * 4: Close
          */
         imap_timeout(1, 60);
         imap_timeout(2, 60);
         imap_timeout(3, 60);
     }
     $this->smarty = new Sugar_Smarty();
     $this->overview = new Overview();
     $this->imagePrefix = "{$GLOBALS['sugar_config']['site_url']}/cache/images/";
 }
コード例 #30
0
ファイル: Email.php プロジェクト: butschster/sugarcrm_dev
 /**
  * sole constructor
  */
 public function __construct()
 {
     global $current_user;
     $this->cachePath = sugar_cached('modules/Emails');
     parent::__construct();
     $this->emailAddress = new SugarEmailAddress();
     $this->imagePrefix = rtrim($GLOBALS['sugar_config']['site_url'], "/") . "/storage/cache/images/";
 }