PHP 클래스 DataSift\Storyplayer\ConfigLib\HardCodedList

저자: Stuart Herbert ([email protected])
파일 보기 프로젝트 열기: datasift/storyplayer 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $configType ) constructor
addConfig ( object $config ) add a new config object to the list
getConfigType ( ) : string returns the classname for the config data that we store
getConfigs ( ) : array return our list of configs
newConfig ( string $name ) : object create a new config object, and return it to be modified
setConfigType ( string $configType ) what kind of config are we a list of?

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( string $configType )
$configType string what type of config are we a list of?

addConfig() 공개 메소드

add a new config object to the list
public addConfig ( object $config )
$config object the config object to add to the list

getConfigType() 공개 메소드

returns the classname for the config data that we store
public getConfigType ( ) : string
리턴 string

getConfigs() 공개 메소드

return our list of configs
public getConfigs ( ) : array
리턴 array

newConfig() 공개 메소드

the returned object has already been added to our list, and does not need to be added manually
public newConfig ( string $name ) : object
$name string the name of this new config entry
리턴 object

setConfigType() 공개 메소드

must be a valid class name
public setConfigType ( string $configType )
$configType string the class name for the data that we are a list of