function Worksheets() { $this->worksheet_tour_id = $id; global $sugar_config; $noidung = new stdClass(); parent::SugarBean(); }
function Currency() { parent::SugarBean(); $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; }
function __construct($token = '', $secret = '') { parent::SugarBean(); $this->token = $token; $this->secret = $secret; $this->setState(self::REQUEST); }
function UserSignature() { //Ensure the vardefs get loaded. global $dictionary; require_once "metadata/users_signaturesMetaData.php"; parent::SugarBean(); }
function Document() { parent::SugarBean(); $this->setupCustomFields('Documents'); //parameter is module name $this->disable_row_level_security = false; }
function MergeRecord($merge_module = '', $merge_id = '') { global $sugar_config; parent::SugarBean(); if ($merge_module != '') { $this->load_merge_bean($merge_module, $merge_id); } }
function Dashboard() { parent::SugarBean(); $this->setupCustomFields('Dashboard'); foreach ($this->field_defs as $field) { $this->field_name_map[$field['name']] = $field; } }
function Currency() { parent::SugarBean(); 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($name, $vardefs) { global $dictionary; $this->object_name = $name; $this->table_name = $name; $dictionary[$this->object_name] = $vardefs; parent::SugarBean(); }
function DocumentRevision() { parent::SugarBean(); $this->setupCustomFields('DocumentRevisions'); //parameter is module name $this->disable_row_level_security = true; //no direct access to this module. }
/** * Sole constructor. */ function SchedulersJob() { parent::SugarBean(); require_once 'modules/Users/User.php'; $user = new User(); $user->retrieve('1'); // Scheduler jobs run as Admin $this->user = $user; }
function Bug42475TestBean() { $this->module_dir = 'Accounts'; $this->object_name = 'Account'; parent::SugarBean(); // Fake a fetched row $this->fetched_row = array('test_field' => 257.8300000001); $this->test_field = 257.83; }
function Opportunity() { parent::SugarBean(); global $sugar_config; if (!$sugar_config['require_accounts']) { unset($this->required_fields['account_name']); } global $current_user; }
/** * Sole constructor. */ function SchedulersJob($init = true) { parent::SugarBean(); if ($init) { $user = new User(); $user->retrieve('1'); // Scheduler jobs run as Admin $this->user = $user; } }
function Dashboard() { parent::SugarBean(); $this->setupCustomFields('Dashboard'); foreach ($this->field_defs as $field) { $this->field_name_map[$field['name']] = $field; } $this->team_id = 1; // make the item globally accessible }
function UserSignature() { //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::SugarBean(); }
function SavedSearch($columns = array(), $orderBy = null, $sortOrder = 'DESC') { parent::SugarBean(); $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; } }
function aCase() { parent::SugarBean(); global $sugar_config; if (!$sugar_config['require_accounts']) { unset($this->required_fields['account_name']); } $this->setupCustomFields('Cases'); foreach ($this->field_defs as $field) { $this->field_name_map[$field['name']] = $field; } }
function Tracker() { 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::SugarBean(); }
function ReportContainer() { parent::SugarBean(); $this->new_schema = true; if (empty($GLOBALS["current_user"])) { $this->assigned_user_id = 1; $this->assigned_user_name = 'admin'; } else { $this->assigned_user_id = $GLOBALS["current_user"]->id; $this->assigned_user_name = $GLOBALS["current_user"]->user_name; } SimpleTeams::prepareBean($this); }
function ReportProviderBase() { parent::SugarBean(); $this->new_schema = true; global $current_user; if (empty($current_user)) { $this->assigned_user_id = 1; $this->assigned_user_name = 'admin'; } else { $this->assigned_user_id = $current_user->id; $this->assigned_user_name = $current_user->user_name; } SimpleTeams::prepareBean($this); }
function ProjectTask() { parent::SugarBean(); // default value for a clean instantiation $this->utilization = 100; global $current_user; if (empty($current_user)) { $this->assigned_user_id = 1; $this->assigned_user_name = 'admin'; } else { $this->assigned_user_id = $current_user->id; $this->assigned_user_name = $current_user->user_name; } }
function ProjectTask($init = true) { parent::SugarBean(); 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; } } }
/** * Sole constructor. */ function SchedulersJob($init = true) { parent::SugarBean(); if ($init) { $user = new User(); //check is default admin exists $adminId = $this->db->getOne('SELECT id FROM users WHERE id=1 AND is_admin=1 AND deleted=0 AND status=\'Active\'', true, 'Error retrieving Admin account info'); if (false === $adminId) { //retrive other admin $adminId = $this->db->getOne('SELECT id FROM users WHERE is_admin=1 AND deleted=0 AND status=\'Active\'', true, 'Error retrieving Admin account info'); if ($adminId) { $user->retrieve($adminId); } else { $GLOBALS['log']->fatal('No Admin account found!'); return false; } } else { $user->retrieve('1'); // Scheduler jobs run as default Admin } $this->user = $user; } }
/** * Sole constructor */ function InboundEmail() { $this->InboundEmailCachePath = sugar_cached('modules/InboundEmail'); $this->EmailCachePath = sugar_cached('modules/Emails'); parent::SugarBean(); 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->safe = new HTML_Safe(); $this->safe->whiteProtocols[] = "cid"; $this->safe->clear(); $this->smarty = new Sugar_Smarty(); $this->overview = new Overview(); $this->imagePrefix = "{$GLOBALS['sugar_config']['site_url']}/cache/images/"; }
function CampaignTracker() { parent::SugarBean(); }
/** * Constructor */ public function __construct() { parent::SugarBean(); }
function Version() { parent::SugarBean(); }
public function __construct(User $user = null) { parent::SugarBean(); $this->_userFocus = $user; $this->tracker_visibility = false; }
function ComponentPrepress() { parent::SugarBean(); $this->list_fields = $this->column_fields; }