本文整理汇总了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();
}
示例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'));
}
}
示例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');
}
}
示例4: __construct
public function __construct()
{
parent::__construct('UserAuthenticationProvider');
}
示例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());
}
示例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';
}
示例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();
}
示例8: __construct
/**
* Defines the related database table name.
*/
public function __construct()
{
parent::__construct('BadgeAward');
}
示例9: __construct
/**
* Class constructor. Defines the related database table name.
*
* @since 2.0.0
* @access public
*/
public function __construct()
{
parent::__construct('Conversation');
}
示例10: __construct
/**
* Set up the attachment.
*/
public function __construct()
{
parent::__construct('Attachment');
$this->PrimaryKey = 'AttachmentID';
}
示例11: __construct
/**
* Class constructor. Defines the related database table name.
*/
public function __construct()
{
parent::__construct('Invitation');
}
示例12: __construct
/**
* @param string $Name
*/
public function __construct($Name = '')
{
parent::__construct('Tag');
$this->StringTags = c('Plugins.Tagging.StringTags');
}
示例13: __construct
public function __construct()
{
parent::__construct('Page');
$this->Validation->AddRule('UrlPath', 'function:ValidateUrlPath');
}
示例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']);
}
示例15: __construct
public function __construct($ImportPath = '')
{
$this->ImportPath = $ImportPath;
parent::__construct();
}