QuickMenuButton

Implements \ArrayAccess

Small class for buttons. Basically just an array wrapper with some default values.

Implements ArrayAccess so core code can use it as an array.

todo

Put this in core?

Methods

$options is an array of settings for the button

__construct($options) 

Arguments

$options

setOrder

setOrder($order) 

Arguments

$order

offsetExists

offsetExists($offset) 

Arguments

$offset

offsetGet

offsetGet(mixed $offset) : mixed

Arguments

$offset

mixed

Response

mixed

offsetSet

offsetSet($offset, $value) 

Arguments

$offset

$value

offsetUnset

offsetUnset($offset) 

Arguments

$offset

Properties

- href in anchor

href : string
var
  • href in anchor

Type(s)

string

- String in tooltip. Empty string means no tooltip

tooltip : string
var
  • String in tooltip. Empty string means no tooltip

Type(s)

string

- Class with glyphicon

iconClass : string
var
  • Class with glyphicon

Type(s)

string

- Button name

name : string
var
  • Button name

Type(s)

string

- Order sorting

order : int
var
  • Order sorting

Type(s)

int

- Whether or not to open link in new tab

openInNewTab : bool
var
  • Whether or not to open link in new tab

Type(s)

bool

- Whether or not to show button only when survey is active

showOnlyWhenSurveyIsActivated : bool
var
  • Whether or not to show button only when survey is active

Type(s)

bool

- Whether or not to show button only when survey is non-active

showOnlyWhenSurveyIsDeactivated : bool
var
  • Whether or not to show button only when survey is non-active

Type(s)

bool

- Tuple with permission category and right, e.g. array("survey", "read") Null means available for all.

neededPermission : \array<string>
var
  • Tuple with permission category and right, e.g. array("survey", "read") Null means available for all.

Type(s)

\array