本文整理汇总了PHP中SugarBean::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarBean::__construct方法的具体用法?PHP SugarBean::__construct怎么用?PHP SugarBean::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SugarBean
的用法示例。
在下文中一共展示了SugarBean::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->setupCustomFields('KBDocumentKBTags');
//parameter is module name
$this->disable_row_level_security = false;
}
示例2:
function __construct()
{
parent::__construct();
$this->db = DBManagerFactory::getInstance();
$this->dbManager = DBManagerFactory::getInstance();
$this->disable_row_level_security = true;
}
示例3: __construct
public function __construct($token = '', $secret = '')
{
parent::__construct();
$this->token = $token;
$this->secret = $secret;
$this->setState(self::REQUEST);
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->team_id = 1;
// make the item globally accessible
$this->disable_row_level_security = true;
}
示例5: __construct
public function __construct()
{
parent::__construct();
}
示例6: __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
}
}
}
示例7: __construct
public function __construct()
{
parent::__construct();
global $sugar_config;
if (!$sugar_config['require_accounts']) {
unset($this->required_fields['account_name']);
}
}
示例8: __construct
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: __construct
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: __construct
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: __construct
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: __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
}
示例13: __construct
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: __construct
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: __construct
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);
}
}