PHP Класс DataSift\Storyplayer\ConfigLib\HardCodedList

Автор: Stuart Herbert ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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