TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController:
SC_wizard_colorpicker

Public Member Functions

 __construct ()
 
 main ()
 
 printContent ()
 
 frameSet ()
 
 colorMatrix ()
 
 colorList ()
 
 colorImage ()
 
 getIndex ($im, $x, $y)
 

Public Attributes

 $P
 
 $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 ()
 

Protected Attributes

 $fieldChangeFuncHash
 

Detailed Description

Script Class for colorpicker wizard

Author
Mathias Schreiber schre.nosp@m.iber.nosp@m.@wmdb.nosp@m..de
Peter Kühn peter.nosp@m.@kue.nosp@m.hn.co.nosp@m.m
Kasper Skårhøj typo3.nosp@m.@typ.nosp@m.o3.co.nosp@m.m

Definition at line 27 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
boolean Whether the submitted field change functions are valid

Definition at line 419 of file ColorpickerController.php.

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

◆ colorImage()

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

Creates a color image selector

Returns
void
Todo:
Define visibility

Definition at line 365 of file ColorpickerController.php.

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

◆ colorList()

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

Creates a selector box with all HTML color names.

Returns
void
Todo:
Define visibility

Definition at line 339 of file ColorpickerController.php.

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

◆ colorMatrix()

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

Creates a color matrix table

Returns
void
Todo:
Define visibility

Definition at line 300 of file ColorpickerController.php.

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

◆ frameSet()

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

Returns a frameset so our JavaScript Reference isn't lost Took some brains to figure this one out ;-) If Peter wouldn't have been I would've gone insane...

Returns
void
Todo:
Define visibility

Definition at line 255 of file ColorpickerController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl().

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

◆ 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
pointer$imValid ImageResource returned by ::imageCreateFromFile
integer$xX-Coordinate of the pixel that should be checked
integer$yY-Coordinate of the pixel that should be checked
Returns
string HEX RGB value for color
See also
colorImage()
Todo:
Define visibility

Definition at line 396 of file ColorpickerController.php.

◆ init()

◆ main()

◆ printContent()

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

Returnes the sourcecode to the browser

Returns
void
Todo:
Define visibility

Definition at line 241 of file ColorpickerController.php.

References TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController\$content.

Member Data Documentation

◆ $colorValue

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$colorValue
Todo:
Define visibility

Definition at line 40 of file ColorpickerController.php.

◆ $content

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

◆ $doc

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

Definition at line 98 of file ColorpickerController.php.

◆ $fieldChangeFunc

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$fieldChangeFunc
Todo:
Define visibility

Definition at line 46 of file ColorpickerController.php.

◆ $fieldChangeFuncHash

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

Definition at line 48 of file ColorpickerController.php.

◆ $fieldName

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$fieldName
Todo:
Define visibility

Definition at line 54 of file ColorpickerController.php.

◆ $formName

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$formName
Todo:
Define visibility

Definition at line 60 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'
Todo:
Define visibility

Definition at line 78 of file ColorpickerController.php.

◆ $imageError

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

Definition at line 90 of file ColorpickerController.php.

◆ $md5ID

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$md5ID
Todo:
Define visibility

Definition at line 66 of file ColorpickerController.php.

◆ $P

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$P
Todo:
Define visibility

Definition at line 34 of file ColorpickerController.php.

◆ $pickerImage

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

Definition at line 84 of file ColorpickerController.php.

◆ $showPicker

TYPO3\CMS\Backend\Controller\Wizard\ColorpickerController::$showPicker
Todo:
Define visibility

Definition at line 72 of file ColorpickerController.php.