PHP Class Newscoop\Entity\Repository\AttachmentRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
getAttachment ( integer $number ) : Doctrine\ORM\Query Get single attachment by id
getAttachments ( ) : Doctrine\ORM\Query Get all attachments
getDescription ( integer $attachmentId ) : Translation Get attachment decritpion

Method Details

getAttachment() public method

Get single attachment by id
public getAttachment ( integer $number ) : Doctrine\ORM\Query
$number integer
return Doctrine\ORM\Query

getAttachments() public method

Get all attachments
public getAttachments ( ) : Doctrine\ORM\Query
return Doctrine\ORM\Query

getDescription() public method

Get attachment decritpion
public getDescription ( integer $attachmentId ) : Translation
$attachmentId integer
return Newscoop\Entity\Translation