public function __construct() { parent::__construct(); $this->setupCustomFields('KBDocumentKBTags'); //parameter is module name $this->disable_row_level_security = false; }
function __construct() { parent::__construct(); $this->db = DBManagerFactory::getInstance(); $this->dbManager = DBManagerFactory::getInstance(); $this->disable_row_level_security = true; }
public function __construct($token = '', $secret = '') { parent::__construct(); $this->token = $token; $this->secret = $secret; $this->setState(self::REQUEST); }
public function __construct() { parent::__construct(); $this->team_id = 1; // make the item globally accessible $this->disable_row_level_security = true; }
public function __construct() { parent::__construct(); }
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 } } }
public function __construct() { parent::__construct(); global $sugar_config; if (!$sugar_config['require_accounts']) { unset($this->required_fields['account_name']); } }
public function __construct() { parent::__construct(); $this->setupCustomFields('DocumentRevisions'); //parameter is module name $this->disable_row_level_security = true; //no direct access to this module. }
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; }
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; }
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(); }
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 }
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; }
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(); }
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); } }
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'); } }
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; } }
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(); }
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; } }
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 } }
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(); }
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; }
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; } } }
public function __construct() { parent::__construct(); $this->disable_row_level_security = true; }
/** * Sole constructor */ public function __construct() { parent::__construct(); $this->index = self::$count; self::$count++; }
public function __construct($init = true) { parent::__construct(); $this->job_queue_table = BeanFactory::getBean('SchedulersJobs')->table_name; }
function __construct() { parent::__construct(); $this->setupCustomFields('Administration'); }
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']; } }
/** * 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/"; }
/** * 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/"; }