------------ Builder_Item ------------ Package: :doc:`Record\\Builder ` .. php:class:: Builder_Item extends :php:class:`Omeka_Record_Builder_AbstractBuilder` Build an item. .. php:const:: IS_PUBLIC .. php:attr:: _recordClass protected .. php:attr:: _settableProperties protected .. php:method:: setElementTexts($elementTexts) Set the element texts for the item. :type $elementTexts: array :param $elementTexts: .. php:method:: setFileMetadata($fileMetadata) Set the file metadata for the item. :type $fileMetadata: array :param $fileMetadata: .. php:method:: setRecordMetadata($metadata) Overrides setRecordMetadata() to allow setting the item type by name instead of ID. :type $metadata: array :param $metadata: .. php:method:: _addElementTexts() Add element texts to a record. .. php:method:: _replaceElementTexts() Replace all the element texts for existing element texts. .. php:method:: _addTags() Add tags to an item (must exist in database). .. php:method:: addFiles($transferStrategy, $files, $options = array()) Add files to an item.
  • 'Url|Filesystem' => string|array If a string is given, this represents the source identifier of a single file (the URL representing the file, or the absolute file path, respectively). If an array is given, it assumes that each entry in the array must be either an array or a string. If it an array, there are several default keys that may be present:
  • :type $transferStrategy: string|Omeka_File_Ingest_AbstractIngest :param $transferStrategy: This can either be one of the following strings denoting built-in transfer methods: 'Upload', 'Filesystem', 'Url' Or it could be an implemented Omeka_File_Ingest_AbstractIngest class. :type $files: string|array :param $files: This can be a single string, an array of strings, or an array of arrays, depending on the parameters that are needed by the underlying strategy. Expected parameters for the built in strategies are as follows: