Gets the array of CSS classes that are applied to this tool bar

@return array the array of CSS classes that are applied to this tool bar.
550663
protected function getCSSClassNames()
    {
        $classes = array('swat-toolbar');

        if ($this->parent instanceof SwatContainer) {
            $children = $this->parent->getChildren();
            if (end($children) === $this) {
                $classes[] = 'swat-toolbar-end';
            }
        }

        $classes = array_merge($classes, parent::getCSSClassNames());
        return $classes;
    }
973981
protected function availableClasses(): array
    {
        $classes = [];

        foreach ($this->availableReflections() as $reflection) {
            $classes = array_merge($classes, $reflection->getClasses());
        }

        return $classes;
    }
395547
public function getAttributes():array
    {
        $attributes = $this->attributes;
        if ($this->cssClasses) {
            $attributes['class'] = implode(' ', array_keys($this->cssClasses));
        }
        if ($this->styles) {
            $attributes['style'] = implode(';', $this->styles);
        }
        return $attributes;
    }
1281059
public function getAllClasses()
    {
        // Get all slugs that lead with a slash
        $pattern = '#(?:/([a-z-]+))#i';

        // If no matches, return an empty array.  Matches will be at first index;
        preg_match_all($pattern, $this->path, $matches);
        if (count($matches) <= 1) {
            return [];
        }
        $matches = $matches[1];

        // Remove actions from the matches list (like "edit")
        if (in_array($matches[count($matches) - 1], $this->actions)) {
            array_pop($matches);
        }

        // Convert all the matches to their classes
        return array_map(function ($name) {
            return $this->detectController($this->detectControllerClass($name));
        }, $matches);
    }
515933
public static function getStyles()
    {
        $styles = [];

        $iterator = new \DirectoryIterator(ForumEnv::get('WEB_ROOT').'themes/');
        foreach ($iterator as $child) {
            if (!$child->isDot() && $child->isDir() &&
                file_exists($child->getPathname().DIRECTORY_SEPARATOR.'style.css')) {
                // If the theme is well formed, add it to the list
                $styles[] = $child->getFileName();
            }
        }

        natcasesort($styles);
        return $styles;
    }
114025
public function getClasses()
    {
        if (!isset($this->fileClasses)) {
            $this->fileClasses = $this->findClasses();
        }

        return $this->fileClasses;
    }
1026503
public function getCornerStyleClass()
    {
        switch ($this->owner->CornerStyle) {
            case self::CORNER_ROUNDED:
                return $this->style('rounded');
            case self::CORNER_CIRCULAR:
                return $this->style('rounded.circle');
        }
    }
1181397
def get_css_classes(cls, instance):
        
        css_classes = []
        if hasattr(cls, 'default_css_class'):
            css_classes.append(cls.default_css_class)
        for attr in getattr(cls, 'default_css_attributes', []):
            css_class = instance.glossary.get(attr)
            if isinstance(css_class, six.string_types):
                css_classes.append(css_class)
            elif isinstance(css_class, list):
                css_classes.extend(css_class)
        return css_classes
959558
public static function get_browser_version_classes() {
        $classes = array();
        if (self::is_edge()) {
            $classes[] = 'edge';
        } else if (self::is_ie()) {
            $classes[] = 'ie';
            for ($i = 12; $i >= 6; $i--) {
                if (self::check_ie_version($i)) {
                    $classes[] = 'ie'.$i;
                    break;
                }
            }
        } else if (self::is_firefox() || self::is_gecko() || self::check_camino_version()) {
            $classes[] = 'gecko';
            if (preg_match('/rv\:([1-2])\.([0-9])/', self::get_user_agent_string(), $matches)) {
                $classes[] = "gecko{$matches[1]}{$matches[2]}";
            }
        } else if (self::is_chrome()) {
            $classes[] = 'chrome';
            if (self::is_webkit_android()) {
                $classes[] = 'android';
            }
        } else if (self::is_webkit()) {
            if (self::is_safari()) {
                $classes[] = 'safari';
            }
            if (self::is_safari_ios()) {
                $classes[] = 'ios';
            } else if (self::is_webkit_android()) {
                $classes[] = 'android'; // Old pre-Chrome android browsers.
            }
        } else if (self::is_opera()) {
            $classes[] = 'opera';
        }
        return $classes;
    }
814073
public function getWrapperClassNames()
    {
        $classes = ['feature'];
        
        $classes[] = $this->style('feature');
        
        if ($this->CornerStyleClass) {
            $classes[] = $this->CornerStyleClass;
        }
        
        $this->extend('updateWrapperClassNames', $classes);
        
        return $classes;
    }
