PHP 클래스 Phergie_Plugin_Tld, phergie

저자: Phergie Development Team ([email protected])
상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie

보호된 프로퍼티들

프로퍼티 타입 설명
$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