CommentModel::__construct PHP Метод

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

Class constructor. Defines the related database table name.
С версии: 2.0.0
public __construct ( )
    public function __construct()
    {
        parent::__construct('Comment');
        $this->pageCache = Gdn::cache()->activeEnabled() && c('Properties.CommentModel.pageCache', false);
        $this->fireEvent('AfterConstruct');
    }

Usage Example

Пример #1
0
 function __construct($id = 0)
 {
     parent::__construct('bookmarks_comments', 'bookmark_id', $id);
 }
All Usage Examples Of CommentModel::__construct