@param $code
@param $icon

@return \HtmlI
963539
function addIcon($code) {
        $this->icons[$code] = \HtmlI::addClass('js-utility fa pointer');
        return $this->icons[$code];
    }
234937
public function iconAction(Request $request, $icon)
    {
        $params = $request->query->all();

        $iconBuilder = $this->get('phlexible_element.icon_builder');
        $cacheFilename = $iconBuilder->getAssetPath($icon, $params);

        return new BinaryFileResponse($cacheFilename, 200, array('Content-Type' => 'image/png'), true, ResponseHeaderBag::DISPOSITION_INLINE);
    }
1361206
public function html($code)
    {
        if ($this->sdopx->parsingType == Sdopx::PARSING_SQL) {
            if ($code != '') {
                if (trim($code) == '') {
                    $this->output[] = ' ';
                    return;
                } else {
                    if (preg_match('@^\s+([\w\W]+)\s+$@', $code, $mt)) {
                        $this->output[] = ' ' . trim($mt[1]) . ' ';
                    } else if (preg_match('@^\s+([\w\W]+)$@', $code, $mt)) {
                        $this->output[] = ' ' . trim($mt[1]);
                    } else if (preg_match('@^([\w\W]+)\s+$@', $code, $mt)) {
                        $this->output[] = trim($mt[1]) . ' ';
                    } else {
                        $this->output[] = $code;
                    }
                    return;
                }
            }
            return;
        }
        $this->output[] = $code;
    }
956979
public static function generateIcon($icon, $class=null)
	{
		$key = $GLOBALS['BOOTSTRAP']['icons']['active'];

		return sprintf(
			$GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['template'],
			$icon . ($class == null ? '' : ' ' . $class)
		);
	}
152161
public function iconTag($icon = null, $options = []) {
		$icon = mb_strtolower((string)$icon);
		$dataStr = serialize(compact('icon', 'options')) . '_' . $this->_currUIlang;
		$cachePath = 'iconTag.' . md5($dataStr);
		$cached = Cache::read($cachePath, CAKE_THEME_CACHE_KEY_HELPERS);
		if (!empty($cached)) {
			return $cached;
		}

		$result = '';
		if (empty($options)) {
			$options = [];
		} elseif (!is_array($options)) {
			$options = [$options];
		}

		$iconClass = $this->_getClassForElement($icon);
		if (empty($iconClass)) {
			return $result;
		}

		$options['class'] = $iconClass;
		$result = $this->Html->tag('span', '', $options);
		Cache::write($cachePath, $result, CAKE_THEME_CACHE_KEY_HELPERS);

		return $result;
	}
1359033
public function addIcons($icons){
		foreach ( $this->content as $index=>$item ) {
			if($item instanceof HtmlButton && isset($icons[$index]))
				$item->addIcon($icons[$index]);
		}
		return $this;
	}
59190
public function addIcon($icon, $link = null)
    {
        if (!$this->_icon) {
            $this->_icon = $this->add('Icon', null, 'icon');
        }
        $this->_icon->set($icon);
        if ($link) {
            $this->_icon->setElement('a')
                ->setAttr('href', $link);
        }

        $this->template->trySetHTML('before_input', '<span class="atk-input-icon atk-jackscrew">');
        $this->template->trySetHTML('after_input', '</span>');

        return $this->_icon;
    }
1184306
protected function buildIconClasses($icon)
    {
        //Prepends the string "fa-" to any other class
        $icon = preg_replace('/(?<![^ ])(?=[^ ])(?!fa)/', 'fa-', $icon);
        $icon = !is_array($icon) ? preg_split('/\s+/', $icon, -1, PREG_SPLIT_NO_EMPTY) : $icon;

        //Adds the "fa" class, if no other "basic" class is present
        if (!count(array_intersect(['fa', 'fab', 'fal', 'far', 'fas'], $icon))) {
            array_unshift($icon, 'fas');
        }

        return implode(' ', array_unique($icon));
    }
157310
public function icon(Column\Icon $column, array $row)
    {

        $html = '';
        $html .= '<i class="fa '. $column->getValue($row).'"></i>';

        return $this->post($html, $column, $row);
    }
951169
public static function alert($html, $class = 'info', $icon = '')
		{
			if(is_bool($class))
			{
				$state  = !! $class;
				$class  = $state ? 'success' : 'danger';
				$icon   = $state ? 'check' : 'times';
			}
			if ($icon)
			{
				$html   = '<i class="fa fa-' .$icon. '" aria-hidden="true"></i> ' . $html;
			}
			return '<div class="alert alert-' .$class. '" role="alert">' .$html. '</div>';
		}
714957
public function iconFunction($icon, $iconSet = 'icon')
    {
        if ($iconSet == 'icon') {
            $iconSet = $this->iconPrefix;
        }
        $icon = str_replace('+', ' '.$iconSet.'-', $icon);

        return sprintf('<%1$s class="%2$s %2$s-%3$s"></%1$s>', $this->iconTag, $iconSet, $icon);
    }
498829
protected function materialDesignIconicFontIcon(MaterialDesignIconicFontIconInterface $icon) {

        $attributes = [];

        $attributes["class"][] = "zmdi";
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderName($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderSize($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderFixedWidth($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderBorder($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderPull($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderSpin($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderRotate($icon);
        $attributes["class"][] = MaterialDesignIconicFontIconRenderer::renderFlip($icon);
        $attributes["style"]   = MaterialDesignIconicFontIconRenderer::renderStyle($icon);

        return static::coreHTMLElement("i", null, $attributes);
    }
709309
public function setNoText($icon = null)
    {
        $this->options['text'] = false;
        if ($icon !== null) {
            $this->setIcon($icon);
        }

        return $this;
    }
1274925
public static function icon($icon, $link, array $attributes = array())
    {
        // Inner text
        $text = sprintf('<i class="%s"></i> ', $icon);

        return self::link($text, $link, $attributes);
    }
1127071
public function encodeIcon(ImageIcon $icon, Encoder $encoder)
    {
        return sprintf(
            '%s = L.icon(%s);',
            $encoder->encodeReference($icon),
            $encoder->encodeArguments(array($icon->getOptions()))
        );
    }
1268809
public function transpile($code)
    {
        try {
            return AfxService::convertAfxToFusion($code);
        } catch (AfxException $afxException) {
            throw new FusionException(sprintf('Error during AFX-parsing: %s', $afxException->getMessage()));
        }
    }
1274517
public function iconFunction($icon)
    {
        $icon = str_replace('+', ' '.$this->iconPrefix.'-', $icon);

        return sprintf('<%1$s class="%2$s %2$s-%3$s"></%1$s>', $this->iconTag, $this->iconPrefix, $icon);
    }