Package: Record
An item type and its metadata.
Returns an array of element objects associated with this item type.
Returns: | array The array of element objects associated with this item type. |
---|
Returns an array of item objects that have this item type.
Parameters: |
|
---|---|
Returns: | array The items associated with the item type. |
Current validation rules for Type
Returns: | void |
---|
Filter incoming POST data from ItemType form.
Parameters: |
|
---|---|
Returns: | void |
Delete all the ItemTypesElements joins
Returns: | void |
---|
Save Element records that are associated with this Item Type.
Parameters: |
|
---|---|
Returns: | void |
This extracts the ordering for the elements from the form’s POST, then uses the given ordering to reorder each join record from item_types_elements into a new ordering, which is then saved.
Parameters: |
|
---|---|
Returns: | void |
Add a set of elements to the Item Type.
Parameters: |
|
---|---|
Returns: | void |
Adds a new element to the item type by the id of the element
Parameters: |
|
---|---|
Returns: | void |
Removes an array of Elements from this item type The element will not be removed until the object is saved.
Parameters: |
|
---|---|
Returns: | void |
Remove a single Element from this item type. The element will not be removed until the object is saved.
Parameters: |
|
---|---|
Returns: | void |
Removes a single Element from this item type. It removes it immediately.
Parameters: |
|
---|---|
Returns: | void |
Determines whether a saved version of the item type has an element. It does not correctly determine the presence of elements that were added or removed without saving the item type object.
Parameters: |
|
---|---|
Returns: | boolean |
Determines the total number of items that have this item type.
Returns: | int The total number of items that have this item type. |
---|
Returns the ‘Item Type’ element set.
Returns: | ElementSet |
---|