當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Table::initialize方法代碼示例

本文整理匯總了PHP中Cake\ORM\Table::initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP Table::initialize方法的具體用法?PHP Table::initialize怎麽用?PHP Table::initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Cake\ORM\Table的用法示例。


在下文中一共展示了Table::initialize方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: initialize

 /**
  * Initialize method
  *
  * @param array $config The configuration for the Table.
  * @return void
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->table('clients');
     $this->displayField('id_client');
     $this->primaryKey('id_client');
 }
開發者ID:ghezali-brahim,項目名稱:projet-compta,代碼行數:13,代碼來源:UsersTable.php

示例2: initialize

 /**
  * @param array $config Config
  * @return void
  */
 public function initialize(array $config)
 {
     $this->table('oauth_refresh_tokens');
     $this->primaryKey('refresh_token');
     $this->belongsTo('AccessTokens', ['className' => 'OAuthServer.AccessTokens', 'foreignKey' => 'oauth_token']);
     parent::initialize($config);
 }
開發者ID:laughingpain,項目名稱:oauth-server,代碼行數:11,代碼來源:RefreshTokensTable.php

示例3: initialize

 /**
  * Initialize method
  *
  * @param array $config The configuration for the Table.
  * @return void
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->table('financial_statement');
     $this->displayField('emiten_code');
     $this->primaryKey(['emiten_code', 'period']);
 }
開發者ID:unid3ntified,項目名稱:ceksaham,代碼行數:13,代碼來源:FinancialStatementTable.php

示例4: initialize

 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->table('event_guests');
     $this->belongsTo('Phonebooks');
     $this->belongsTo('Events');
 }
開發者ID:vla9isla8,項目名稱:hochuna_cakephp,代碼行數:7,代碼來源:EventGuestsTable.php

示例5: initialize

 /**
  * Initialize method
  *
  * @param array $config The configuration for the Table.
  * @return void
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->table('plays');
     $this->displayField('hometeam');
     $this->primaryKey(['hometeam', 'awayteam', 'dateOfGame']);
 }
開發者ID:Hapii,項目名稱:quickStats,代碼行數:13,代碼來源:PlaysTable.php

示例6: initialize

 /**
  * @param array $config Config
  * @return void
  */
 public function initialize(array $config)
 {
     $this->table('oauth_session_scopes');
     $this->belongsTo('Sessions', ['className' => 'OAuthServer.Sessions']);
     $this->belongsTo('Scopes', ['className' => 'OAuthServer.Scopes']);
     parent::initialize($config);
 }
開發者ID:laughingpain,項目名稱:oauth-server,代碼行數:11,代碼來源:SessionScopesTable.php

示例7: initialize

 /**
  * @param array $config Config
  * @return void
  */
 public function initialize(array $config)
 {
     $this->table('oauth_auth_code_scopes');
     $this->belongsTo('AuthCodes', ['className' => 'OAuthServer.AuthCodes', 'foreignKey' => 'auth_code', 'propertyName' => 'code']);
     $this->belongsTo('Scopes', ['className' => 'OAuthServer.Scopes']);
     parent::initialize($config);
 }
開發者ID:surjit,項目名稱:oauth-server,代碼行數:11,代碼來源:AuthCodeScopesTable.php

示例8: initialize

 /**
  * Initialize method
  *
  * @param array $config The configuration for the Table.
  * @return void
  */
 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->table('comments');
     $this->addBehavior('Timestamp');
     $this->belongsTo('Users', ['className' => Configure::read('Plugin.Comments.users.className'), 'foreignKey' => 'user_id', 'joinType' => 'Left']);
 }
開發者ID:k-ndeye,項目名稱:Comment-cakephp3,代碼行數:13,代碼來源:CommentsTable.php

示例9: initialize

 /**
  * @param array $config Config
  * @return void
  */
 public function initialize(array $config)
 {
     $this->table('oauth_access_token_scopes');
     $this->belongsTo('AccessTokens', ['className' => 'OAuthServer.AccessTokens', 'foreignKey' => 'oauth_token']);
     $this->belongsTo('Scopes', ['className' => 'OAuthServer.Scopes']);
     parent::initialize($config);
 }
開發者ID:surjit,項目名稱:oauth-server,代碼行數:11,代碼來源:AccessTokenScopesTable.php

示例10: initialize

 public function initialize(array $config)
 {
     parent::initialize($config);
     $this->displayField('title');
     $this->belongsTo('Books');
     $this->hasMany('Distributions');
 }
開發者ID:bostontrader,項目名稱:acctwerx,代碼行數:7,代碼來源:TransactionsTable.php


注:本文中的Cake\ORM\Table::initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。