VisualItem
Description of VisualItem
Table of Contents
$class | string | |
---|---|---|
$i18n | Translator | |
$id | Identifies the object with a defined name in the view | string |
$level | Selected security level. | int |
$name | Name defined in the view as key | string |
$token | string | |
$uniqueId | int | |
__construct() | mixed | |
getLevel() | int | |
getToken() | string | |
setLevel() | mixed | |
setToken() | mixed | |
colorToClass() | string | |
getColorFromOption() | Calculate color from option configuration | string |
applyOperatorFromOption() | bool | |
combineClasses() | string | |
css() | Returns equivalent css class to $class. To extend in plugins. | string |
getUniqueId() | int |
Properties
$class
public
string
$class
$i18n
protected
static Translator
$i18n
$id
Identifies the object with a defined name in the view
public
string
$id
$level
Selected security level.
private
static int
$level
= ""
$name
Name defined in the view as key
public
string
$name
$token
private
static string
$token
= ''
$uniqueId
protected
static int
$uniqueId
= -1
Methods
__construct()
public
__construct(
$data :
array
)
: mixed
Parameters
- $data : array
Return values
mixedgetLevel()
public
static getLevel(
)
: int
Return values
intgetToken()
public
static getToken(
)
: string
Return values
stringsetLevel()
public
static setLevel(
$new :
int
)
: mixed
Parameters
- $new : int
Return values
mixedsetToken()
public
static setToken(
$token :
string
)
: mixed
Parameters
- $token : string
Return values
mixedcolorToClass()
protected
colorToClass(
$color :
string
, $prefix :
string
)
: string
Parameters
- $color : string
- $prefix : string
Return values
stringgetColorFromOption()
Calculate color from option configuration
public
getColorFromOption(
$option :
string[]
, $value :
mixed
, $prefix :
string
)
: string
Parameters
- $option : string[]
- $value : mixed
- $prefix : string
Return values
stringapplyOperatorFromOption()
protected
applyOperatorFromOption(
$option :
string[]
, $value :
mixed
)
: bool
Parameters
- $option : string[]
- $value : mixed
Return values
boolcombineClasses()
protected
combineClasses(
...$classes :
array
)
: string
Parameters
- $classes : array
Return values
stringcss()
Returns equivalent css class to $class. To extend in plugins.
protected
css(
$class :
string
)
: string
Parameters
- $class : string
Return values
stringgetUniqueId()
protected
getUniqueId(
)
: int