PHP 클래스 PMA\libraries\Linter

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
findLineNumberAndColumn ( array $lines, integer $pos ) : array Computes the number of the line and column given an absolute position.
getLines ( string $str ) : array Gets the starting position of each line.
lint ( string $query ) : array Runs the linting process.

메소드 상세

findLineNumberAndColumn() 공개 정적인 메소드

Computes the number of the line and column given an absolute position.
public static findLineNumberAndColumn ( array $lines, integer $pos ) : array
$lines array The starting position of each line.
$pos integer The absolute position
리턴 array

getLines() 공개 정적인 메소드

Gets the starting position of each line.
public static getLines ( string $str ) : array
$str string String to be analyzed.
리턴 array

lint() 공개 정적인 메소드

Runs the linting process.
public static lint ( string $query ) : array
$query string The query to be checked.
리턴 array