Object-oriented design of mysql-php website module

Source: Internet
Author: User
Tags php website
Work needs to do a PHP module, the content of the various sections of the Forum to do statistics, and then data extraction. Each plate has some main topics or content to focus on. For example, the car section, will focus on safety, car maintenance knowledge, how to choose cars and so on. Then the car section of all the posts according to these concerns to classify, calculate points, statistics. Finally, some data are obtained for future data mining.
The problem is: There are many sections on the site, each plate Focus topic collection is not the same, the algorithm for each topic calculation is different, and the topic set will change with the time, such as the summer about air conditioning maintenance topic more, winter about hot car topic more.
In this way, we want to design an object-oriented dynamic module to achieve the statistical work of all the forums.
My current idea is: to design a plate calculation of the main class, which contains a topic collection class, a fractional calculation algorithm class, a fractional result class. In this way, for each section, we produce a plate to calculate the main class of objects, and then enter the specific data to calculate. The calculated results remain in the MySQL database.
Excuse me, how to design this in the middle, such as design module and corresponding interface what should be? We want to keep it as flexible as possible.

Reply content:

Work needs to do a PHP module, the content of the various sections of the Forum to do statistics, and then data extraction. Each plate has some main topics or content to focus on. For example, the car section, will focus on safety, car maintenance knowledge, how to choose cars and so on. Then the car section of all the posts according to these concerns to classify, calculate points, statistics. Finally, some data are obtained for future data mining.
The problem is: There are many sections on the site, each plate Focus topic collection is not the same, the algorithm for each topic calculation is different, and the topic set will change with the time, such as the summer about air conditioning maintenance topic more, winter about hot car topic more.
In this way, we want to design an object-oriented dynamic module to achieve the statistical work of all the forums.
My current idea is: to design a plate calculation of the main class, which contains a topic collection class, a fractional calculation algorithm class, a fractional result class. In this way, for each section, we produce a plate to calculate the main class of objects, and then enter the specific data to calculate. The calculated results remain in the MySQL database.
Excuse me, how to design this in the middle, such as design module and corresponding interface what should be? We want to keep it as flexible as possible.

  • 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.