[TASK] Deprecate IconUtility::getIconImage 03/12903/7
authorBenjamin Mack <benni@typo3.org>
Sat, 6 Apr 2013 21:54:12 +0000 (23:54 +0200)
committerBenjamin Mack <benni@typo3.org>
Mon, 8 Apr 2013 06:45:08 +0000 (08:45 +0200)
IconUtility::getIconImage
is not used anymore in the core, so deprecated this function.

Change-Id: Ic9d33160d0ca802dcdec929400f7919e39c8aec8
Resolves: #22706
Releases: 6.1
Reviewed-on: https://review.typo3.org/12903
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/backend/Classes/Utility/IconUtility.php

index 3ead38e..9db1cf6 100644 (file)
@@ -122,8 +122,11 @@ class IconUtility {
         * @param boolean $shaded If set, the icon will be grayed/shaded
         * @return string <img>-tag
         * @see getIcon()
+        * @deprecated since TYPO3 6.1 will be removed in 7.0, should not be used anymore as only sprite icons are used since TYPO3 4.4
         */
        static public function getIconImage($table, $row = array(), $backPath, $params = '', $shaded = FALSE) {
+               \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
+
                $str = '<img' . self::skinImg($backPath, self::getIcon($table, $row, $shaded), 'width="18" height="16"') . (trim($params) ? ' ' . trim($params) : '');
                if (!stristr($str, 'alt="')) {
                        $str .= ' alt=""';