redrocketcms.classes.Content
This is a helper class for loading in external xml data. The entire RRC framework is essentially built on parsing xml data, and this is the class that handles it.
This class is great for when you want to access the data of a particular content bucket outside of the traditional approach.
This class is entirely static.
Read/Write. This setting tells the Content class how to handle caching. By default, caching is turned on.
Things to keep in mind:
Caching can greatly increase the rendering speed of the site. Since the content is held in memory, it will be recalled instantly, without waiting for a response from the server. If you are dealing with search functions or Aggregates, this speed increase might be dramatic.
The down-side to enabling caching is that it dosent actually make any calls to the server to retireve the same data file. This means that the server will not be able to track the "hit" and, hence, caching may skew server statistics, albiet, probably minor.
The load method takes 3 parameters, all are required.
param src:String
the url of the xml to load
param obj:Object
the object that will recieve the data
param method:String
the method to call on the object. the xml object data will come in as the first parameter
example: