PHP Class PHPUnit_Extensions_Database_UI_ModeFactory, qcodo

Author: Mike Lively ([email protected])
Inheritance: implements PHPUnit_Extensions_Database_UI_IModeFactory
Show file Open project: qcodo/qcodo

Public Methods

Method Description
getMode ( string $mode ) : PHPUnit_Extensions_Database_UI_IMode Generates a new mode based on a given name.
getModeList ( ) : array Returns the names of valid modes this factory can create.

Protected Methods

Method Description
getModeClass ( string $mode, string $mode_name ) : string Given a $mode label and a $mode_name class part attempts to return the class name necessary to instantiate the mode.
getModeMap ( ) : array Returns a map of modes to class name parts

Method Details

getMode() public method

Generates a new mode based on a given name.
public getMode ( string $mode ) : PHPUnit_Extensions_Database_UI_IMode
$mode string
return PHPUnit_Extensions_Database_UI_IMode

getModeClass() protected method

Given a $mode label and a $mode_name class part attempts to return the class name necessary to instantiate the mode.
protected getModeClass ( string $mode, string $mode_name ) : string
$mode string
$mode_name string
return string

getModeList() public method

Returns the names of valid modes this factory can create.
public getModeList ( ) : array
return array

getModeMap() protected method

Returns a map of modes to class name parts
protected getModeMap ( ) : array
return array