Bitrix API

BaseStage

AbstractYes

Base class for simple constant-based stage enums

Table of Contents

Methods

getMessage()  : string
Returns localyzed message for specific enum value
getMessages()  : array<string, string>
Returns enum with localyzed descriptions
getValues()  : array<string|int, string>
Returns available enum codes
isValid()  : bool
Makes strict check that $enumValue exists in current enum

Methods

getMessage()

Returns localyzed message for specific enum value

public static getMessage(string $enumValue) : string
Parameters
$enumValue : string
Return values
string

getMessages()

Returns enum with localyzed descriptions

public static getMessages() : array<string, string>
Tags
psalm-suppress

RedundantCastGivenDocblockType

Return values
array<string, string>

enum code => public description

getValues()

Returns available enum codes

public static getValues() : array<string|int, string>
Return values
array<string|int, string>

isValid()

Makes strict check that $enumValue exists in current enum

public static isValid(string $enumValue) : bool
Parameters
$enumValue : string
Return values
bool

        
On this page

Search results