Jinya CMS

QueryAnalyzer
in package

Helper class to wrap phpmyadmin SQL parser

Tags

Table of Contents

getQueryType()  : string|false
Gets the query type
getStatements()  : array<string|int, Statement>
Gets the permitted statements from the query

Methods

getQueryType()

Gets the query type

public getQueryType(Statement $statement) : string|false
Parameters
$statement : Statement
Tags
Return values
string|false

getStatements()

Gets the permitted statements from the query

public getStatements(string $query) : array<string|int, Statement>
Parameters
$query : string
Tags
Return values
array<string|int, Statement>

Search results