Property | 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 |
Method | 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. |
public onCommandTld ( string $tld ) : null | ||
$tld | string | tld to process |
return | null |
protected PDOStatement $select | ||
return | PDOStatement |