Package: Record\Builder
Build or update an {@link Omeka_Record_AbstractRecord} as needed.
Class of record that the builder will create.
String names denoting the properties of a specific record that can be set directly through the builder. This will not always be all of the fields for the record.
Parsed metadata options for the builder.
Record being built or updated.
Build the actual record. If the record already exists, update it as necessary.
Returns: | Omeka_Record_AbstractRecord |
---|
Set basic metadata for the record.
Note that the columns to be set must be specified in the $_settablePropertiesproperty of subclassed Builders.
Parameters: |
|
---|---|
Returns: | void |
Get the metadata that will be saved to the record.
Returns: | array |
---|
Get the record that is being acted upon by the builder.
When an Omeka_Record_AbstractRecord instance has been provided viasetRecord(), that will be returned. If a record ID has been provided,then the appropriate record will be returned.
Otherwise, a new instance of Omeka_Record_AbstractRecord will be returned.
Returns: | Omeka_Record_AbstractRecord |
---|
Set the record upon which this builder will act.
Parameters: |
|
---|---|
Returns: | void |
All necessary tasks to take place before the record is inserted.
Exceptions may be thrown, validation errors may be added.
Parameters: |
|
---|---|
Returns: | void |
All necessary tasks that take place after the record has been inserted into the database.
Should not throw exceptions in this method.
Parameters: |
|
---|---|
Returns: | void |
Set the properties for the record, taking care to filter based on the $_settableProperties array.
Parameters: |
|
---|---|
Returns: | void |