Answers an array of classes for text alignment.

@return array
166506
public function getTextAlignmentClassNames()
    {
        $classes = [];
        
        $alignment = $this->owner->dbObject('TextAlignment');
        
        foreach ($alignment->getViewports() as $viewport) {
            $classes[] = $this->getTextAlignmentClass($viewport, $alignment->getField($viewport));
        }
        
        return $classes;
    }
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
                )
            )
        );
    }
1050827
private function classes() : string
    {
        $classes = '';

        if ($this->color !== null) {
            $classes .= ' progress-bar-' . $this->color;
        }

        if ($this->striped === true) {
            $classes .= ' progress-bar-striped';
        }

        if ($this->animate === true) {
            $classes .= ' progress-bar-animated';
        }

        return $this->view->escapeHtmlAttr($classes);
    }
1078030
public function meta()
    {
        return array_merge([
            'wrapperClasses' => $this->wrapperClasses,
            'indexClasses' => $this->indexClasses,
            'inputClasses' => $this->inputClasses,
            'fieldClasses' => $this->fieldClasses,
            'panelFieldClasses' => $this->panelFieldClasses,
            'labelClasses' => $this->labelClasses,
            'panelLabelClasses' => $this->panelLabelClasses,
            'indexLinkClasses' => $this->indexLinkClasses,
            'excerptClasses' => $this->excerptClasses,
        ], $this->meta);
    }
231432
public function getClasses()
    {
        $classes = $this->getAttribute("class");
        return (strlen($classes) > 0) ? trim($this->removeMultipleSpaces($classes)) : "";
    }
795053
function &classes()
    {
        $classes = array();
        $packages = $this->packages(); // not by reference so as not to move the internal array pointer
        foreach ($packages as $name => $package) {
            $packageClasses = $this->_packages[$name]->allClasses(); // not by reference so as not to move the internal array pointer
            if ($packageClasses) {
                foreach ($packageClasses as $key => $pack) {
                    $classes[$key.'.'.$name] =& $packageClasses[$key];
                }
            }
        }
        ksort($classes);

        return $classes;
    }
1041904
protected function getCSSClassNames()
    {
        $classes = array();
        $classes[] = 'swat-frame';
        $classes[] = 'swat-disclosure-control-opened';
        $classes[] = 'swat-frame-disclosure-control-opened';
        $classes[] = 'swat-frame-disclosure';
        $classes = array_merge($classes, parent::getCSSClassNames());
        return $classes;
    }
930087
public function getMappedClasses()
    {
        if (null === $this->classes) {
            $this->classes = $this->getClassesFromXml();
        }

        return array_keys($this->classes);
    }
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;
    }
763677
public function getClassNames()
    {
        // Obtain Class Names:
        
        $classes = $this->styles('navbar.nav');
        
        // Merge Additional Class Names:
        
        if ($this->MultiLevelSubMenus) {
            $classes[] = 'multi-level';
        }
        
        // Answer Class Names:
        
        return array_merge(
            parent::getClassNames(),
            $classes
        );
    }
317380
private function _allowedStyles(): array
    {
        $styles = [];
        $plugins = array_flip($this->_getRedactorConfig()['plugins'] ?? []);
        if (isset($plugins['alignment'])) {
            $styles['text-align'] = true;
        }
        if (isset($plugins['fontcolor'])) {
            $styles['color'] = true;
        }
        if (isset($plugins['fontfamily'])) {
            $styles['font-family'] = true;
        }
        if (isset($plugins['fontsize'])) {
            $styles['font-size'] = true;
        }
        return $styles;
    }
59037
public function layout(): array
    {
        return [

            MetricsExample::class,
            ChartLineExample::class,

            Layout::columns([
                ChartPieExample::class,
                ChartBarExample::class,
            ]),

            Layout::tabs([
                'Example Tab Table' => TableExample::class,
                'Example Tab Rows'  => RowExample::class,
            ]),

            Layout::modals([
                'exampleModal' => Layout::rows([
                    Input::make('user.password')
                        ->type('test')
                        ->title(__('Example'))
                        ->placeholder(__('Example')),
                ]),
            ]),

        ];
    }
849504
protected function getClasses()
    {

        $classes = config('slack-output.stats.classes');

        //force classes to have the right format
        $sanitized_classes = [ ];
        foreach ($classes as $classes_name => $constraints) {
            //check constraints are supplied, if not, correct
            //the classes name with the right value
            if (is_int($classes_name)) {
                $classes_name = $constraints;
                $constraints  = [ ];
            }
            $sanitized_classes[$classes_name] = $constraints;
        }

        return $sanitized_classes;
    }
365851
public function getClasses()
    {
        $classes = array($this->config()->get('base_class'));
        $classes[] = $this->Style ? $this->Style.'-'.$this->ClassName : $this->ClassName;
        foreach ($classes as $key => $value) {
            $classes[$key] = Convert::raw2url($value);
        }
        $this->extend('updateClasses', $classes);
        return implode(' ', $classes);
    }
933573
public function getLinkClassNames()
    {
        if ($this->isButtonLink() || !$this->LinkInFooter) {
            return [];
        }
        
        $classes = [
            $this->style('button'),
            $this->ButtonTypeClass
        ];
        
        if ($this->ButtonExtraClass) {
            $classes[] = $this->ButtonExtraClass;
        }
        
        return $classes;
    }
441971
public static function classes()
    {
        $objs = array();

        foreach (get_declared_classes() as $value) {
            $value = ltrim($value, '\\');
            $cname = new \ReflectionClass($value);

            if (false === $cname->isInternal()) {
                $objs[$value] = $cname->getDefaultProperties();
            }

            $cname = null;
        }

        return $objs;
    }
946776
protected function _getClassIndices($class)
    {
        $indices = array ();
        if ($class == self::CLASS_LETTER) {
            $indices = array_merge(
                $this->_getClassIndices(self::CLASS_LOWER),
                $this->_getClassIndices(self::CLASS_UPPER)
            );
            sort($indices);
        } else {
            if (isset ($this->_tokenIndices[$class])) {
                $indices = $this->_tokenIndices[$class];
            }
        }

        return $indices;
    }