Omeka_Record_Mixin_AbstractMixin

class Omeka_Record_Mixin_AbstractMixin

Package: Record\Mixin

Represents a kind of mixin for Omeka_Record_AbstractRecord implementations.

Any methods declared for an implementation of this class can be calledtransparently by an Omeka_Record_AbstractRecord object that uses one of thesemodules.

For instance, the Item model does not have an addTags() method, but theTaggable class does. Since Item declares Taggable as one of its modules,an Item instance call all of Taggable’s methods, so that adding tags would beas simple as calling $item->addTags(‘foo, bar’);

Note that this is not a true mixin because it cannot override any existingmethods on a Record object.

property _record

Underlying record object.

__construct(Omeka_Record_AbstractRecord $record)

Base mixin constructor.

Store the underlying record for use in the mixin.

Parameters:
beforeSave($args)

Callback automatically called by Omeka_Record_AbstractRecord.

See the corresponding {@link Omeka_Record_AbstractRecord} method fordefinitions of call times.

Parameters:
  • $args (unknown) –
Returns:

void

afterSave($args)
Parameters:
  • $args (unknown) –
beforeDelete()
afterDelete()