Returns a new icon Button
@param string $identifier
@param string $icon
@return HtmlButton
333453
public static function icon($identifier, $icon) {
		$result=new HtmlButton($identifier);
		$result->asIcon($icon);
		return $result;
	}
668199
public function retrieveByToken($identifier, $token)
    {
        $model = $this->createModel();

        return $model->newQuery()
            ->where($model->getAuthIdentifierName(), $identifier)
            ->where($model->getRememberTokenName(), $token)
            ->first();
    }
178093
public static function get($identifier, $default = null)
    {
        $value = self::getInternal($identifier);

        if (is_null($value)) {
            return $default;
        }

        return $value;
    }
48966
public function addIdentifier($identifier)
    {
        if (!isset($this->identifiers[$identifier])) {
            $this->identifiers[$identifier] = $identifier;
        }

        return $this;
    }
178665
public function icon($icon, $icon2 = null)
    {
        $this->icon = trim($icon);

        if (! str_empty($icon2)) {
            $this->icon2 = trim($icon2);
        }

        return $this;
    }
416655
public function retrieveByToken($identifier, $token)
	{
		if (Authorizer::validateAccessToken(false, $token)) {
			return $this->retrieveById(Authorizer::getResourceOwnerId());
		}

		return null;
	}
161988
public function htmlListgroup($identifier,$items=array(),$tagName="ul"){
		$listGroup=new HtmlListgroup($identifier,$tagName);
		$listGroup->addItems($items);
		return $this->addHtmlComponent($listGroup);
	}
512082
public function setIcon($icon)
    {
        if ($icon[0] != '<') {
            $icon = '<i class="icon-'.$icon.'"></i>';
        }
        $this->template->trySetHTML('icon', $icon);

        return $this;
    }
573222
private function createBuiltinClient($identifier)
    {
        $class_name = sprintf(
            "\PommProject\Foundation\Inspector\%sInspector",
            Inflector::studlyCaps($identifier)
        );

        if (!class_exists($class_name)) {
            throw new FoundationException(
                sprintf(
                    "Unknown built in inspector '%s'. Default inspector clients are {%s}.",
                    $identifier,
                    'database, schema, relation, type, role'
                )
            );
        }

        return new $class_name;
    }
862912
public static function icon($icon, $htmlOptions = array(), $tagName = 'i')
    {
        if (is_string($icon)) {
            if (strpos($icon, 'foundicon-') === false) {
                $icon = 'foundicon-' . implode(' foundicon-', array_unique(explode(' ', $icon)));
            }
            ArrayHelper::addValue('class', $icon, $htmlOptions);
            return \CHtml::openTag($tagName, $htmlOptions) . \CHtml::closeTag($tagName);
        }
        return '';
    }
630900
public function create($name, $identifier)
    {
        $section = new Section();

        $section->name = $name;
        $section->identifier = $identifier;

        $section->id = $this->sectionGateway->insertSection($name, $identifier);

        return $section;
    }
933791
public function addButtonGroups($identifier,$elements=[],$asIcons=false){
		return $this->addItem(new HtmlButtonGroups($identifier,$elements,$asIcons));
	}
1084853
protected PushButton createIconButton(String icon) {

        CmsPushButton button = new CmsPushButton();
        button.setImageClass(icon);
        button.setButtonStyle(ButtonStyle.FONT_ICON, null);
        return button;
    }
403896
public static function createFileMonitorAtBoot($identifier, Bootstrap $bootstrap)
    {
        $fileMonitorCache = $bootstrap->getEarlyInstance(CacheManager::class)->getCache('Flow_Monitor');

        // The change detector needs to be instantiated and registered manually because
        // it has a complex dependency (cache) but still needs to be a singleton.
        $fileChangeDetector = new ChangeDetectionStrategy\ModificationTimeStrategy();
        $fileChangeDetector->injectCache($fileMonitorCache);
        $bootstrap->getObjectManager()->registerShutdownObject($fileChangeDetector, 'shutdownObject');

        $fileMonitor = new FileMonitor($identifier);
        $fileMonitor->injectCache($fileMonitorCache);
        $fileMonitor->injectChangeDetectionStrategy($fileChangeDetector);
        $fileMonitor->injectSignalDispatcher($bootstrap->getEarlyInstance(Dispatcher::class));
        $fileMonitor->injectLogger($bootstrap->getEarlyInstance(PsrLoggerFactoryInterface::class)->get('systemLogger'));

        return $fileMonitor;
    }
483609
public function htmlImage($identifier, $src="", $alt="", $size=NULL) {
		return $this->addHtmlComponent(new HtmlImage($identifier, $src, $alt, $size));
	}
689950
public static Button createIconButton(Resource icon, String caption) {

        Button button = new Button();

        button.addStyleName(OpenCmsTheme.BUTTON_TABLE_ICON);
        button.addStyleName(ValoTheme.BUTTON_BORDERLESS);
        button.setIcon(icon);
        button.setDescription(caption);
        return button;
    }
1200433
public static function buildBlockType(string $identifier, array $config, BlockDefinitionInterface $blockDefinition): BlockType
    {
        return BlockType::fromArray(
            [
                'identifier' => $identifier,
                'isEnabled' => $config['enabled'],
                'name' => $config['name'],
                'icon' => $config['icon'],
                'definition' => $blockDefinition,
                'defaults' => $config['defaults'],
            ]
        );
    }