KoolReport v1.15.4
May 25, 2017Let party again! We have released KoolReport version 1.15.4 with several important updates including resource managements, event handling mechanism.
The big added feature in this version is the report resource management. In the previous version of KoolReport, each widget renders its own resources including css and js. This was great however it causes a problem of duplication. For example, a report has two google charts, it happens that google chart loader will be called twice. That is a big waste. It leads us to the solution of having a manager in between to manage all resources. ResourceManager
class has been created and each report will have this manager. To get it, we will call $report->getResourceManager()
. The ResourceManager
has some important functionalities:
- Register a script file to the view at begin or at end.
- Add a custom js script to run at begin or at end.
- Register a css file
- Add custom css style to page
- Detect and eliminate the duplication of resource.
The second improvement is the event handling mechanism. There are two new methods added to KoolReport
class: registerEvent()
and fireEvent()
. When something happens, KoolReport or its components (datasource,process or widget) can fire an event. For example, when KoolReport start to run, it will fire event OnBeforeRun
. The event can be registered to be listened. For example an component can register event OnBeforeRun
of KoolReport to take extra preparation actions for itself. This event handling mechanism is very important for KoolReport and its components to work together.
Alright, there are many small other enhancements but two above are the biggest ones. Ultimately, we want KoolReport to be the best reporting framework in the world. It may sound crazy but no one taxes your dream. If we have to think anyway, why not think big. We may fail to land on the star, we will be somewhere near the moon.
All the best.
P/S: Follow us on our twitter to get latest news, join discussion on our forum. If you know someone who need to make report, tell them about KoolReport. They will love you, we guarantee.
<3 koolreport team.