You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

This server class provides methods that allow you to interact with delegation records.

getDelegatesOfType()


This method returns an array of delegates.

Parameter(s):

NameTypeMandatoryDefault Value
typeStringYN
delegatorIdStringYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

Returns:

TypeDescription
ArrayThis method returns an array of delegates.

Example:

getDelegatesOfType()
public function getDelegatesOfType(
        string $type,
        int $delegatorId,
        SimpleDateTimeInterface $fromDateTime = null,
        SimpleDateTimeInterface $toDateTime = null
    ): array;

getDelegatorsOfType()


This method returns an array of the employees who delegated authority.

Parameter(s):

NameTypeMandatoryDefault Value
typeStringYN
delegateIdStringYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

Returns:

TypeDescription
ArrayThis method returns an array of delegates.

Example:

getDelegatorsOfType()
public function getDelegatorsOfType(
        string $type,
        int $delegateId,
        SimpleDateTimeInterface $fromDateTime = null,
        SimpleDateTimeInterface $toDateTime = null
    ): array;

hasDelegationOfType()


This method returns true if there is a specific delegation record. 

Parameter(s):

NameTypeMandatoryDefault Value
typeStringYN
delegateIdStringYN
delegatorIdStringYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

Returns:

TypeDescription
BooleanThis method returns true if the delegation record with the specified value of the parameters exists. Otherwise, it returns false.

Example:

hasDelegationOfType()
public function hasDelegationOfType(
        string $type,
        array $delegatorIds,
        int $delegateId,
        SimpleDateTimeInterface $fromDateTime = null,
        SimpleDateTimeInterface $toDateTime = null
    ): bool;


  • No labels