Метод validateCommandName

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 167–175
~/bitrix/modulesim/lib/model/command.php

Исходный код

PHP
public static

Сигнатура метода

public static function validateCommandName($value, $primary, array $row, Main\ORM\Fields\Field $field)

Описание

Rejects whitespace and control characters in a command name. A space or a newline would let a single stored command split into extra tokens once the client inserts it into a message: "/help admin" would run command "help" with argument "admin" under the sender.

Параметры

4
Имя Тип По умолчанию Флаги
$value - -
-
$primary - -
-
$row array -
-
$field Main\ORM\Fields\Field -
-