FacturaScripts

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
$uniqueId int
__construct() mixed
getLevel() int
setLevel() 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

$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

Methods

__construct()

public __construct( $data : mixed ) : mixed
Parameters
$data : mixed
Return values
mixed

getLevel()

public static getLevel( ) : int
Return values
int

setLevel()

public static setLevel( $new : int ) : mixed
Parameters
$new : int
Return values
mixed

colorToClass()

protected colorToClass( $color : string , $prefix : string ) : string
Parameters
$color : string
$prefix : string
Return values
string

getColorFromOption()

Calculate color from option configuration

public getColorFromOption( $option : string[] , $value : mixed , $prefix : string ) : string
Parameters
$option : string[]
$value : mixed
$prefix : string
Return values
string

applyOperatorFromOption()

protected applyOperatorFromOption( $option : string[] , $value : mixed ) : bool
Parameters
$option : string[]
$value : mixed
Return values
bool

combineClasses()

protected combineClasses( ...$classes : array ) : string
Parameters
$classes : array
Return values
string

css()

Returns equivalent css class to $class. To extend in plugins.

protected css( $class : string ) : string
Parameters
$class : string
Return values
string

getUniqueId()

protected getUniqueId( ) : int
Return values
int

Search results