Discuznt entity project (entity) Analysis

Source: Internet
Author: User

Statement: The content of this article is purely a personal opinion, and the official retained the final explanation

Based on the data dictionary currently officially provided (for details, see the link ). We can see the data structure in the database: including the table name, field name,
Field Type and meaning. These documents give you a basic understanding of the entire data table structure. In addition, I think that if
Use an articleArticleExplain the database, how many people are there?Word collectionSuspect. Fortunately, the discuz. entity. dll project is unavailable.
I have some introduction, so I want to take this dll as the main line, "Yarun grass and Rabbit". By the way, I will briefly introduce the database.

Because our entity classesCodeData Table-oriented (most entity classes correspond to database tables ). For example:
Foruminfo (forum), topicinfo (topic), postinfo (post), attachmentinfo (Attachment), and so on. And they
The relationship between them is as follows:

Another important object Association is: userinfo (user), usergroupinfo (user group), moderatorinfo
(Moderator), foruminfo (forum), such:

After learning about the above two "main lines", we should be clear about the flesh and blood of a Forum database, and how they coordinate the work (logical execution
Line), which is what discuz. Forum. dll, discuz. Space. dll is about to do. However, this article is not in urgent need of such content,
Here, I want to sell a token first :)

The following is a question about permissions:

Users can log on to the user group, moderator list, and founder to obtain permissions. Then you can use the corresponding permissions
Corresponding management operations. As a very important core, "User Group Management" has many articles to do.

For example, the current classification of a user group is as follows:

System Group: Corresponds to the user group whose system field is 1 in the dnt_usergroups table. These user groups are initialized by the system.
Created at, cannot be deleted in the background, can only be edited.

Point User Group: Provides point settings and various control functions for normal users to access the forum.

Management Group: Used to bind front-end management and control permissions. Such as moderators and super moderators. The Management Group also
A table named dnt_admingroups should be created. You should specify the permissions for some management operations.

Special user group: Used to customize users with special permissions (a bit like a green channel ).

 

Whether the data in the user group table is redundant data (such as the radminid field in the dnt_usergroups table) or
Complex user group types are bound to enhance the flexible setting and efficient operation of Management permissions.



In addition, there are some other info classes in discuz. entity. dll, such as space, album, and global folders.
.

Compared with the permission setting of the forum, the permission setting of the space is much simpler. Basically similar to cnblogs, that is, individuals have their own
Platform for "high" autonomy. The administrator can also activate, disable, review, and recommend aggregation pages.

Let's talk about it. I believe you have a general understanding of these things. If you are interested, you can find out the source code.
To find out more interesting things.

Due to the fact that there is not enough time for writing, some questions may not be clearly stated. Please contact me.

My email: daizhj@discuz.com, daizhj617595@126.com, daizhj@gmail.com

Author: daizhj, Dai zhenjun

Keywords: discuznt, discuz, entity, Entity


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.