TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController:
TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController TYPO3\CMS\Backend\Module\AbstractModule

Public Member Functions

 __construct ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 printContent ()
 
 frameSet ()
 
 colorMatrix ()
 
 colorList ()
 
 getIndex ($im, $x, $y)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $wizardParameters
 
 $colorValue
 
 $fieldChangeFunc
 
 $fieldName
 
 $formName
 
 $md5ID
 
 $showPicker
 
 $HTMLcolorList = 'aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,yellow,white'
 
 $pickerImage = ''
 
 $imageError = ''
 
 $doc
 
 $content
 

Protected Member Functions

 init ()
 
 areFieldChangeFunctionsValid ()
 
 getPageRenderer ()
 
- Protected Member Functions inherited from TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController
 checkEditAccess ($table, $uid)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 
 getDocumentTemplate ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $fieldChangeFuncHash
 
 $exampleImg
 
- Protected Attributes inherited from TYPO3\CMS\Backend\Module\AbstractModule
 $moduleTemplate
 
 $request
 

Detailed Description

Script Class for colorpicker wizard

Definition at line 28 of file ColorpickerController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::__construct ( )

Member Function Documentation

◆ areFieldChangeFunctionsValid()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::areFieldChangeFunctionsValid ( )
protected

Determines whether submitted field change functions are valid and are coming from the system and not from an external abuse.

Returns
bool Whether the submitted field change functions are valid

Definition at line 425 of file ColorpickerController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\hmac().

Referenced by TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\init().

◆ colorList()

◆ colorMatrix()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::colorMatrix ( )

◆ frameSet()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::frameSet ( )

◆ getIndex()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::getIndex (   $im,
  $x,
  $y 
)

Gets the HTML (Hex) Color Code for the selected pixel of an image This method handles the correct imageResource no matter what format

Parameters
resource$imValid ImageResource returned by ::imageCreateFromFile
int$xX-Coordinate of the pixel that should be checked
int$yY-Coordinate of the pixel that should be checked
Returns
string HEX RGB value for color
See also
colorImage()

Definition at line 400 of file ColorpickerController.php.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\colorList().

◆ getPageRenderer()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::getPageRenderer ( )
protected

◆ init()

◆ main()

◆ mainAction()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$request
ResponseInterface$response
Returns
ResponseInterface

Definition at line 190 of file ColorpickerController.php.

References TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\main().

◆ printContent()

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::printContent ( )

Returns the sourcecode to the browser

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use mainAction() instead

Definition at line 256 of file ColorpickerController.php.

References TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\$content, and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

Member Data Documentation

◆ $colorValue

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$colorValue

Definition at line 42 of file ColorpickerController.php.

◆ $content

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$content

◆ $doc

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$doc

Definition at line 108 of file ColorpickerController.php.

◆ $exampleImg

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$exampleImg
protected

Definition at line 118 of file ColorpickerController.php.

◆ $fieldChangeFunc

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$fieldChangeFunc

Definition at line 51 of file ColorpickerController.php.

◆ $fieldChangeFuncHash

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$fieldChangeFuncHash
protected

Definition at line 56 of file ColorpickerController.php.

◆ $fieldName

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$fieldName

Definition at line 63 of file ColorpickerController.php.

◆ $formName

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$formName

Definition at line 70 of file ColorpickerController.php.

◆ $HTMLcolorList

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$HTMLcolorList = 'aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,yellow,white'

Definition at line 89 of file ColorpickerController.php.

◆ $imageError

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$imageError = ''

Definition at line 101 of file ColorpickerController.php.

◆ $md5ID

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$md5ID

Definition at line 77 of file ColorpickerController.php.

◆ $pickerImage

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$pickerImage = ''

Definition at line 94 of file ColorpickerController.php.

◆ $showPicker

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$showPicker

Definition at line 84 of file ColorpickerController.php.

◆ $wizardParameters

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$wizardParameters

Definition at line 35 of file ColorpickerController.php.