PHP Class Phergie_Plugin_Tld, phergie

Author: Phergie Development Team ([email protected])
Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$db PDO Connection to the database
$select PDOStatement Prepared statement for selecting a single TLD
$selectAll PDOStatement Prepared statement for selecting all TLDs

Méthodes publiques

Méthode Description
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.

Method Details

getTld() public méthode

Retrieves the definition for a given TLD if it exists
public getTld ( string $tld ) : mixed
$tld string TLD to search for
Résultat mixed Definition of the given TLD as a string or false if unknown

getTlds() public méthode

Retrieves a list of all the TLDs and their definitions
public getTlds ( ) : mixed
Résultat mixed Array of all the TLDs and their definitions or FALSE on failure

onCommandTld() public méthode

takes a tld in the format '.tld' and returns its related data
public onCommandTld ( string $tld ) : null
$tld string tld to process
Résultat null

onLoad() public méthode

Checks for dependencies and sets up the database and hard-coded values.
public onLoad ( ) : void
Résultat void

Property Details

$db protected_oe property

Connection to the database
protected PDO $db
Résultat PDO

$select protected_oe property

Prepared statement for selecting a single TLD
protected PDOStatement $select
Résultat PDOStatement

$selectAll protected_oe property

Prepared statement for selecting all TLDs
protected PDOStatement $selectAll
Résultat PDOStatement