Documentation

CRM_Utils_SQL_EscapeStringTrait

Table of Contents

Properties

$allowLiterals  : mixed

Methods

allowLiterals()  : mixed
escapeString()  : string

Properties

Methods

allowLiterals()

public allowLiterals([bool $allowLiterals = TRUE ]) : mixed
Parameters
$allowLiterals : bool = TRUE

escapeString()

public escapeString(string|null $value) : string
Parameters
$value : string|null
Return values
string

SQL expression, e.g. "it's great" (with-quotes) or NULL (without-quotes)


        
On this page

Search results