PHP Класс N98\Magento\Command\Database\QueryCommand

Наследование: extends AbstractDatabaseCommand
Показать файл Открыть проект

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

Метод Описание
isEnabled ( ) : boolean

Защищенные методы

Метод Описание
configure ( )
execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
getEscapedSql ( string $query ) : string Returns the query string with escaped ' characters so it can be used within the mysql -e argument.

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

configure() защищенный Метод

protected configure ( )

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : integer | void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Результат integer | void

getEscapedSql() защищенный Метод

The -e argument is enclosed by single quotes. As you can't escape the single quote within the single quote, you have to end the quote, then escape the single quote character and reopen the quote.
protected getEscapedSql ( string $query ) : string
$query string
Результат string

isEnabled() публичный Метод

public isEnabled ( ) : boolean
Результат boolean