PHP 클래스 Newscoop\Query\MysqlField

..) FIELD returns the index (position) of str in the str1, str2, str3, ... list. Returns 0 if str is not found. If all arguments to FIELD() are strings, all arguments are compared as strings. If all arguments are numbers, they are compared as numbers. Otherwise, the arguments are compared as double. If str is NULL, the return value is 0 because NULL fails equality comparison with any value. FIELD() is the complement of ELT(). (Taken from MySQL documentation.)
저자: Jeremy Hicks ([email protected])
상속: extends Doctrine\ORM\Query\AST\Functions\FunctionNode
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
getSql ( Doctrine\ORM\Query\SqlWalker $sqlWalker )
parse ( Parser $parser )

메소드 상세

getSql() 공개 메소드

public getSql ( Doctrine\ORM\Query\SqlWalker $sqlWalker )
$sqlWalker Doctrine\ORM\Query\SqlWalker

parse() 공개 메소드

public parse ( Parser $parser )
$parser Doctrine\ORM\Query\Parser