Box Social ‹ Development ‹ Architecture ‹ Item
The item is the most basic, atomic kind of content that is employed by the Box Social framework. All content saved to the database inherits the base class Item.
Item assumes very little about the content that wants to be saved to the database, other than that it is suitable for storing in a database.
Most content types use by Box Social inherit the NumberedItem class. This adds the assumption that the content has a unique id number over the Item base class.
Attributes are used to inform Box Social of the database mappings of the class, and class properties. They are also used to inform Box Social of relationships between fields of one class, and items of another class. In addition to this they are also used to inform Box Social of any constraints of the data. Constraints include unique, indexed, and string length. The type is automatically discovered by Box Social.
Box Social automatically creates, updates, and populates the database when an application is installed or updated.
Last Modified: March 02, 2011 with 1 page views.
This page is licensed under the following license: GNU Free Document License