PHP Класс PMA\libraries\Linter

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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