1172985
private function _index_classes()
    {
        $ix  = array();
        $aix = $this->attr_idx;
        foreach ($this->attribs as $aid => &$a) {
            if (!empty($a['class'])) {
                $cl = $a['class'];
                if (!is_array($cl)) {
                    $cl = preg_split('|\\s+|', trim($cl));
                }
                foreach ($cl as $cl) {
                    if (isset($ix[$cl])) {
                        if (!is_array($ix[$cl])) {
                            $ix[$cl] = array($ix[$cl] => $this->attr_idx[$ix[$cl]]);
                        }

                        $ix[$cl][$aid] = $this->attr_idx[$aid];
                    } else {
                        $ix[$cl] = $aid;
                    }
                }
            }
        }

        return $this->class_idx = $ix;
    }
791687
public function getClassWhitelistArray(): array
    {
        return array_filter(
            $this->original,
            static function (string $name): bool {
                return '*' !== $name && '\*' !== substr($name, -2);
            }
        );
    }
751479
public function getUsedClasses()
    {
        if (empty($this->snippets)) {
            return array();
        }

        return array_unique(
            call_user_func_array(
                'array_merge',
                array_map(
                    function (Snippet $snippet) {
                        if (!$snippet instanceof ContextSnippet) {
                            return array();
                        }

                        return $snippet->getUsedClasses();
                    },
                    $this->snippets
                )
            )
        );
    }
765679
private function getClasses()
    {
        $r = '';

        // Inside classes
        foreach ($this->modules as $module) {
            $classes = (array)$this->xml->xpath('/draggy/module[@name=\'' . $module . '\']/class');

            foreach ($classes as $class) {
                $classAttributes = (array)$class;
                $classAttributes = (array)$classAttributes['@attributes'];

                $this->checkMandatoryAttributes('Class in module ' . $module, $classAttributes, ['name']);

                $className = $classAttributes['name'];

                $this->insideClasses[$module][] = $className;

                $this->checkMandatoryAttributes(
                    'Class ' . $className . ' in module ' . $module,
                    $classAttributes,
                    ['left', 'top']
                );

                $r .= 'var c = new Class(\'' . $classAttributes['name'] . '\',\'' . str_replace(
                    '\\',
                    '\\\\',
                    $module
                ) . '\');' . PHP_EOL;
                $r .= 'c.moveTo(\'' . ( $classAttributes['left'] /*- 1*/ ) . 'px\',\'' . ( $classAttributes['top'] /*- 1*/ ) . 'px\');' . PHP_EOL;

                $r .= $this->getClassLikeProperties($classAttributes, 'c');

                $r .= 'c.setModule(Container.prototype.getContainerByName(\'' . str_replace(
                    '\\',
                    '\\\\',
                    $module
                ) . '\').getId());' . PHP_EOL;
            }
        }

        // Outside classes
        $classes = (array)$this->xml->xpath('/draggy/loose/class');

        foreach ($classes as $class) {
            $classAttributes = (array)$class;
            $classAttributes = $classAttributes['@attributes'];

            $this->checkMandatoryAttributes('Loose class', $classAttributes, ['name']);

            $className = $classAttributes['name'];

            $this->outsideClasses[] = $className;

            $this->checkMandatoryAttributes('Loose class ' . $className, $classAttributes, ['left', 'top']);

            $r .= 'var c = new Class(\'' . $className . '\');' . PHP_EOL;
            $r .= 'c.moveTo(\'' . ( $classAttributes['left'] ) . 'px\',\'' . ( $classAttributes['top'] ) . 'px\');' . PHP_EOL;

            $r .= $this->getClassLikeProperties($classAttributes, 'c');
        }

        return $r;
    }
1090908
public static function getSubclasses()
    {
        $subclasses = array();
        foreach (get_declared_classes() as $class) {
            if (method_exists($class, 'isLoadable') && $class::isLoadable() === false) {
                continue;
            }
            if (is_subclass_of($class, 'Taco\Post')) {
                $subclasses[] = $class;
            }
        }
        return $subclasses;
    }
140526
protected function getHtmlClasses()
	{
		$classes = '';

		if( ! empty($this->css_classes) )
		{
			// open attribute
			$classes.= " class=\"";
			foreach($this->css_classes as $class)
			{
				$classes.="{$class} ";
			}
			// close attribute
			$classes.= "\"";
		}

		return $classes;
	}
446238
public function getCSSClassString()
    {
        $classes = array('swat-message');

        // legacy style for backwards compatibility
        if ($this->type === 'notice') {
            $classes[] = 'swat-message-notification';
        }

        // type-specific style
        if ($this->type != '') {
            $classes[] = 'swat-message-' . $this->type;
        }

        if ($this->secondary_content !== null) {
            $classes[] = 'swat-message-with-secondary';
        }

        return implode(' ', $classes);
    }