yui/yui3 — pull request #45 by ghinch (2011-11-06 02:16:33+00:00)
Title: Add a Model getSchema class method

This adds a "getSchema" class method to Model which allows you to get a list of all attributes the Model class has, including those from parent classes. This can be useful when constructing related class instances which use a list of data keys, such as resultFields in a DataSchema or a columnset in a DataTable, as there are often times when these lists match and would require duplication of code. Note that Y.Base._buildCfg.aggregates is also modified so that the class method will persist to classes which inherit from Model.