PHP Класс Phergie_Plugin_Tld, phergie

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

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

Свойство Тип Описание
$db PDO Connection to the database
$select PDOStatement Prepared statement for selecting a single TLD
$selectAll PDOStatement Prepared statement for selecting all TLDs

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

Метод Описание
getTld ( string $tld ) : mixed Retrieves the definition for a given TLD if it exists
getTlds ( ) : mixed Retrieves a list of all the TLDs and their definitions
onCommandTld ( string $tld ) : null takes a tld in the format '.tld' and returns its related data
onLoad ( ) : void Checks for dependencies and sets up the database and hard-coded values.

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

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

Retrieves the definition for a given TLD if it exists
public getTld ( string $tld ) : mixed
$tld string TLD to search for
Результат mixed Definition of the given TLD as a string or false if unknown

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

Retrieves a list of all the TLDs and their definitions
public getTlds ( ) : mixed
Результат mixed Array of all the TLDs and their definitions or FALSE on failure

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

takes a tld in the format '.tld' and returns its related data
public onCommandTld ( string $tld ) : null
$tld string tld to process
Результат null

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

Checks for dependencies and sets up the database and hard-coded values.
public onLoad ( ) : void
Результат void

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

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

Connection to the database
protected PDO $db
Результат PDO

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

Prepared statement for selecting a single TLD
protected PDOStatement $select
Результат PDOStatement

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

Prepared statement for selecting all TLDs
protected PDOStatement $selectAll
Результат PDOStatement