Collection

class Collection

Package: Record

A collection and its metadata.

property public
property featured
property added
property modified
property owner_id
getProperty(string $property)

Get a property about this collection.

Parameters:
  • $property (string) – The property to get, always lowercase.
Returns:

mixed The value of the property

totalItems()

Determine the total number of items associated with this collection.

Returns:integer
setAddedBy(User $user)

Set the user who added the collection.

Note that this is not to be confused with the collection’s “contributors”.

Parameters:
getResourceId()

Required by Zend_Acl_Resource_Interface.

Identifies Collection records as relating to the Collections ACLresource.

Returns:string
hasContributor()

Returns whether or not the collection has at least 1 contributor element text

Returns:boolean
_initializeMixins()

Initialize the mixins

filterPostData(array $post)

Filter the POST data from the form.

Converts public/featured flags to booleans.

Parameters:
  • $post (array) –
Returns:

array

_delete()

All of the custom code for deleting an collection.

Returns:void
beforeSave($args)
Parameters:
  • $args (unknown) –
afterSave()