- class Item¶
An item and its metadata.
- property item_type_id¶
- property collection_id¶
- property featured¶
- property public¶
- property added¶
- property modified¶
- property owner_id¶
- property _files¶
Retrieve the ItemType record associated with this Item.
Retrieve the set of File records associated with this Item.
Retrieve a set of elements associated with the item type of the item.
Each one of the Element records that is retrieved should contain all theelement text values associated with it.
Returns: array Element records that are associated with the item type of the item. This array will be empty if the item does not have an associated type.
- getProperty(string $property)¶
Get a property for display.
- $property (string) –
- $args (unknown) –
Logic for after the record has been saved.
- $args (unknown) –
All of the custom code for deleting an item.
- _deleteFiles(array $fileIds = Array)¶
Delete files associated with the item.
If the IDs of specific files are passed in, this will delete only thosefiles (e.g. form submission). Otherwise, it will delete all filesassociated with the item.
- $fileIds (array) – Optional
Iterate through the $_FILES array for files that have been uploaded to Omeka and attach each of those files to this Item.
Save all the files that have been associated with this item.
Filter post data from form submissions.
- $post (unknown) –
array Clean post data
Retrieve the number of files assigned to this item.
Retrieve the previous Item in the database.
Retrieve the next Item in the database.
Determine whether or not the Item has a File with a thumbnail image (or any derivative image).
Return a valid citation for this item.
Generally follows Chicago Manual of Style note format for webpages.Implementers can use the item_citation filter to return a customizedcitation.
- addFile(File $file)¶
Associate an unsaved (new) File record with this Item.
These File records will not be persisted in the database until the itemis saved or saveFiles() is invoked.
- $file (File) –
Required by Zend_Acl_Resource_Interface.
Identifies Item records as relating to the Items ACL resource.