The ezmultioption2 objects can be used to store information about the following:
For example, let's say the site administrator creates the following multi-level structure with two groups of multi-options called "Exterior" and "Interior":
Exterior - Body: Sedan, Combi, Hatchback - Color: Black, Red -- Bumpers: Same as body, Non-painted -- Mirrors: Silver, Same as body, Non-painted Interior - Seats: Make your choice, Cloth, Leather
In this case, the system will create "ezmultioption2" objects that store information about top level groups ("Exterior" and "Interior"), their parent group (virtual root group), plus an unnamed subgroup that contains the "Bumpers" and "Mirrors" multi-options.
The following table reveals the structure of "ezmultioption2" objects.
Attribute | Type | Static* | Description |
|||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string |
Yes. |
The name of the group (for example "Exterior") if the object represents a top level group of multi-options; otherwise an empty string will be returned (subgroups and root groups are unnamed). |
|||||||||||||||||||||||||||||||||||||||||||||
id |
integer |
Yes. |
Not in use. |
|||||||||||||||||||||||||||||||||||||||||||||
group_id |
integer |
Yes. |
The ID number of the group/subgroup (for example 2). 0 means that the object represents a root group. |
|||||||||||||||||||||||||||||||||||||||||||||
rules |
array |
Yes. |
The dependency rules for nested multi-options as an array of arrays if the object represents a root group; otherwise an empty array will be returned. |
|||||||||||||||||||||||||||||||||||||||||||||
multioption_list |
array |
Yes. |
The multi-options that belong to the group/subgroup as an array of hashes. (If the object represents a root group, an empty array will be returned.) Each hash describes a multi-option located at the first level in the group/subgroup. The hash-structure consists of the following elements:
|
|||||||||||||||||||||||||||||||||||||||||||||
optiongroup_list |
array |
Yes. |
The top level groups (as ezmultioption2 objects) if the object represents a root group; otherwise an empty array will be returned. |