Query\QueryBuilder::like
Creates a Like clause in the sql statement
Signature
public function like(string
$field,
mixed
$val,
[string
$pos = 'both'] )
Parameters
$field
—
string
$val
—
mixed
$pos
—
string
Returns
- Query_Builder
Defined by Interface
QueryBuilderInterface
Test Coverage
Information
- Coverage: 1/1 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