By: Jose Leon
Abstract: Creating a VCL for PHP Charting component. This article is a reproduction of the blog post by Jose Leon, developer of Delphi for PHP.
VCL for PHP Charting components - Planning
This article is not about coding, but about planning how to write a wrapper for an existing library. The very first step is to know how the library works, you don’t need to become a master on it, but you will need some key points and, usually, the samples provided by the library are enough for this.
The planning stage it’s a very important (if not the most important) step in the process, because here is where we determine the scope of the project and which steps are required to get it done.
So the first thing we need to do is to make a list of the features the library provides, paying special attention to the things that are customizable, that is, the user will be able to change to use the component.
That list is easily extracted from samples and/or documentation,you can find here:
And here is the basic list:
Also, we need to find/write a basic "hello-world-like" sample project, so we get the minimum code to make the library work, here is ours:
Basically, this library is a flash object that request the data to generate the chart to a script, and the library provides a PHP API to generate all that information.
With all this, we are ready to write a task list:
So, right now, we have clear what we need to do in order to wrap this library to provide a common interface and to integrate this library into the IDE. On the next article we will see how to transform all this to code.
Click here to download a free 30-day trial of HTML5 Builder >
More social media choices:
HTML5 Builder on Google+
@RADADtools on Twitter
Server Response from: ETNASC03