Stud.IP
6.0
|
Public Member Functions | |
__construct ($label, $attributes) | |
Static Public Member Functions | |
static | __callStatic ($name, $args) |
static | create ($label=NULL, $trait=NULL, $attributes=[]) |
static | createAccept ($label=NULL, $trait=NULL, $attributes=[]) |
static | createEdit ($label=NULL, $trait=NULL, $attributes=[]) |
static | createCancel ($label=NULL, $trait=NULL, $attributes=[]) |
Data Fields | |
$label | |
$attributes | |
Protected Member Functions | |
initialize ($label, $trait, $attributes) | |
Represents an abstract interactable element.
|
final |
Constructs a new element to interact e.g. button or link
string | $label | the label of the button |
array | $attributes | the attributes of the button element |
|
static |
Magic method (triggered when invoking inaccessible methods in a static context) used to dynamically create an interactable element with an additional CSSclass. This works for every static method call matching: /^create(.+)/ The matched group is used as CSS class for the interactable element.
string | $name | name of the method being called |
array | $args | enumerated array containing the parameters passed to the $name'ed method |
throws | a BadMethodCallException if $name does not match |
|
static |
Easy factory method to create an Interactable instance. All parameters are optional.
string | $label | the label of the current element |
string | $trait | the specific trait of the current element |
array | $attributes | the attributes of the button element |
|
static |
Convenience method used for autocompletion hints by your editor.
Without this method __callStatic would do the same.
string | $label | the label of the current element |
string | $trait | the specific trait of the current element |
array | $attributes | the attributes of the button element |
|
static |
Convenience method used for autocompletion hints by your editor.
Without this method __callStatic would do the same.
string | $label | the label of the current element |
string | $trait | the specific trait of the current element |
array | $attributes | the attributes of the button element |
|
static |
Convenience method used for autocompletion hints by your editor.
Without this method __callStatic would do the same.
string | $label | the label of the current element |
string | $trait | the specific trait of the current element |
array | $attributes | the attributes of the button element |
|
abstractprotected |
Initialize an interactable element. The parameters to create are handed over to enable subclass specific customization.
string | $label | the label of the current element |
string | $trait | the specific trait of the current element |
array | $attributes | the attributes of the button element |
$attributes |
$label |