當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。