프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
public onCommandTld ( string $tld ) : null | ||
$tld | string | tld to process |
리턴 | null |
protected PDOStatement $select | ||
리턴 | PDOStatement |