PHP Class DataSift\Storyplayer\BrowserLib\BaseElementAction

The main thing this base class offers is the process for converting a faked element type (such as 'buttonLabelled') into something specific that we can go and find
Inheritance: use trait VisibleElementFinder
Afficher le fichier Open project: datasift/storyplayer Class Usage Examples

Protected Properties

Свойство Type Description
$baseElement
$countTypes
$indexTypes
$searchTypes
$tagTypes
$targetTypes

Méthodes publiques

Méthode Description
__construct ( $baseElement )

Méthodes protégées

Méthode Description
convertMethodNameToWords ( string $methodName ) : array
determineCountType ( array $words ) : integer | null
determineIndexType ( array $words ) : integer | null
determineSearchType ( array $words ) : string | null
determineTagType ( string $targetType ) : string
determineTargetType ( array $words ) : string
isPluralTarget ( string $targetType ) : boolean
retrieveElement ( $methodName, $methodArgs )
retrieveElements ( string $methodName, array $methodArgs ) : array

Method Details

__construct() public méthode

public __construct ( $baseElement )

convertMethodNameToWords() protected méthode

protected convertMethodNameToWords ( string $methodName ) : array
$methodName string camelCase string to parse
Résultat array

determineCountType() protected méthode

protected determineCountType ( array $words ) : integer | null
$words array
Résultat integer | null

determineIndexType() protected méthode

protected determineIndexType ( array $words ) : integer | null
$words array
Résultat integer | null

determineSearchType() protected méthode

protected determineSearchType ( array $words ) : string | null
$words array
Résultat string | null

determineTagType() protected méthode

protected determineTagType ( string $targetType ) : string
$targetType string
Résultat string

determineTargetType() protected méthode

protected determineTargetType ( array $words ) : string
$words array
Résultat string

isPluralTarget() protected méthode

protected isPluralTarget ( string $targetType ) : boolean
$targetType string
Résultat boolean

retrieveElement() protected méthode

protected retrieveElement ( $methodName, $methodArgs )

retrieveElements() protected méthode

protected retrieveElements ( string $methodName, array $methodArgs ) : array
$methodName string
$methodArgs array
Résultat array

Property Details

$baseElement protected_oe property

protected $baseElement

$countTypes protected_oe property

protected $countTypes

$indexTypes protected_oe property

protected $indexTypes

$searchTypes protected_oe property

protected $searchTypes

$tagTypes protected_oe property

protected $tagTypes

$targetTypes protected_oe property

protected $targetTypes