Action

class OC\Notification\Action
Source:lib/private/Notification/Action.php#30
Implements:OCP\Notification\IAction

Properties

protected static property OC\Notification\Action::$label
Source:lib/private/Notification/Action.php#33
Type:string
protected static property OC\Notification\Action::$labelParsed
Source:lib/private/Notification/Action.php#36
Type:string
Source:lib/private/Notification/Action.php#39
Type:string
protected static property OC\Notification\Action::$requestType
Source:lib/private/Notification/Action.php#42
Type:string
protected static property OC\Notification\Action::$icon
Source:lib/private/Notification/Action.php#45
Type:string
protected static property OC\Notification\Action::$primary
Source:lib/private/Notification/Action.php#48
Type:bool

Methods

public OC\Notification\Action::__construct()
Source:lib/private/Notification/Action.php#50
public OC\Notification\Action::setLabel($label)
Source:

lib/private/Notification/Action.php#64

Parameters:
  • $label (string)
Returns:

$this

Throws:

\InvalidArgumentException if the label is invalid

Since:

8.2.0

public OC\Notification\Action::getLabel()
Source:lib/private/Notification/Action.php#76
Returns:string
Since:8.2.0
public OC\Notification\Action::setParsedLabel($label)
Source:

lib/private/Notification/Action.php#86

Parameters:
  • $label (string)
Returns:

$this

Throws:

\InvalidArgumentException if the label is invalid

Since:

8.2.0

public OC\Notification\Action::getParsedLabel()
Source:lib/private/Notification/Action.php#98
Returns:string
Since:8.2.0
public OC\Notification\Action::setPrimary($primary)
Source:

lib/private/Notification/Action.php#107

Parameters:
  • $primary bool
Returns:

$this

Since:

9.0.0

public OC\Notification\Action::isPrimary()
Source:lib/private/Notification/Action.php#116
Returns:bool
Since:9.0.0
Source:

lib/private/Notification/Action.php#127

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

$this

Throws:

\InvalidArgumentException if the link is invalid

Since:

8.2.0

Source:lib/private/Notification/Action.php#149
Returns:string
Since:8.2.0
public OC\Notification\Action::getRequestType()
Source:lib/private/Notification/Action.php#157
Returns:string
Since:8.2.0
public OC\Notification\Action::isValid()
Source:lib/private/Notification/Action.php#164
Returns:bool
public OC\Notification\Action::isValidParsed()
Source:lib/private/Notification/Action.php#171
Returns:bool