IAction

interface OCP\Notification\IAction
Interface IAction
Implemented by:OC\Notification\Action
Source:lib/public/Notification/IAction.php#33

Constants

TYPE_GET = GET
Source:lib/public/Notification/IAction.php#38
Since:17.0.0
TYPE_POST = POST
Source:lib/public/Notification/IAction.php#42
Since:17.0.0
TYPE_PUT = PUT
Source:lib/public/Notification/IAction.php#46
Since:17.0.0
TYPE_DELETE = DELETE
Source:lib/public/Notification/IAction.php#50
Since:17.0.0
TYPE_WEB = WEB
Source:lib/public/Notification/IAction.php#54
Since:17.0.0

Methods

public OCP\Notification\IAction::setLabel($label)
Source:

lib/public/Notification/IAction.php#62

Parameters:
  • $label (string)
Returns:

$this

Throws:

\InvalidArgumentException if the label is invalid

Since:

9.0.0

public OCP\Notification\IAction::getLabel()
Source:lib/public/Notification/IAction.php#68
Returns:string
Since:9.0.0
public OCP\Notification\IAction::setParsedLabel($label)
Source:

lib/public/Notification/IAction.php#76

Parameters:
  • $label (string)
Returns:

$this

Throws:

\InvalidArgumentException if the label is invalid

Since:

9.0.0

public OCP\Notification\IAction::getParsedLabel()
Source:lib/public/Notification/IAction.php#82
Returns:string
Since:9.0.0
public OCP\Notification\IAction::setPrimary($primary)
Source:

lib/public/Notification/IAction.php#90

Parameters:
  • $primary (bool)
Returns:

$this

Throws:

\InvalidArgumentException if $primary is invalid

Since:

9.0.0

public OCP\Notification\IAction::isPrimary()
Source:lib/public/Notification/IAction.php#96
Returns:bool
Since:9.0.0
Source:

lib/public/Notification/IAction.php#105

Parameters:
  • $link (string)
  • $requestType (string)
Returns:

$this

Throws:

\InvalidArgumentException if the link is invalid

Since:

9.0.0

Source:lib/public/Notification/IAction.php#111
Returns:string
Since:9.0.0
public OCP\Notification\IAction::getRequestType()
Source:lib/public/Notification/IAction.php#117
Returns:string
Since:9.0.0
public OCP\Notification\IAction::isValid()
Source:lib/public/Notification/IAction.php#123
Returns:bool
Since:9.0.0
public OCP\Notification\IAction::isValidParsed()
Source:lib/public/Notification/IAction.php#129
Returns:bool
Since:9.0.0