RockLobsterInc\Swv\Rules

TelRule::matches │ public │ CF7 1.0

Returns true if this rule matches the given context.

Метод класса: TelRule{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$TelRule = new TelRule();
$TelRule->matches( $context ): bool;
$context(массив) (обязательный)
Context.

Код TelRule::matches() CF7 6.2.4.1

public function matches(array $context): bool
{
    if (false === parent::matches($context)) {
        return false;
    }

    if (empty($context["text"])) {
        return false;
    }

    return true;
}