PHP Class Goose\Configuration

ファイルを表示 Open project: scotteh/php-goose Class Usage Examples

Protected Properties

Property Type Description
$modules mixed[]
$options mixed[]
$stopWords Goose\Text\StopWords | null

Public Methods

Method Description
__construct ( mixed[] $options = [] )
addModule ( string $category, string $class )
areValidModules ( string $category, string[] $classes ) : boolean
get ( string $option ) : mixed
getModules ( string $category ) : mixed
getStopWords ( ) *
isValidModule ( string $category, string $class ) : boolean
removeModule ( string $category, string $class )
set ( string $option, mixed $value )
setModules ( string $category, string[] $classes )
setStopWords ( Goose\Text\StopWords $stopWords = null )

Method Details

__construct() public method

public __construct ( mixed[] $options = [] )
$options mixed[]

addModule() public method

public addModule ( string $category, string $class )
$category string
$class string

areValidModules() public method

public areValidModules ( string $category, string[] $classes ) : boolean
$category string
$classes string[]
return boolean

get() public method

public get ( string $option ) : mixed
$option string
return mixed

getModules() public method

public getModules ( string $category ) : mixed
$category string
return mixed

getStopWords() public method

*
public getStopWords ( )

isValidModule() public method

public isValidModule ( string $category, string $class ) : boolean
$category string
$class string
return boolean

removeModule() public method

public removeModule ( string $category, string $class )
$category string
$class string

set() public method

public set ( string $option, mixed $value )
$option string
$value mixed

setModules() public method

public setModules ( string $category, string[] $classes )
$category string
$classes string[]

setStopWords() public method

public setStopWords ( Goose\Text\StopWords $stopWords = null )
$stopWords Goose\Text\StopWords

Property Details

$modules protected_oe property

protected mixed[] $modules
return mixed[]

$options protected_oe property

protected mixed[] $options
return mixed[]

$stopWords protected_oe property

protected StopWords,Goose\Text|null $stopWords
return Goose\Text\StopWords | null