PHP Класс SqlParser\Tools\ContextGenerator

Автор: Dan Ungureanu ([email protected])
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$LABELS_FLAGS array Labels and flags that may be used when defining keywords.
$LINKS array Documentation links for each context.

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

Метод Описание
build ( string $input, string $output ) : void Builds a test.
buildAll ( string $input, string $output ) : void Generates recursively all tests preserving the directory structure.
generate ( array $options ) : string Generates a context's class.
printWords ( array $words, integer $spaces = 8, integer $line = 80 ) : string Prints an array of a words in PHP format.
readWords ( array $files ) : array Reads a list of words and sorts it by type, length and keyword.
sortWords ( array &$arr ) : array Sorts an array of words.

Описание методов

build() публичный статический Метод

Reads the input file, generates the data and writes it back.
public static build ( string $input, string $output ) : void
$input string The input file.
$output string The output directory.
Результат void

buildAll() публичный статический Метод

Generates recursively all tests preserving the directory structure.
public static buildAll ( string $input, string $output ) : void
$input string The input directory.
$output string The output directory.
Результат void

generate() публичный статический Метод

Generates a context's class.
public static generate ( array $options ) : string
$options array The options that are used in generating this context.
Результат string

printWords() публичный статический Метод

Prints an array of a words in PHP format.
public static printWords ( array $words, integer $spaces = 8, integer $line = 80 ) : string
$words array The list of words to be formatted.
$spaces integer The number of spaces that starts every line.
$line integer The length of a line.
Результат string

readWords() публичный статический Метод

Reads a list of words and sorts it by type, length and keyword.
public static readWords ( array $files ) : array
$files array
Результат array

sortWords() публичный статический Метод

Sorts an array of words.
public static sortWords ( array &$arr ) : array
$arr array
Результат array

Описание свойств

$LABELS_FLAGS публичное статическое свойство

Labels and flags that may be used when defining keywords.
public static array $LABELS_FLAGS
Результат array