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.