PHP Класс Phergie_Plugin_Help, phergie

Автор: Phergie Development Team ([email protected])
Наследование: extends Phergie_Plugin_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$registry array Registry of help data indexed by plugin name

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

Метод Описание
onCommandHelp ( string $query = null ) : void Displays a list of plugins with help information available or commands available for a specific plugin.
onConnect ( ) : void Creates a registry of plugin metadata on connect.
onLoad ( ) : void Checks for dependencies.
populateRegistry ( ) : void Creates a registry of plugin metadata.

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

Метод Описание
getAnnotations ( string $docblock ) : array Taken from PHPUnit/Util/Test.php and modified to fix an issue with tag content spanning multiple lines.
parseShortDescription ( string $docblock ) : string Parses and returns the short description from a docblock.

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

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

PHPUnit Copyright (c) 2002-2012, Sebastian Bergmann . All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Sebastian Bergmann nor the names of his contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
protected getAnnotations ( string $docblock ) : array
$docblock string docblock to parse
Результат array

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

Displays a list of plugins with help information available or commands available for a specific plugin.
public onCommandHelp ( string $query = null ) : void
$query string Optional short name of a plugin for which commands should be returned or a command; if unspecified, a list of plugins with help information available is returned
Результат void

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

Creates a registry of plugin metadata on connect.
public onConnect ( ) : void
Результат void

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

Checks for dependencies.
public onLoad ( ) : void
Результат void

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

Parses and returns the short description from a docblock.
protected parseShortDescription ( string $docblock ) : string
$docblock string Docblock comment code
Результат string Short description (i.e. content from the start of the docblock up to the first double-newline)

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

Creates a registry of plugin metadata.
public populateRegistry ( ) : void
Результат void

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

$registry защищенное свойство

Registry of help data indexed by plugin name
protected array $registry
Результат array