\Pop\Db\ParserPredicate

Predicate parser class

Summary

Methods
Properties
Constants
parse()
stripIdQuotes()
stripQuotes()
convertToArray()
No public properties found
No constants found
No protected methods found
$operators
N/A
No private methods found
No private properties found
N/A

Properties

$operators

$operators : array

Allowed operators

Type

array

Methods

parse()

parse(string  $predicate) : array

Parse a predicate string

Parameters

string $predicate

Returns

array

stripIdQuotes()

stripIdQuotes(string  $identifier) : string

Strip ID quotes

Parameters

string $identifier

Returns

string

stripQuotes()

stripQuotes(string  $value) : string

Strip quotes

Parameters

string $value

Returns

string

convertToArray()

convertToArray(mixed  $conditions) : array

Convert to string of conditions to array of values

Parameters

mixed $conditions

Returns

array