class Splitter

Utility class for splitting terms from a string

Methods

void
__construct()

Constructor of class Splitter

static array
splitKeywords(string $stmt, array $keywords)

Splits a statement into keywords/clauses

static array
splitList(string $list)

Tokenizes a list of comma separated terms excluding function arguments

Details

at line 43
void __construct()

Constructor of class Splitter

Return Value

void

at line 56
static array splitKeywords(string $stmt, array $keywords)

Splits a statement into keywords/clauses

Parameters

string $stmt statement
array $keywords the list of keywords

Return Value

array the list of keywords associated with their clauses.

Exceptions

Exception

at line 94
static array splitList(string $list)

Tokenizes a list of comma separated terms excluding function arguments

Parameters

string $list the list of comma separated terms

Return Value

array the array of terms.