PHP 클래스 BcAbstractDetector

파일 보기 프로젝트 열기: baserproject/basercms

공개 프로퍼티들

프로퍼티 타입 설명
$decisionKeys array 判定キーワード
$name string 名前
$type string 検出器タイプ

보호된 프로퍼티들

프로퍼티 타입 설명
$_configName string 設定ファイルのキー名
$_detectors array 検出器リスト

공개 메소드들

메소드 설명
__construct ( string $name, array $config ) コンストラクタ
find ( string $name ) : BcAbstractDetector | null 名前をキーとしてインスタンスを探す
findAll ( ) : BcAbstractDetector[] 設定ファイルに存在する全てのインスタンスを返す
findCurrent ( ) : BcAbstractDetector | null 現在の環境の判定キーの値に合致するインスタンスを返す
isMatchDecisionKey ( ) : boolean キーがキーワードを含むかどうかを判定

보호된 메소드들

메소드 설명
_getDefaultConfig ( ) : array デフォルトの設定値を取得
_setConfig ( array $config ) : void 設定

메소드 상세

__construct() 공개 메소드

コンストラクタ
public __construct ( string $name, array $config )
$name string 名前
$config array 設定の配列

_getDefaultConfig() 추상적인 보호된 메소드

デフォルトの設定値を取得
abstract protected _getDefaultConfig ( ) : array
리턴 array

_setConfig() 추상적인 보호된 메소드

設定
abstract protected _setConfig ( array $config ) : void
$config array 設定の配列
리턴 void

find() 공개 정적인 메소드

名前をキーとしてインスタンスを探す
public static find ( string $name ) : BcAbstractDetector | null
$name string 名前
리턴 BcAbstractDetector | null

findAll() 공개 정적인 메소드

設定ファイルに存在する全てのインスタンスを返す
public static findAll ( ) : BcAbstractDetector[]
리턴 BcAbstractDetector[]

findCurrent() 공개 정적인 메소드

現在の環境の判定キーの値に合致するインスタンスを返す
public static findCurrent ( ) : BcAbstractDetector | null
리턴 BcAbstractDetector | null

isMatchDecisionKey() 추상적인 공개 메소드

キーがキーワードを含むかどうかを判定
abstract public isMatchDecisionKey ( ) : boolean
리턴 boolean

프로퍼티 상세

$_configName 보호되어 있는 정적으로 프로퍼티

設定ファイルのキー名
protected static string $_configName
리턴 string

$_detectors 보호되어 있는 정적으로 프로퍼티

検出器リスト
protected static array $_detectors
리턴 array

$decisionKeys 공개적으로 프로퍼티

判定キーワード
public array $decisionKeys
리턴 array

$name 공개적으로 프로퍼티

名前
public string $name
리턴 string

$type 공개적으로 프로퍼티

検出器タイプ
public string $type
리턴 string