Query\AbstractQueryBuilder::_like
Simplify 'like' methods
Signature
protected function _like(string
$field,
mixed
$val,
string
$pos,
[string
$like = 'LIKE',
[string
$conj = 'AND']] )
Parameters
$field
—
string
$val
—
mixed
$pos
—
string
$like
—
string
$conj
—
string
Returns
- Query_Builder
Test Coverage
Information
- Coverage: 14/14 Lines (100%)
- Tests: 24
- Passed: 24 (100%)
Tests
- [ PASSED ] — MySQLQBTest::testLike
- [ PASSED ] — MySQLQBTest::testOrLike
- [ PASSED ] — MySQLQBTest::testOrNotLike
- [ PASSED ] — MySQLQBTest::testNotLike
- [ PASSED ] — MySQLQBTest::testLikeBefore
- [ PASSED ] — MySQLQBTest::testLikeAfter
- [ PASSED ] — PgSQLQBTest::testLike
- [ PASSED ] — PgSQLQBTest::testOrLike
- [ PASSED ] — PgSQLQBTest::testOrNotLike
- [ PASSED ] — PgSQLQBTest::testNotLike
- [ PASSED ] — PgSQLQBTest::testLikeBefore
- [ PASSED ] — PgSQLQBTest::testLikeAfter
- [ PASSED ] — SQLiteQBTest::testLike
- [ PASSED ] — SQLiteQBTest::testOrLike
- [ PASSED ] — SQLiteQBTest::testOrNotLike
- [ PASSED ] — SQLiteQBTest::testNotLike
- [ PASSED ] — SQLiteQBTest::testLikeBefore
- [ PASSED ] — SQLiteQBTest::testLikeAfter
- [ PASSED ] — FirebirdQBTest::testLike
- [ PASSED ] — FirebirdQBTest::testOrLike
- [ PASSED ] — FirebirdQBTest::testOrNotLike
- [ PASSED ] — FirebirdQBTest::testNotLike
- [ PASSED ] — FirebirdQBTest::testLikeBefore
- [ PASSED ] — FirebirdQBTest::testLikeAfter