EmployeeFlagsTrait uses trait:short
Answers, on a person, which documents they are meant to receive.
A customer's staff carries these answers as additional properties — one of them is the person the quotes go to, another receives everything. Asking the question out loud beats reading a list of properties at every call site.
Tags
Table of Contents
Methods
- getAdditionalPropertyValue() : mixed
- The value stored under the given property id, or null when absent.
- hasAdditionalPropertyFlag() : bool
- Whether the given property id is stored as a true flag.
- isDeliveryNoteRecipient() : bool
- Whether this person receives the delivery notes.
- isDocumentRecipient() : bool
- Whether this person receives **every** document — the catch-all recipient.
- isInvoiceRecipient() : bool
- Whether this person receives the invoices.
- isOrderRecipient() : bool
- Whether this person receives the purchase orders.
- isQuoteRecipient() : bool
- Whether this person receives the quotes.
- showsApplications() : bool
- Whether the applications are shown to this person.
Methods
getAdditionalPropertyValue()
The value stored under the given property id, or null when absent.
public
getAdditionalPropertyValue(string $propertyID) : mixed
Parameters
- $propertyID : string
-
The
propertyIDto look for.
Return values
mixed —The stored value, or null when the thing carries no such entry.
hasAdditionalPropertyFlag()
Whether the given property id is stored as a true flag.
public
hasAdditionalPropertyFlag(string $propertyID) : bool
Tolerant on purpose: the value may come back as a real boolean, as the
string "1", or as the number 1, depending on how the thing was built.
An absent entry is false — nothing was claimed.
Parameters
- $propertyID : string
-
The
propertyIDto look for.
Return values
boolisDeliveryNoteRecipient()
Whether this person receives the delivery notes.
public
isDeliveryNoteRecipient() : bool
Return values
boolisDocumentRecipient()
Whether this person receives **every** document — the catch-all recipient.
public
isDocumentRecipient() : bool
Return values
boolisInvoiceRecipient()
Whether this person receives the invoices.
public
isInvoiceRecipient() : bool
Return values
boolisOrderRecipient()
Whether this person receives the purchase orders.
public
isOrderRecipient() : bool
Return values
boolisQuoteRecipient()
Whether this person receives the quotes.
public
isQuoteRecipient() : bool
Return values
boolshowsApplications()
Whether the applications are shown to this person.
public
showsApplications() : bool