Class constructor. Defines the related database table name.
public __construct ( string $Name = '' ) | ||
$Name | string | An optional parameter that allows you to explicitly define the name of the table that this model represents. You can also explicitly set this value with $this->Name. |
/** * 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(); }
/** * 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')); } }
/** * 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'); } }
public function __construct() { parent::__construct('UserAuthenticationProvider'); }
/** * 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()); }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('ConversationMessage'); $this->PrimaryKey = 'MessageID'; }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('Category'); $this->collection = $this->createCollection(); }
/** * Defines the related database table name. */ public function __construct() { parent::__construct('BadgeAward'); }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('Conversation'); }
/** * Set up the attachment. */ public function __construct() { parent::__construct('Attachment'); $this->PrimaryKey = 'AttachmentID'; }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('Invitation'); }
public function __construct() { parent::__construct('Chunk'); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('DiscussionPolls'); }
/** * @param string $Name */ public function __construct($Name = '') { parent::__construct('Tag'); $this->StringTags = c('Plugins.Tagging.StringTags'); }
public function __construct() { parent::__construct('Kudos'); }
public function __construct() { parent::__construct('Page'); $this->Validation->AddRule('UrlPath', 'function:ValidateUrlPath'); }
/** * Defines the related database table name. */ public function __construct() { parent::__construct('Ban'); }
/** * 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']); }
/** * Defines the related database table name. */ public function __construct() { parent::__construct('Activity'); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('Regarding'); }
public function __construct($ImportPath = '') { $this->ImportPath = $ImportPath; parent::__construct(); }
/** * Defines the related database table name. */ public function __construct() { parent::__construct('Activity'); $this->setPruneAfter('-2 months'); }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public * * @param string $Name Database table name. */ public function __construct($Name = '') { parent::__construct($Name); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('Role'); $this->fireEvent('Init'); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('User'); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('Permission'); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('Message'); }
/** * */ public function __construct() { parent::__construct('UserAuthenticationProvider'); $this->PrimaryKey = self::COLUMN_KEY; }
/** * Class constructor. Defines the related database table name. * * @since 2.0.0 * @access public */ public function __construct() { parent::__construct('Category'); }
/** * Class constructor. Defines the related database table name. */ public function __construct() { parent::__construct('Role'); }