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


PHP Gdn_Model::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     self::$MemoryCache = array();
     parent::__construct('UserMeta');
     $this->SQL = clone Gdn::sql();
     $this->SQL->reset();
 }
開發者ID:korelstar,項目名稱:vanilla,代碼行數:10,代碼來源:class.usermetamodel.php

示例2: __construct

 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('User');
     $this->addFilterField(array('Admin', 'Deleted', 'CountVisits', 'CountInvitations', 'CountNotifications', 'Preferences', 'Permissions', 'LastIPAddress', 'AllIPAddresses', 'DateFirstVisit', 'DateLastActive', 'CountDiscussions', 'CountComments', 'Score', 'Photo'));
     if (!Gdn::session()->checkPermission('Garden.Moderation.Manage')) {
         $this->addFilterField(array('Banned', 'Verified', 'Confirmed', 'RankID'));
     }
 }
開發者ID:mcnasby,項目名稱:datto-vanilla,代碼行數:11,代碼來源:class.usermodel.php

示例3: __construct

 /**
  * Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Activity');
     try {
         $this->setPruneAfter(c('Garden.PruneActivityAfter', '2 months'));
     } catch (Exception $ex) {
         $this->setPruneAfter('2 months');
     }
 }
開發者ID:vanilla,項目名稱:vanilla,代碼行數:12,代碼來源:class.activitymodel.php

示例4: __construct

 public function __construct()
 {
     parent::__construct('UserAuthenticationProvider');
 }
開發者ID:tautomers,項目名稱:knoopvszombies,代碼行數:4,代碼來源:class.authenticationprovidermodel.php

示例5: __construct

 /**
  * Class constructor. Defines the related database table name.
  *
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct('Category');
     $this->collection = new CategoryCollection();
     $this->collection->setConfig(Gdn::config());
 }
開發者ID:R-J,項目名稱:vanilla,代碼行數:12,代碼來源:class.categorymodel.php

示例6: __construct

 /**
  * Class constructor. Defines the related database table name.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct('ConversationMessage');
     $this->PrimaryKey = 'MessageID';
 }
開發者ID:rnovino,項目名稱:Garden,代碼行數:11,代碼來源:class.conversationmessagemodel.php

示例7: __construct

 /**
  * Class constructor. Defines the related database table name.
  *
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct('Category');
     $this->collection = $this->createCollection();
 }
開發者ID:vanilla,項目名稱:vanilla,代碼行數:11,代碼來源:class.categorymodel.php

示例8: __construct

 /**
  * Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('BadgeAward');
 }
開發者ID:hxii,項目名稱:Application-Yaga,代碼行數:7,代碼來源:class.badgeawardmodel.php

示例9: __construct

 /**
  * Class constructor. Defines the related database table name.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct('Conversation');
 }
開發者ID:rnovino,項目名稱:Garden,代碼行數:10,代碼來源:class.conversationmodel.php

示例10: __construct

 /**
  * Set up the attachment.
  */
 public function __construct()
 {
     parent::__construct('Attachment');
     $this->PrimaryKey = 'AttachmentID';
 }
開發者ID:R-J,項目名稱:vanilla,代碼行數:8,代碼來源:class.attachmentmodel.php

示例11: __construct

 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Invitation');
 }
開發者ID:karanjitsingh,項目名稱:iecse-forum,代碼行數:7,代碼來源:class.invitationmodel.php

示例12: __construct

 /**
  * @param string $Name
  */
 public function __construct($Name = '')
 {
     parent::__construct('Tag');
     $this->StringTags = c('Plugins.Tagging.StringTags');
 }
開發者ID:sitexa,項目名稱:vanilla,代碼行數:8,代碼來源:class.tagmodel.php

示例13: __construct

 public function __construct()
 {
     parent::__construct('Page');
     $this->Validation->AddRule('UrlPath', 'function:ValidateUrlPath');
 }
開發者ID:unlight,項目名稱:Candy,代碼行數:5,代碼來源:class.pagemodel.php

示例14: __construct

 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('User');
     $this->addFilterField(['Admin', 'Deleted', 'CountVisits', 'CountInvitations', 'CountNotifications', 'Preferences', 'Permissions', 'LastIPAddress', 'AllIPAddresses', 'DateFirstVisit', 'DateLastActive', 'CountDiscussions', 'CountComments', 'Score']);
 }
開發者ID:vanilla,項目名稱:vanilla,代碼行數:8,代碼來源:class.usermodel.php

示例15: __construct

 public function __construct($ImportPath = '')
 {
     $this->ImportPath = $ImportPath;
     parent::__construct();
 }
開發者ID:elpum,項目名稱:TgaForumBundle,代碼行數:5,代碼來源:class.importmodel.php


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