PHPUnit
PHPUnit TYPO3 extension
 All Classes Namespaces Functions
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper Class Reference
Inheritance diagram for Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper:
Tx_Phpunit_ViewHelpers_AbstractViewHelper Tx_Phpunit_ViewHelpers_ExtensionSelectorViewHelper

Public Member Functions

 __destruct ()
 
 injectUserSettingService (Tx_Phpunit_Interface_UserSettingsService $userSettingService)
 
 injectTestFinder ($testFinder)
 
 setAction ($action)
 
 getAction ()
 
- Public Member Functions inherited from Tx_Phpunit_ViewHelpers_AbstractViewHelper
 __destruct ()
 
 injectOutputService (Tx_Phpunit_Service_OutputService $service)
 
 render ()
 

Protected Member Functions

 createIconStyle ($testableKey)
 
 getOptions ()
 
 renderSelect ()
 
 renderTag ($tagName, $attributes=array(), $content= '')
 

Protected Attributes

 $userSettingService = NULL
 
 $testFinder = NULL
 
 $action = ''
 
- Protected Attributes inherited from Tx_Phpunit_ViewHelpers_AbstractViewHelper
 $outputService = NULL
 

Constructor & Destructor Documentation

Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::__destruct ( )

The destructor.

Member Function Documentation

Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::createIconStyle (   $testableKey)
protected

Creates the CSS style attribute content for an icon for the testable with the key $testableKey.

Parameters
string$testableKeythe key of a Tx_Phpunit_Testable object, may also be "typo3", must not be empty
Returns
string the content for the "style" attribute, will not be empty
Exceptions
InvalidArgumentExceptionif there is no extension with tests for the given key
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::getAction ( )

Gets the action of the form.

Returns
string
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::getOptions ( )
abstractprotected

Gets all options rendered as an array.

Returns
array<array> all option parameter as a multi-dimensional array, might be empty
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::injectTestFinder (   $testFinder)

Injects the test finder.

Parameters
Tx_Phpunit_Service_TestFinder$testFinder
Returns
void
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::injectUserSettingService ( Tx_Phpunit_Interface_UserSettingsService  $userSettingService)

Injects the user setting service.

Parameters
Tx_Phpunit_Interface_UserSettingsService$userSettingService
Returns
void
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::renderSelect ( )
abstractprotected

Renders the select box as HTML string.

Returns
string
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::renderTag (   $tagName,
  $attributes = array(),
  $content = '' 
)
protected

Renders any HTML tag with its own parameter either around some content.

If the content is empty, the tag gets rendered as a self-closing tag.

Parameters
string$tagName
array<string>$attributes use HTML attribute as key, might not be empty use attribute value as array value, might be empty
string$content
Returns
string the rendered HTML tag
Exceptions
InvalidArgumentExceptionif the given tagName is empty
Tx_Phpunit_ViewHelpers_AbstractSelectorViewHelper::setAction (   $action)

Sets the action for the form.

Parameters
string$action
Returns
void

The documentation for this class was generated from the following file: