![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
main () | |
printContent () | |
frameSet () | |
colorMatrix () | |
colorList () | |
getIndex ($im, $x, $y) | |
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 () | |
![]() | |
checkEditAccess ($table, $uid) | |
getBackendUserAuthentication () | |
getLanguageService () | |
getDocumentTemplate () | |
getDatabaseConnection () | |
Protected Attributes | |
$fieldChangeFuncHash | |
$exampleImg | |
Script Class for colorpicker wizard
Definition at line 27 of file ColorpickerController.php.
__construct | ( | ) |
Constructor
Definition at line 122 of file ColorpickerController.php.
References $GLOBALS, AbstractWizardController\getLanguageService(), and ColorpickerController\init().
|
protected |
Determines whether submitted field change functions are valid and are coming from the system and not from an external abuse.
Definition at line 424 of file ColorpickerController.php.
References GeneralUtility\hmac().
Referenced by ColorpickerController\init().
colorList | ( | ) |
Creates a selector box with all HTML color names.
Definition at line 345 of file ColorpickerController.php.
References AbstractWizardController\getLanguageService().
Referenced by ColorpickerController\main().
colorMatrix | ( | ) |
Creates a color matrix table
Definition at line 312 of file ColorpickerController.php.
References AbstractWizardController\getLanguageService().
Referenced by ColorpickerController\main().
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...
Definition at line 270 of file ColorpickerController.php.
References $url, AbstractWizardController\getDocumentTemplate(), AbstractWizardController\getLanguageService(), ColorpickerController\getPageRenderer(), and PageRenderer\PART_HEADER.
Referenced by ColorpickerController\main().
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
resource | $im | Valid ImageResource returned by ::imageCreateFromFile |
int | $x | X-Coordinate of the pixel that should be checked |
int | $y | Y-Coordinate of the pixel that should be checked |
Definition at line 399 of file ColorpickerController.php.
|
protected |
Definition at line 432 of file ColorpickerController.php.
References GeneralUtility\makeInstance().
Referenced by ColorpickerController\frameSet(), and ColorpickerController\init().
|
protected |
Initialises the Class
Definition at line 136 of file ColorpickerController.php.
References GeneralUtility\_GP(), ColorpickerController\areFieldChangeFunctionsValid(), GeneralUtility\getFileAbsFileName(), AbstractWizardController\getLanguageService(), ColorpickerController\getPageRenderer(), and GeneralUtility\makeInstance().
Referenced by ColorpickerController\__construct().
main | ( | ) |
Main Method, rendering either colorpicker or frameset depending on ->showPicker
Definition at line 205 of file ColorpickerController.php.
References ColorpickerController\$content, GeneralUtility\_GP(), ColorpickerController\colorList(), ColorpickerController\colorMatrix(), ColorpickerController\frameSet(), and AbstractWizardController\getLanguageService().
Referenced by ColorpickerController\mainAction().
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
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 189 of file ColorpickerController.php.
References $response, MessageInterface\getBody(), and ColorpickerController\main().
printContent | ( | ) |
Returns the sourcecode to the browser
Definition at line 255 of file ColorpickerController.php.
References ColorpickerController\$content, and GeneralUtility\logDeprecatedFunction().
$colorValue |
Definition at line 41 of file ColorpickerController.php.
$content |
Definition at line 112 of file ColorpickerController.php.
Referenced by ColorpickerController\main(), and ColorpickerController\printContent().
$doc |
Definition at line 107 of file ColorpickerController.php.
|
protected |
Definition at line 117 of file ColorpickerController.php.
$fieldChangeFunc |
Definition at line 50 of file ColorpickerController.php.
|
protected |
Definition at line 55 of file ColorpickerController.php.
$fieldName |
Definition at line 62 of file ColorpickerController.php.
$formName |
Definition at line 69 of file ColorpickerController.php.
$HTMLcolorList = 'aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,yellow,white' |
Definition at line 88 of file ColorpickerController.php.
$imageError = '' |
Definition at line 100 of file ColorpickerController.php.
$md5ID |
Definition at line 76 of file ColorpickerController.php.
$pickerImage = '' |
Definition at line 93 of file ColorpickerController.php.
$showPicker |
Definition at line 83 of file ColorpickerController.php.
$wizardParameters |
Definition at line 34 of file ColorpickerController.php.