Spec-Zone.ru › Symfony 4.1

InputAwareHelper

абстрактный класс InputAwareHelper расширяет Helper и реализует InputAwareInterface

Реализация InputAwareInterface для Helpers.

Свойства

protected $helperSet из Helper
protected $input

Методы

setHelperSet(HelperSet $helperSet = null)

Устанавливает набор помощников, связанных с этим помощником.

из Helper
HelperSet getHelperSet()

Получает набор помощников, связанных с этим помощником.

из Helper
static int strlen(string $string)

Возвращает длину строки, используя mb_strwidth, если доступно.

из Helper
static string substr(string $string, int $from, int|null $length = null)

Возвращает подстроку строки, используя mb_substr, если доступно.

из Helper
static formatTime($secs) из Helper
static formatMemory($memory) из Helper
static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string) из Helper
static removeDecoration(OutputFormatterInterface $formatter, $string) из Helper
setInput(InputInterface $input)

Устанавливает вход Console.

Подробное описание

setHelperSet(HelperSet $helperSet = null)

Устанавливает набор помощников, связанных с этим помощником.

Параметры

HelperSet $helperSet

HelperSet getHelperSet()

Получает набор помощников, связанных с этим помощником.

Возвращаемое значение

HelperSet Экземпляр HelperSet

static int strlen(string $string)

Возвращает длину строки, используя mb_strwidth, если доступно.

Параметры

string $string Строка для проверки длины

Возвращаемое значение

int Длина строки

static string substr(string $string, int $from, int|null $length = null)

Возвращает подстроку строки, используя mb_substr, если доступно.

Параметры

string $string Строка для выделения подстроки
int $from Начальный смещение
int|null $length Длина для чтения

Возвращаемое значение

string Подстрока

static formatTime($secs)

Параметры

$secs

static formatMemory($memory)

Параметры

$memory

static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)

Параметры

OutputFormatterInterface $formatter
$string

static removeDecoration(OutputFormatterInterface $formatter, $string)

Параметры

OutputFormatterInterface $formatter
$string

setInput(InputInterface $input)

Устанавливает вход Console.

Параметры

InputInterface $input

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Console/Helper/InputAwareHelper.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API