Public Member Functions | |
| getIconImage ($table, $row=array(), $backPath, $params='', $shaded=FALSE) | |
| getIcon ($table, $row=array(), $shaded=FALSE) | |
| skinImg ($backPath, $src, $wHattribs='', $outputMode=0) | |
| makeIcon ($iconfile, $mode, $user, $protectSection, $absFile, $iconFileName_stateTagged) | |
| imagecopyresized (&$im, $cpImg, $Xstart, $Ystart, $cpImgCutX, $cpImgCutY, $w, $h, $w, $h) | |
| imagecreatefrom ($file) | |
| imagemake ($im, $path) | |
Definition at line 85 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::getIconImage | ( | $ | table, | |
| $ | row = array(), |
|||
| $ | backPath, | |||
| $ | params = '', |
|||
| $ | shaded = FALSE | |||
| ) |
Returns an icon image tag, 18x16 pixels, based on input information. This function is recommended to use in your backend modules. Usage: 60
| string | The table name | |
| array | The table row ("enablefields" are at least needed for correct icon display and for pages records some more fields in addition!) | |
| string | The backpath to the main TYPO3 directory (relative path back to PATH_typo3) | |
| string | Additional attributes for the image tag | |
| boolean | If set, the icon will be grayed/shaded |
Definition at line 100 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::getIcon | ( | $ | table, | |
| $ | row = array(), |
|||
| $ | shaded = FALSE | |||
| ) |
Creates the icon for input table/row Returns filename for the image icon, relative to PATH_typo3 Usage: 24
| string | The table name | |
| array | The table row ("enablefields" are at least needed for correct icon display and for pages records some more fields in addition!) | |
| boolean | If set, the icon will be grayed/shaded |
Definition at line 118 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::skinImg | ( | $ | backPath, | |
| $ | src, | |||
| $ | wHattribs = '', |
|||
| $ | outputMode = 0 | |||
| ) |
Returns the src=... for the input $src value OR any alternative found in $TBE_STYLES['skinImg'] Used for skinning the TYPO3 backend with an alternative set of icons Usage: 336
| string | Current backpath to PATH_typo3 folder | |
| string | Icon file name relative to PATH_typo3 folder | |
| string | Default width/height, defined like 'width="12" height="14"' | |
| integer | Mode: 0 (zero) is default and returns src/width/height. 1 returns value of src+backpath, 2 returns value of w/h. |
Definition at line 264 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::makeIcon | ( | $ | iconfile, | |
| $ | mode, | |||
| $ | user, | |||
| $ | protectSection, | |||
| $ | absFile, | |||
| $ | iconFileName_stateTagged | |||
| ) |
Creates the icon file for the function getIcon()
| string | Original unprocessed Icon file, relative path to PATH_typo3 | |
| string | Mode string, eg. "deleted" or "futuretiming" determining how the icon will look | |
| integer | The number of the fe_group record uid if applicable | |
| boolean | Flag determines if the protected-section icon should be applied. | |
| string | Absolute path to file from which to create the icon. | |
| string | The filename that this icon should have had, basically [icon base name]_[flags].[extension] - used for part of temporary filename |
Definition at line 353 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::imagecopyresized | ( | &$ | im, | |
| $ | cpImg, | |||
| $ | Xstart, | |||
| $ | Ystart, | |||
| $ | cpImgCutX, | |||
| $ | cpImgCutY, | |||
| $ | w, | |||
| $ | h, | |||
| $ | w, | |||
| $ | h | |||
| ) |
The necessity of using this function for combining two images if GD is version 2 is that GD2 cannot manage to combine two indexed-color images without totally spoiling everything. In class.t3lib_stdgraphic this was solved by combining the images onto a first created true color image However it has turned out that this method will not work if the indexed png-files contains transparency. So I had to turn my attention to ImageMagick - my 'enemy of death'. And so it happend - ImageMagick is now used to combine my two indexed-color images with transparency. And that works. Of course it works only if ImageMagick is able to create valid png-images - which you cannot be sure of with older versions (still 5+) The only drawback is (apparently) that IM creates true-color png's. The transparency of these will not be shown by MSIE on windows at this time (although it's straight 0/100% transparency!) and the file size may be larger.
For parameters, see PHP function "imagecopyresized()"
| pointer | see PHP function "imagecopyresized()" | |
| pointer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" | |
| integer | see PHP function "imagecopyresized()" |
Definition at line 475 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::imagecreatefrom | ( | $ | file | ) |
Create new image pointer from input file (either gif/png, in case the wrong format it is converted by t3lib_div::read_png_gif())
| string | Absolute filename of the image file from which to start the icon creation. |
Definition at line 505 of file class.t3lib_iconworks.php.
| t3lib_iconWorks::imagemake | ( | $ | im, | |
| $ | path | |||
| ) |
Write the icon in $im pointer to $path
| pointer | Pointer to GDlib image resource | |
| string | Absolute path to the filename in which to write the icon. |
Definition at line 522 of file class.t3lib_iconworks.php.