Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

getDelegatesOfType()


This method returnsan array of delegates.

Parameter(s):

NameTypeMandatoryDefault Value
typeStringY

N

Info

Possible values:

  • access
  • approvals
  • tasks
  • notifications


delegatorIdStringIntegerYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN


Returns:

TypeDescription
ArrayThis method returns an array of delegates.

Example:

Code Block
languagejs
themeEclipse
titlegetDelegatesOfType()
linenumberstrue
publiclet functionsimpleDelegation getDelegatesOfType(
=        string $type,
        int $delegatorId,
        SimpleDateTimeInterface $fromDateTime = null,
        SimpleDateTimeInterface $toDateTime = null
    ): arraynew SimpleDelegation();
let result = simpleDelegation.getDelegatesOfType('approvals', '166116760014825307');
setResult(result);

getDelegatorsOfType()


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

Parameter(s):

NameTypeMandatoryDefault Value
typeStringY

N

Info

Possible values:

  • access
  • approvals
  • tasks
  • notifications


delegateIdStringIntegerYN
fromDateTimeSimpleDateTime objectNN
toDateTimeSimpleDateTime objectNN

Returns:

TypeDescription
ArrayThis method returns an array of delegates.

Example:

Code Block
languagejs
themeEclipse
titlegetDelegatorsOfType()
linenumberstrue
publiclet functionsimpleDelegation getDelegatorsOfType(
=        string $type,
        int $delegateId,
        SimpleDateTimeInterface $fromDateTime = null,
        SimpleDateTimeInterface $toDateTime = null
    ): arraynew SimpleDelegation();
let result = simpleDelegation.getDelegatorsOfType('tasks', '166116760014825307');
setResult(result);

hasDelegationOfType()


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

Parameter(s):

NameTypeMandatoryDefault Value
typeStringY

N

Info

Possible values:

  • access
  • approvals
  • tasks
  • notifications


delegateIdStringIntegerYN
delegatorIdStringIntegerYN
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:

Code Block
languagejs
themeEclipse
titlehasDelegationOfType()
linenumberstrue
publiclet functionsimpleDelegation hasDelegationOfType(
=        string $type,
        array $delegatorIds,
        int $delegateId,
        SimpleDateTimeInterface $fromDateTime = null,
        SimpleDateTimeInterface $toDateTime = null
    ): bool;new SimpleDelegation();
let result = simpleDelegation.hasDelegationOfType('access', '166116760014825307', '165951644312968191');
setResult(result);


Table of Contents
absoluteUrltrue
classfixedPosition
printablefalse