Phraseanet PHP SDK API
Class

PhraseanetSDK\Entity\BasketElement

class BasketElement extends AbstractEntity

Methods

__construct(EntityManager $em)

from AbstractEntity
integer getBasketElementId()

The id of the element

setBasketElementId($basketElementId)

integer getOrder()

Position of the element in the basket

setOrder($order)

Boolean isValidationItem()

Tell whether the basket item is a validation item

setValidationItem($validationItem)

Record getRecord()

Get the record associated to the basket item

setRecord(Record $record)

ArrayCollection getValidationChoices()

Retrieve the choice of all participants that concern the basket element in a collection PhraseanetSDK\Entity\BasketValidationChoice object

setValidationChoices(ArrayCollection $validationChoices)

string getNote()

Get the annotation about the validation of the current authenticated user

setNote($note)

null|boolean getAgreement()

Get the agreement of the current authenticated user

setAgreement($agreement)

Details

in AbstractEntity at line 21
final public __construct(EntityManager $em)

Parameters

EntityManager $em

at line 31
public integer getBasketElementId()

The id of the element

Return Value

integer

at line 36
public setBasketElementId($basketElementId)

Parameters

$basketElementId

at line 46
public integer getOrder()

Position of the element in the basket

Return Value

integer

at line 51
public setOrder($order)

Parameters

$order

at line 61
public Boolean isValidationItem()

Tell whether the basket item is a validation item

Return Value

Boolean

at line 66
public setValidationItem($validationItem)

Parameters

$validationItem

at line 76
public Record getRecord()

Get the record associated to the basket item

Return Value

Record

at line 85
public setRecord(Record $record)

Parameters

Record $record

at line 96
public ArrayCollection getValidationChoices()

Retrieve the choice of all participants that concern the basket element in a collection PhraseanetSDK\Entity\BasketValidationChoice object

Return Value

ArrayCollection

at line 101
public setValidationChoices(ArrayCollection $validationChoices)

Parameters

ArrayCollection $validationChoices

at line 111
public string getNote()

Get the annotation about the validation of the current authenticated user

Return Value

string

at line 116
public setNote($note)

Parameters

$note

at line 130
public null|boolean getAgreement()

Get the agreement of the current authenticated user

- null : no response yet
- true : accepted
- false: rejected

Return Value

null|boolean

at line 135
public setAgreement($agreement)

Parameters

$agreement