O'Reilly logo

Enterprise Curl by Paul Sheehan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

StockByMake

The StockByMake class inherits from COM.ENT-CURL.XML.BusinessObject, which provides ancestor functionality to get and set attributes created during the XML parsing process. For the XML data to be used by the pie chart reporting process, this class provides methods to transform the data into a number of arrays, as discussed below.

get-name-array

The {get-name-array} method creates and returns an array that contains the names of the top-selling manufacturers in the VMS Motors database. The code required is shown in Figure 16-8.

Figure 16-8. StockByMake.get-name-array method listing.
 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| || File: StockByMake.scurl || Author: Paul Sheehan || Version: 1.0 || Contents: This class ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required