__construct() публичный Метод

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.
Пример #1
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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');
 }
Пример #5
0
 /**
  * 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';
 }
Пример #7
0
 /**
  * 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');
 }
Пример #9
0
 /**
  * Class constructor. Defines the related database table name.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct('Conversation');
 }
Пример #10
0
 /**
  * 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');
 }
Пример #12
0
 public function __construct()
 {
     parent::__construct('Chunk');
 }
 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('DiscussionPolls');
 }
Пример #14
0
 /**
  * @param string $Name
  */
 public function __construct($Name = '')
 {
     parent::__construct('Tag');
     $this->StringTags = c('Plugins.Tagging.StringTags');
 }
Пример #15
0
 public function __construct()
 {
     parent::__construct('Kudos');
 }
Пример #16
0
 public function __construct()
 {
     parent::__construct('Page');
     $this->Validation->AddRule('UrlPath', 'function:ValidateUrlPath');
 }
Пример #17
0
 /**
  * Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Ban');
 }
Пример #18
0
 /**
  * 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']);
 }
Пример #19
0
 /**
  * Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Activity');
 }
Пример #20
0
 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Regarding');
 }
Пример #21
0
 public function __construct($ImportPath = '')
 {
     $this->ImportPath = $ImportPath;
     parent::__construct();
 }
Пример #22
0
 /**
  * Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Activity');
     $this->setPruneAfter('-2 months');
 }
Пример #23
0
 /**
  * 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);
 }
Пример #24
0
 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Role');
     $this->fireEvent('Init');
 }
Пример #25
0
 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('User');
 }
Пример #26
0
 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Permission');
 }
Пример #27
0
 /**
  * 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;
 }
Пример #29
0
 /**
  * Class constructor. Defines the related database table name.
  * 
  * @since 2.0.0
  * @access public
  */
 public function __construct()
 {
     parent::__construct('Category');
 }
Пример #30
0
 /**
  * Class constructor. Defines the related database table name.
  */
 public function __construct()
 {
     parent::__construct('Role');
 }