当前位置: 首页>>代码示例>>PHP>>正文


PHP SugarBean::__construct方法代码示例

本文整理汇总了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;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:7,代码来源:KBDocumentKBTag.php

示例2:

 function __construct()
 {
     parent::__construct();
     $this->db = DBManagerFactory::getInstance();
     $this->dbManager = DBManagerFactory::getInstance();
     $this->disable_row_level_security = true;
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:7,代码来源:ContactOpportunityRelationship.php

示例3: __construct

 public function __construct($token = '', $secret = '')
 {
     parent::__construct();
     $this->token = $token;
     $this->secret = $secret;
     $this->setState(self::REQUEST);
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:7,代码来源:OAuthToken.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->team_id = 1;
     // make the item globally accessible
     $this->disable_row_level_security = true;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:7,代码来源:Version.php

示例5: __construct

    public function __construct()
	{
		parent::__construct();



	}
开发者ID:auf,项目名称:crm_auf_org,代码行数:7,代码来源:EmailMarketing.php

示例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
         }
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:25,代码来源:ProjectTask.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     global $sugar_config;
     if (!$sugar_config['require_accounts']) {
         unset($this->required_fields['account_name']);
     }
 }
开发者ID:butschster,项目名称:sugarcrm_dev,代码行数:8,代码来源:Opportunity.php

示例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.
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:8,代码来源:DocumentRevision.php

示例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;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:8,代码来源:ForecastDirectReports.php

示例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;
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:8,代码来源:Currency.php

示例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();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:8,代码来源:WorkFlowSchedule.php

示例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
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:9,代码来源:TeamNotice.php

示例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;
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:9,代码来源:DataSet_Layout.php

示例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();
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:9,代码来源:Audit.php

示例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);
     }
 }
开发者ID:jglaine,项目名称:sugar761-ent,代码行数:9,代码来源:SavedSearch.php


注:本文中的SugarBean::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。