Oihana PHP System

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
author

Marc Alcaraz (eKameleon)

since
1.4.0

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 propertyID to 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 propertyID to look for.

Return values
bool

isDeliveryNoteRecipient()

Whether this person receives the delivery notes.

public isDeliveryNoteRecipient() : bool
Return values
bool

isDocumentRecipient()

Whether this person receives **every** document — the catch-all recipient.

public isDocumentRecipient() : bool
Return values
bool

isInvoiceRecipient()

Whether this person receives the invoices.

public isInvoiceRecipient() : bool
Return values
bool

isOrderRecipient()

Whether this person receives the purchase orders.

public isOrderRecipient() : bool
Return values
bool

isQuoteRecipient()

Whether this person receives the quotes.

public isQuoteRecipient() : bool
Return values
bool

showsApplications()

Whether the applications are shown to this person.

public showsApplications() : bool
Return values
bool
On this page

Search results