This api provides a very simple and convenient way to create trimmed objects of a class by creating curtailed concise classes of original class based upon the requirement.
To know more about theoretical concept, visit cc classes & objects theory page.
Login to download sample code
Using this api you can generate class files which will only contain functions that are relevant to a specific functionality that is being server on a particular page / view.
You can generate more than one such files of one class for use on diff pages or views, and make sure you don't use more than one generated class file of same class on same page (i.e. generate and use only one class file per class, which will contain only necessary functions of that class that are required for that page or view).
If want to use with any framework, make sure to integrate it into framework's class loading & object creation mechanism.
To apply it on core classes of framework you can define array containing all functions from a class that are being called on various scenarios (pages or combination of functions required together at once) and use that info to call this api to generate curtailed concise classes that can be loaded and used depending on scenarios (pages or combination of functions required together at once) required.
You can even store info, like curtailed concise classes are to be generated for which classes and which functions are required in that class in some file instead of directly calling the api while serving the webpage request and call it in background or via ajax.
Note: If you have integrated this api in your project to create curtailed concise classses automatically based on file update time (as demonstrated in sample) then also if possible avoid to make use of api or call the api in live mode of your application as whenever api call will be made at that time that webpage request will be served very slowly as calling api takes time (calling in background can be solution to this) but there is also possibility of api being called more than once for same functions of same class if this is not handled properly.
There are few minor limitations of the functionality of api which can be taken care as per mentioned in detail below.
* Limitation: Note on limitations and req. care to be taken for it while using the api (click here to view api usage limitations)